How can I know the robots actual position ?

asked 2018-06-13 08:01:02 -0500

Developer gravatar image


Is there a any function to get robots actual position? or only way is to subscribe /amcl_pose ?


edit retag flag offensive close merge delete


please Elaborate and describe your System Setup. Real Robot? Simulation? Which nodes? What is your Goal?

mgruhler gravatar image mgruhler  ( 2018-06-13 09:39:27 -0500 )edit

it is a mobile robot in simulation environment, it uses 2 laser sensors for localization. My gaol is to know the actual position of the robot on the map. I try to listen /amcl_pose from inside move_base node,but it did not work. Is there any library to do that or /amcl_pose is the only way ?

Developer gravatar image Developer  ( 2018-06-13 09:55:44 -0500 )edit

What do you mean with did not work? Any why don't you just use the tf from /map to base_link?

Humpelstilzchen gravatar image Humpelstilzchen  ( 2018-06-14 01:51:04 -0500 )edit

I will try tf from /map to base_link, thanks

Developer gravatar image Developer  ( 2018-06-14 13:11:49 -0500 )edit