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

What topics are necessary to process with ROS to manage SLAM with Kinect

asked 2012-01-21 21:56:46 -0500

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

ngrennan gravatar image

Hi,

I am trying to learn how to use ROS Navigation stack and I would like to know what kind of topics are necessary to publish on ROS Core to use SLAM features with ROS using a Kinect.

Many thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
3

answered 2012-01-21 23:35:13 -0500

Hansg91 gravatar image

updated 2012-01-22 08:06:41 -0500

I assume you want to use the gmapping package in ROS to do the mapping. gmapping requires odometry of your robot. You can follow this tutorial to check out how to do that.

You also need to convert the PointCloud2 of the kinect to a LaserScan, since that is what gmapping uses. To do this you can use the pointcloud_to_laserscan package.

Once you got those 2 things setup, you should be ready to use gmapping. Let me know if you got further questions.

EDIT: Forgot to mention, you need a transform link from your kinect frame to base_link. Basically base_link is the position of your robot and kinect frame is the position of your kinect. You need to define the relation between these two with a transform. You can use the static transform publisher for this, as following :

<node pkg="tf" type="static_transform_publisher" name="base_to_kinect" args="0 0 0 0 0 0 base_link kinect_depth_frame 100" />

That is basically the difference in xyz and the difference in orientation between the base of your robot and the kinect. For more information on the static_transform_publisher, check here.

edit flag offensive delete link more

Comments

I read in the tutotial about navigation stack: http://www.ros.org/wiki/navigation that it is necessary to use tf messages but you didn't say anithing about it. Tell me your experince.
Juan Antonio Breña Moral gravatar image Juan Antonio Breña Moral  ( 2012-01-22 03:51:32 -0500 )edit
I read in the tutotial about navigation stack: http://www.ros.org/wiki/navigation that it is necessary to use tf messages but you didn't say anithing about it. Tell me your experince
Juan Antonio Breña Moral gravatar image Juan Antonio Breña Moral  ( 2012-01-22 03:51:39 -0500 )edit
I read in the tutotial about navigation stack: http://www.ros.org/wiki/navigation that it is necessary to use tf messages but you didn't say anithing about it. Tell me your experince
Juan Antonio Breña Moral gravatar image Juan Antonio Breña Moral  ( 2012-01-22 03:51:42 -0500 )edit
Actually, the odometry tutorial also publishes tf messages, so that should be enough. I did forget to tell you something and I edited my answer with extra info.
Hansg91 gravatar image Hansg91  ( 2012-01-22 07:58:52 -0500 )edit
I have to read odometry tutorial again. Many thanks.
Juan Antonio Breña Moral gravatar image Juan Antonio Breña Moral  ( 2012-01-24 09:43:12 -0500 )edit

Question Tools

Stats

Asked: 2012-01-21 21:56:46 -0500

Seen: 656 times

Last updated: Jan 22 '12