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

Move base to absolute coordinates?

asked 2013-09-24 05:44:44 -0600

Hendrik Wiese gravatar image

Hi again,

I'm playing around with actionlib and smach trying to make my robot move to four specific absolute points on the map. I'm using MoveBaseGoal to drive the robot, however, it seems to accept only cordinates (i.e. the target pose) relative to the current pose (/base_link frame).

How do I make my robot move to an absolute point on the map (relative to the /map frame that is) without having to translate it from /map to /base_link everytime?

Thank you!

Cheers, Hendrik

edit retag flag offensive close merge delete

Comments

Not /map but /odom which in this case is basically the same as /map (statically the same position/orientation). I'll try using /map instead.

Hendrik Wiese gravatar image Hendrik Wiese  ( 2013-09-24 06:34:25 -0600 )edit

Oh, wait, you said the target_pose... nope, that's set to /base_link. I'll try that with /map as well. Totally overlooked that... //edit: works! Thanks a lot! Sometimes it's the smallest things that have greatest influence...

Hendrik Wiese gravatar image Hendrik Wiese  ( 2013-09-24 06:35:42 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2013-09-24 06:11:58 -0600

dornhege gravatar image

Are you setting the frame_id of the requested target pose to /map?

edit flag offensive delete link more

Comments

I didn't... my bad!

Hendrik Wiese gravatar image Hendrik Wiese  ( 2013-09-25 06:02:16 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-09-24 05:44:44 -0600

Seen: 1,675 times

Last updated: Sep 24 '13