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

Kinect + Gazebo

asked 2012-02-15 08:57:44 -0500

rtoris288 gravatar image

updated 2016-10-24 08:59:41 -0500

ngrennan gravatar image

I would like to create a standalone Kinect camera in a gazebo simulation (in electric) but am having trouble finding a simple tutorial that explains how to do so. I would like the entire model to be rendered as well. Any help to point me in the right direction is greatly appreciated!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2012-02-15 09:11:42 -0500

updated 2012-02-15 19:36:43 -0500

A good start is having a look at the turtlebot_description package, as this provides a simulated Kinect with only a little bit of overhead - the turtlebot ;) Getting rid of the robot model or copying only the relevant parts should be pretty straightforward.

An example launch file for launching the turtlebot in gazebo can be found in the turtlebot_gazebo package and launched by executing

roslaunch turtlebot_gazebo  turtlebot_empty_world.launch

/Update: The simulated kinect rgb image is then published on the "/camera/image_raw" topic and the point cloud is published on the "/camera/depth/points" topic. These topic names are set in the turtlebot_description/urdf/gazebo.urdf.xacro xacro macro and can be changed when you setup your own simulated kinect. Note that the simulated Kinect currently does not provide RGB data for the point cloud.

edit flag offensive delete link more

Comments

After running the above launch file, I can see the Kinect rendered in simulation; however, I do not see any of the Kinect's images being published after checking with rxgraph

rtoris288 gravatar image rtoris288  ( 2012-02-15 09:34:37 -0500 )edit

Hi, see updated post above.

Stefan Kohlbrecher gravatar image Stefan Kohlbrecher  ( 2012-02-15 19:36:59 -0500 )edit

Hello, I have launched the turtlebot in gazebo but I do not see the PointCloud being published. I do, however see a laser scan being published. What do I need to do to get at a PointCloud?

John Hoare gravatar image John Hoare  ( 2012-02-23 07:26:01 -0500 )edit

The laser scan normally is generated from the point cloud on the turtlebot using the pointcloud_to_laserscan node. So if there's a laser scan, there definitely should be a pointcloud published, too. You should probably open a new question with further information on the problem.

Stefan Kohlbrecher gravatar image Stefan Kohlbrecher  ( 2012-02-23 08:41:58 -0500 )edit

When trying to display the /camera/depth/points in Rviz, the only thing displayed is a flat PointCloud, approximately at 1meter from the robot. Any idea what would be the cause ? It is the same as pointed out on this issue: http://answers.ros.org/question/36801/flat-pointcloud-with-turtlebot-simulat

Yannis gravatar image Yannis  ( 2012-07-03 18:51:40 -0500 )edit

Question Tools

Stats

Asked: 2012-02-15 08:57:44 -0500

Seen: 4,747 times

Last updated: Feb 15 '12