Robot Navigation Within a Corridor
Hello,
I'm trying to add a "virtual" corridor along the waypoints generated by the global planner (waypoints are in the middle of the virtual corridor), so the robot never leaves this "virtual" corridor when it's moving between the waypoints using a local planner. As an example, if during the robot's navigation within this corridor, an obstacle appears in front of the robot and covers the entire width of the corridor, the robot should stop.
I was wondering if I could do this by updating the costmap (nav_msgs/OccupancyGrid), and marking all the cells outside the "virtual" corridor as obstacles at the beginning?
Thanks.