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

How to use Navigation stack

asked 2014-07-16 01:32:39 -0500

sumanth gravatar image

Hi,

For my project, I am thinking to use navigation stack with kinect as the sensor for mapping.

But how to publish the odometry data to the navigation stack..? How to use the Twist Data coming form the navigation stack..?

thanks in advance

edit retag flag offensive close merge delete

Comments

if you want 2d map use hector slam it doesn't need odometry.

bvbdort gravatar image bvbdort  ( 2014-07-16 03:56:12 -0500 )edit

Do you want to use the kinect's 3d data or just 2d (planar) data as a pseudo-laser? If it is just the 2d data, it is relatively simple.

McMurdo gravatar image McMurdo  ( 2014-07-16 08:34:17 -0500 )edit

I am using the kinect for mapping, i can take the 3d data from the kinect and convert it to 2d for a pseudo-laser by pointcloud_to_laserscan node. I need even odo data, so how to publish the odo data.

sumanth gravatar image sumanth  ( 2014-07-17 09:07:23 -0500 )edit

how you are moving your robot ?

bvbdort gravatar image bvbdort  ( 2014-07-18 22:19:28 -0500 )edit

What robot is it? It is a custom robot? What odometry sensors do you have?

McMurdo gravatar image McMurdo  ( 2014-07-19 03:33:19 -0500 )edit

Yes it is a custom robot, running with a 32-bit arm controller, it has wheel encoders from which I can fetch the ticks of the individual wheels. will this be sufficient, but still the question remains how to publish the odo data for using with the navigation stack.

sumanth gravatar image sumanth  ( 2014-07-19 05:09:36 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-07-19 06:25:48 -0500

McMurdo gravatar image

Hello Nirmal,

This is what you need.

http://wiki.ros.org/navigation/Tutori...

This will make sure that there are two things:

  1. The odom topic will have the details for odometry information - the type for that topic is nav_msgs/Odometry.

  2. In tf there will be a new transform between base_link and odom. The transformation from odom to base_link - defines the position and orientation of base_link in the odom frame - is the same as the position/orientation part of the odometry message as well. This should be apparent from the code.

However, I am not sure how you exactly compute the velocities/distances in that tutorial. Given that you already have the ticks, I guess all that you have to do now is this:

  1. Convert from to ticks to distance travelled or velocity - I think distance travelled will give better accuracy.
  2. Then simply adapt that code alongwith the tutorial to post odom information.

Once you have this you have to setup the navigation stack and you can run Monte Carlo localization.

Have a great day!

edit flag offensive delete link more

Comments

oh thanks a lot Murdo

sumanth gravatar image sumanth  ( 2014-07-19 14:08:18 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-07-16 01:32:39 -0500

Seen: 365 times

Last updated: Jul 19 '14