First time here? Check out the FAQ!


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

openni depth image problem

asked Jun 10 '13

madmax gravatar image

updated Oct 24 '16

ngrennan gravatar image

Can someone tell me why my depth image looks like that? I decompress my images of a bag like that:

<node name="DEPTH_decompressed" type="republish" pkg="image_transport" output="screen" args="compressed in:=/openni/depth_registered/image_raw raw out:=/openni/depth_registered/image_raw" required="true" />

When I look at the thumbnails in rosbag, the image looks fine but when I use rviz or RGBD_SLAM, the image looks like 2 depth images side by side...

My system: Ubuntu 12.04 64Bit - ROS Fuerte

image description

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered Jun 10 '13

updated Jun 20 '13

Not sure if that is the problem, but it looks like your out topic is the same as the in topic. Try changing the name of the out topic and set rgbdslam to listen to that topic.

UPDATE: I can reproduce the problem using the bagfile linked below and the following commands (in various terminals):

roscore
rosparam set use_sim_time true
rosbag play -l --clock tunnel_openni.bag
rosrun image_transport republish compressed in:=/openni/depth_registered/image_raw raw out:=/openni/depth_registered/image_raw
rosrun image_view image_view image:=/openni/depth_registered/image_raw raw

I also see the correct thumbnails in rxbag. The camera_info message seems correct. So I guess this is either a bug in your bagfile recording setup or the camera driver. I do not know how to solve this or what could be the cause. Sorry. My system is ros fuerte on Ubuntu 11.10.

Preview: (hide)

Comments

No, that doesn't make a difference.

madmax gravatar image madmax  ( Jun 10 '13 )edit

Do rviz and image_view display the depth image correctly?

Felix Endres gravatar image Felix Endres  ( Jun 11 '13 )edit

No, only when I directly look with the rqt plugin 'rosbag' on the thumbnails of the depth image topic they look correct.

madmax gravatar image madmax  ( Jun 11 '13 )edit

That is weird. Could you make a short bag file available for me for debugging?

Felix Endres gravatar image Felix Endres  ( Jun 13 '13 )edit

Here is a little bag file. You just have to decompress the images. https://dl.dropboxusercontent.com/u/15268092/tunnel_openni.bag

madmax gravatar image madmax  ( Jun 17 '13 )edit

Thank you for looking at the bag file! Seems like the data is unusable...

madmax gravatar image madmax  ( Jun 20 '13 )edit

Question Tools

Stats

Asked: Jun 10 '13

Seen: 763 times

Last updated: Jun 20 '13