Ask Your Question

Revision history [back]

The /odom topic usually specifies the estimated position of the robot relative to its starting position and not relative to the map. If you want to obtain the position of your robot in the map, you will have to listen on a topic of your (fake) localization (give you are running localization). I don't know for Stage, but usually this should e.g. be /amcl_pose (if you use ROS amcl localization).

Alternatively you can query TF for a transform between the /base_link frame of your robot and the /map-frame (again assuming you run a localization).