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

ROS Navigation: Global and Local Planner

asked 2014-07-29 21:41:19 -0500

ROSCMBOT gravatar image


Is there a way to modify the local planner so that the robot would always move within a certain distance of the Global Path. And in this case, if an obstacle appeared on the map and covered the global path, and re-planning required the robot to move outside this predefined distance of the original global path, the robot should just stop.


edit retag flag offensive close merge delete


Which local planner are you using?

David Lu gravatar image David Lu  ( 2014-07-29 22:10:35 -0500 )edit

I'm using ROS default local planner (DWA or Trajectory Rollout)

ROSCMBOT gravatar image ROSCMBOT  ( 2014-07-29 22:28:54 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-07-29 22:55:22 -0500

David Lu gravatar image

With DWA, you can bias the robot toward staying on the global path by increasing the path_distance_bias parameter.

edit flag offensive delete link more


Thanks, but this is not exactly what I want to do. Your suggested way will force the robot to stop if an obstacle appears on the global path, but I want the robot to replan if there is a path within a certain distance of the global path, and stops otherwise

ROSCMBOT gravatar image ROSCMBOT  ( 2014-07-30 14:43:40 -0500 )edit

That kind of behavior requires more complex tuning of move_base, and the functionality for that is not yet available.

David Lu gravatar image David Lu  ( 2014-07-30 15:55:20 -0500 )edit

Maybe I should open another thread for this question, but is it possible to manually update the costmap so everything outside the certain distance of the global path become obstacles, so that the robot never moves to those areas?

ROSCMBOT gravatar image ROSCMBOT  ( 2014-07-30 16:20:50 -0500 )edit

Question Tools

1 follower


Asked: 2014-07-29 21:41:19 -0500

Seen: 1,491 times

Last updated: Jul 29 '14