How can I know the robots actual position ?

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

Developer gravatar image

Hi

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

thanks

edit retag flag offensive close merge delete

Comments

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

mgruhler gravatar imagemgruhler ( 2018-06-13 09:39:27 -0600 )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 imageDeveloper ( 2018-06-13 09:55:44 -0600 )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 imageHumpelstilzchen ( 2018-06-14 01:51:04 -0600 )edit

I will try tf from /map to base_link, thanks

Developer gravatar imageDeveloper ( 2018-06-14 13:11:49 -0600 )edit