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

Navigation with (x,y) goals (no angle)

asked 2011-05-16 05:24:23 -0600

Is it possible in the navigation stack to specify a goal just as XY coordinates, not specifying the final orientation of the robot?

I guess it could be achieved by subscribing to the feedback and cancelling the goal as soon as the robot it's close enough to the target, but that may generate suboptimal plans.

Any ideas?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-05-16 07:00:23 -0600

mjcarroll gravatar image

I'm just guessing here, but you may be able to set your yaw_goal_tolerance to 2*pi radians (anywhere in a circle). This configuration parameter is found in the base_local_planner configuration files.

I'm not sure what will actually happen, but intuitively, it would make sense that the base_local_planner would not try and target any particular yaw angle, and just use the (x,y) coordinates.

edit flag offensive delete link more


This is exactly what we did when we didn't care about the goal's heading. Note that you will still have to publish a valid quaternion as part of the goal or you will likely run into runtime errors related to an invalid quaternion.
Eric Perko gravatar image Eric Perko  ( 2011-05-16 08:31:33 -0600 )edit
That would be in a global way, I couldn't mix goal with (x,y) and (x,y,theta). Basically I'm trying to have a robot moving between two or more points (where I don't care about the heading), and when some event occurs, it has to move to another position with specific heading. Any ideas?
Javier gravatar image Javier  ( 2011-05-16 22:39:48 -0600 )edit
If you are trying to mix the two, you may have to patch up move_base to use dynamic reconfigure. You can then vary the yaw_goal_tolerance for each type of goal that you are trying to set. I don't believe that there is a documented way of doing this, but that's the approach that I would take.
mjcarroll gravatar image mjcarroll  ( 2011-05-17 02:56:55 -0600 )edit
I believe the dwa_local_planner in the navigation_experimental stack already supports dynamic reconfigure, so you could give that a shot.
Eric Perko gravatar image Eric Perko  ( 2011-05-17 09:41:50 -0600 )edit

Question Tools

1 follower


Asked: 2011-05-16 05:24:23 -0600

Seen: 556 times

Last updated: May 16 '11