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

GMapping Odometry Question

asked 2011-04-20 17:01:29 -0500

tyleroar gravatar image

Hello, I am running GMapping and visualizing the map in Rviz. My fixed frame is set to /map. I am driving the robot around manually and am generating a fairly accurate map. My problem is that the link from odom to base_link seems to be moving in the opposite direction. Base_link remains fixed where at the origin like I expect, but odom moves the opposite direction of the robot. My /odom ends up being no where near where the map is being generated, but the map still looks fine. My /odom is publishing that it is at X=3.28, Y=0.44, theta=-11.128 degrees. However, when I look at its position in RViz for the odom frame, I get X=-0.61441, Y=-0.22086.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-04-21 09:34:23 -0500

Mac gravatar image

REP 105 does a good job of explaining how the various mapping frames interact.

In short, what you're seeing there is what's expected; /odom is the uncorrected odometric information, and will not only be wrong, but will be arbitrarily wrong, given enough time.

edit flag offensive delete link more


Is /odom should move away from /map when gmapping building a map and robot moving? Thank you~

sam gravatar image sam  ( 2012-02-19 16:58:03 -0500 )edit

Question Tools


Asked: 2011-04-20 17:01:29 -0500

Seen: 1,176 times

Last updated: Apr 21 '11