是否可以在/ camera / image_raw以外的主题上播放包含图像的rosbag文件?
答案 0 :(得分:1)
是的,您可以简单地remap your arguments或remap your topic-tag。
rosbag play mybagfile.bag /camera/image_raw:=/dataset/name
重新映射示例:
<remap from = "/camera/image_raw" to = "/dataset/name" />
roslaunch示例:
<launch>
<arg name = "pathToRosbag" default = "/home/path/to/Rosbag.bag" />
<remap from = "/camera/image_raw" to = "/dataset/name" />
<node pkg = "rosbag"
type = "play"
name = "player"
args = "$(arg pathToRosbag)"/>
</launch>