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

extracting depth image from .bag file

asked 2014-10-16 02:42:10 -0500

hffgodspeed gravatar image

I want to extract depth image from .bag file just like the tutorial. But when I run $ roslaunch export.launch , the error occurred as below:

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 [9394]
process[extract-2]: started with pid [9405]
[ INFO] [1413444044.771603283]: Initialized sec per frame to 0.100000

 [ERROR] [1413444046.270973202]: Client [/extract] wants topic /camera/depth/disparity to have datatype/md5sum [sensor_msgs/Image/060021388200f6f0f447d0fcd9c64743], but our version has [stereo_msgs/DisparityImage/04a177815f75271039fa21f16acad8c9]. Dropping connection.

pls help me to resolve it.Thanks.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2014-10-18 19:37:52 -0500

tfoote gravatar image

That script you are running is designed for color images not depth images. You'll need to modify it a little bit to support the different data type.

edit flag offensive delete link more

Comments

Could you please tell me how to modify it? Thank you.

hffgodspeed gravatar image hffgodspeed  ( 2014-10-20 01:44:45 -0500 )edit
0

answered 2016-06-27 04:19:49 -0500

ROSkinect gravatar image

You can use my package to extract depth information from bagfile without losing precision:

https://github.com/JaouadROS/bagtodepth

edit flag offensive delete link more
0

answered 2014-10-16 09:28:35 -0500

rastaxe gravatar image

For depth data, I followed this tutorial.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-10-16 02:42:10 -0500

Seen: 3,024 times

Last updated: Jun 27 '16