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

Revision history [back]

To create boundaries during exploration, I drew a polygon on a costmap layer: https://github.com/paulbovbel/frontier_exploration/blob/hydro-devel/plugins/bounded_explore_layer.cpp#L180. You could do something similar with your corridor, and include the layer in your local navigation costmaps.

However, if you're trying to prevent your robot from traveling a certain distance away from the global planner's waypoints, it looks like you should be making a change at the local planner level, instead of on the costmaps. The local planner is the only construct that has direct access to the global planner's waypoint path (take a look at how move_base works).

If you dig into DWA, maybe you could add a new restriction on the trajectory search, to disqualify trajectories that would leave this 'corridor'.