"Corrected" or actual odometry Data
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!