I'm trying to extract messages of the "/camera/depth_registered/image_rect" topic from my bag:
[ankur@eng050194 20130405]$ rosbag info 20130405_navtest_0.bag
path: 20130405_navtest_0.bag
version: 2.0
duration: 58.8s
start: Apr 05 2013 15:32:07.42 (1365136327.42)
end: Apr 05 2013 15:33:06.25 (1365136386.25)
size: 3.3 GB
messages: 17410
compression: none [3286/3286 chunks]
types: sensor_msgs/Image [060021388200f6f0f447d0fcd9c64743]
sensor_msgs/Imu [6a62c6daae103f4ff57a132d6f95cec2]
sensor_msgs/JointState [3066dcd76a6cfaef579bd0f34173e9fd]
sensor_msgs/LaserScan [90c7ef2dc6895d81024acba2ac42f369]
topics: /base_scan 1178 msgs : sensor_msgs/LaserScan
/camera/depth_registered/image_rect 1626 msgs : sensor_msgs/Image
/camera/rgb/image_rect_color 1658 msgs : sensor_msgs/Image
/joint_states 5883 msgs : sensor_msgs/JointState
/tilt_scan 1182 msgs : sensor_msgs/LaserScan
/torso_lift_imu/data 5883 msgs : sensor_msgs/Imu
[ankur@eng050194 20130405]$
I've written up a launch file as described in the tutorial [here](http://www.ros.org/wiki/rosbag/Tutorials/Exporting%20image%20and%20video%20data):
However, when I run the launch file, it errors out:
[ankur@eng050194 20130405]$ roslaunch exportImageData.launch
... logging to /home/ankur/.ros/log/c113647a-9feb-11e2-b9c4-24be051362b4/roslaunch-eng050194.eng.uts.edu.au-32061.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://eng050194.eng.uts.edu.au:60100/
SUMMARY
========
PARAMETERS
* /rosdistro
* /rosversion
NODES
/
extract (image_view/extract_images)
rosbag (rosbag/play)
ROS_MASTER_URI=http://localhost:11311
core service [/rosout] found
process[rosbag-1]: started with pid [32095]
process[extract-2]: started with pid [32096]
[ INFO] [1365387639.215633458]: Initialized sec per frame to 0.100000
[ERROR] [1365387644.328011223]: Unable to convert 32FC1 image to bgr8
[ WARN] [1365387644.328120105]: Couldn't save image, no data!
[ERROR] [1365387644.329480639]: Unable to convert 32FC1 image to bgr8
[ERROR] [1365387644.393881439]: Unable to convert 32FC1 image to bgr8
[ERROR] [1365387644.423329040]: Unable to convert 32FC1 image to bgr8
[ERROR] [1365387644.454279657]: Unable to convert 32FC1 image to bgr8
[ WARN] [1365387644.454386746]: Couldn't save image, no data!
[ERROR] [1365387644.487755386]: Unable to convert 32FC1 image to bgr8
Would someone know what I'm doing wrong? I extracted the images of the "/camera/rgb/image_rect_color" topic just fine using this approach.
Could be related: I can't view these images using rqt_bag either. Am I missing some package that provides this capability?
↧