Ask Your Question

Problem simulating kinect in gazebo

asked 2011-11-29 17:50:04 -0500

Laurie gravatar image

updated 2016-10-24 09:03:24 -0500

ngrennan gravatar image


I am trying to simulate the turtlebot in gazebo. I am using the turtlebot_gazebo and stack for that (using robot.launch).

However, the depth data coming from the (simulated) kinect is all wrong. Every point in the point cloud published by the /camera/depth/points topic has a depth of 1.0. This is when the light source in the .world file is of the directional kind. When I use a point or spot light source, the bottom half of the pointcloud has depth of 1.0 and the top half either NaN or 1.0 (depending on whether something is within range or not). This is preventing me to use any SLAM algorithm in gazebo. I get the camera rgb image through correctly.

I am using Ubuntu 11.04 and electric.

Thanks a lot.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2011-12-12 05:05:36 -0500

tfoote gravatar image

@Laurie, In general you want a discreet graphics card to run the simulations. There's a list of user tested cards at

edit flag offensive delete link more


I am using a nVidia card now, and the depth data is correctly simulated. Thanks.
Laurie gravatar image Laurie  ( 2011-12-21 22:58:50 -0500 )edit

answered 2011-12-01 15:22:50 -0500

JonW gravatar image

I had a similar issue with a depth camera in Gazrbo. From memory it was caused by the use of texture shadows. Setting shadows to none in the world file resolved the issue for me.

edit flag offensive delete link more


Do you mean <shadowTechnique>none</shadowTechnique> and <shadows>false</shadows> within the <rendering:ogre> tag? If so, this solution does not work.
Laurie gravatar image Laurie  ( 2011-12-01 17:37:09 -0500 )edit
Yes, thats the one I was thinking of.
JonW gravatar image JonW  ( 2011-12-03 12:07:12 -0500 )edit
what graphics card do you have?
hsu gravatar image hsu  ( 2011-12-08 12:41:18 -0500 )edit
Using lspci I get "Intel Corporation 4 Series Chipset Integrated Graphics Controller"
Laurie gravatar image Laurie  ( 2011-12-08 18:32:46 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2011-11-29 17:50:04 -0500

Seen: 1,492 times

Last updated: Dec 12 '11