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

"Corrected" or actual odometry Data

asked 2012-07-31 05:07:49 -0500

bgagnon gravatar image

Hello,

Right now I'm playing around with a node which build a GridCells and publishes it. It also broadcasts a transform that says the GridCells are aligned exactly on the map I have.

Then, when the node receives 'odom' data, it adds a cell corresponding to the odom position data to the GridCells.cells list. When I run it in rviz, I want to simply have the path that the turtlebot has taken to be traced out. Everything works great except the odom traced does not line up with the turtlebot and is offset by a few meters.

Where can I get the actual or "corrected" or the position of the robot that the gmapping node thinks it is. Essentially I'm asking how gmapping, or rviz or tf or move_base (not sure which one) knows where the robot is. How is the position of the robot model determined and is that position published?

Thanks for all the help!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-07-31 15:11:35 -0500

weiin gravatar image

The usual robot localization data is in the transform map->base_link. You need to listen to this tf

Do note that the path traced out using this localization data may have discrete jumps as explained in the REP105

edit flag offensive delete link more

Comments

That should be ok for what I'm doing, thanks!

bgagnon gravatar image bgagnon  ( 2012-08-01 01:12:58 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2012-07-31 05:07:49 -0500

Seen: 407 times

Last updated: Jul 31 '12