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

openni depth image problem

asked 2013-06-10 04:21:04 -0500

madmax gravatar image

updated 2016-10-24 08:35:04 -0500

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-06-10 05:11:10 -0500

updated 2013-06-20 02:31:21 -0500

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.

edit flag offensive delete link more

Comments

No, that doesn't make a difference.

madmax gravatar image madmax  ( 2013-06-10 05:23:26 -0500 )edit

Do rviz and image_view display the depth image correctly?

Felix Endres gravatar image Felix Endres  ( 2013-06-11 04:23:43 -0500 )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  ( 2013-06-11 09:04:16 -0500 )edit

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

Felix Endres gravatar image Felix Endres  ( 2013-06-13 00:53:54 -0500 )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  ( 2013-06-16 20:32:56 -0500 )edit

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

madmax gravatar image madmax  ( 2013-06-20 02:55:30 -0500 )edit

Question Tools

Stats

Asked: 2013-06-10 04:21:04 -0500

Seen: 735 times

Last updated: Jun 20 '13