I am using Fuerte to extract images from my bag file, here's my bag file info:
version: 2.0
duration: 7:29s (449s)
start: Feb 21 2014 10:38:13.79 (1392975493.79)
end: Feb 21 2014 10:45:43.62 (1392975943.62)
size: 3.5 GB
messages: 2218096
compression: none [4404/4404 chunks]
types: audio_common_msgs/AudioData [f43a8e1b362b75baa741461b46adc7e0]
geometry_msgs/Wrench [4f539cf138b23283b520fd271b567936]
qualisys2ros/RigidBody [90b4bc390e2e3e76d923053ba82e3a88]
sensor_msgs/CameraInfo [c9a58c1b0b154e0e6da7578cb991d214]
sensor_msgs/CompressedImage [8f7a12909da2c9d3332d540a0977563f]
std_msgs/Float64MultiArray [4b7d974086d4060e7db4613a7e6c3ba4]
topics:
/FT_palpation_probe 444831 msgs : geometry_msgs/Wrench
/FT_ultrasonic_probe 444892 msgs : geometry_msgs/Wrench
/ReMeDi_cam/image_raw/compressed 6725 msgs : sensor_msgs/CompressedImaege
/camera/depth/camera_info 13467 msgs : sensor_msgs/CameraInfo
/camera/depth/image/compressedDepth 11862 msgs : sensor_msgs/CompressedImage
/camera/projector/camera_info 13467 msgs : sensor_msgs/CameraInfo
/camera2/rgb/image_color/compressed 13511 msgs : sensor_msgs/CompressedImage
/doctor_glove_left 449822 msgs : std_msgs/Float64MultiArray
/doctor_glove_right 449821 msgs : std_msgs/Float64MultiArray
I followed the tutorial and wrote my launch file as following:
<launch>
<node pkg="rosbag" type="play" name="rosbag" args="-d 2 /home/marce/Documents/Recordings/exp_21_02_1st_doc/ultra_back.bag"/>
<node name="extract" pkg="image_view" type="extract_images" respawn="false" output="screen" cwd="ROS_HOME">
<remap from="image" to="/ReMeDi_cam/image_raw/compressed"/>
</node>
</launch>
When I run my launch file, I get
[ WARN] [1397778148.269447449]: [image_transport] It looks like you are trying to subscribe directly to a transport-specific image topic '/ReMeDi_cam/image_raw/compressed', in which case you will likely get a connection error. Try subscribing to the base topic '/ReMeDi_cam/image_raw' instead with parameter ~image_transport set to 'compressed' (on the command line, _image_transport:=compressed).
[ERROR] [1397778149.812592149]: Client [/extract] wants topic /ReMeDi_cam/image_raw/compressed to have datatype/md5sum [sensor_msgs/Image/060021388200f6f0f447d0fcd9c64743], but our version has [sensor_msgs/CompressedImage/8f7a12909da2c9d3332d540a0977563f]. Dropping connection.
I searched on internet and they say it's about image_transport, but I am quite new to ROS, so there are some questions I did not understand:
1. I should extract image sequences from the bag file, but I do not know which topic I should extract, as you can see, there are RAW,COLOR,DEPTH 3 types of compressed images, should I export them all?
2. My launch file is to extract RAW image from bagfile and I do not know how to fix the error, it's about conversion between compressed image and image, so how should I revise my launch file?
Thank you guys!
Originally posted by zy66669 on ROS Answers with karma: 23 on 2014-04-17
Post score: 2