1.创建文件export.launch,如下:
<launch>
<node pkg="rosbag" type="play" name="rosbag" args="-d 2 /media/zp/pop_up_tum_far_preproc_tf.bag"/>
<node name="extract" pkg="image_view" type="extract_images" respawn="false" output="screen" cwd="ROS_HOME">
<remap from="image" to="/rect_color_raw"/>
</node>
</launch>
其中标红两处根据自己实际情况修改,1.为.bag文件路径,2.为待提取的topic,具体写什么,使用
rosbag info **.bag
来查看其中的topic,对应选择。
写好后,执