ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Looking at your bag file info, your camera topic is /front_camera/camera/image_rect_color/compressed ; you should use this topic to extract images.

The third launch example that you posted doesn't close the first <node> tag properly, which is why you're seeing an error there.

Therefore, your launch file should be something like:

<launch>
  <node pkg="rosbag" type="play" name="rosbag" args="-d 2 /home/khmarehman/test.bag"/>
  <node name="extract" pkg="image_view" type="extract_images" respawn="false" output="screen" cwd="ROS_HOME">
    <remap from="image" to="/front_camera/camera/image_rect_color/compressed"/>
  </node>
</launch>

And this may or may not work because you've only recorded compressed images in your bag file. You may also need to set the image_transport parameter to compressed to the extraact_images node.