Obstacle avoidance using the Navigation stack

The Navigation stack can be used to allow the robot to avoid random obstacles during its motion. The following is a scenario where we have placed a dynamic obstacle in the planned path of the robot. In particular, the first figure shows a path planning without any obstacle on the path. When we place a dynamic obstacle on the robot path, we can see it planning a path by avoiding the obstacle:

Figure 20: Visualizing obstacle avoidance capabilities in RViz

Get Mastering ROS for Robotics Programming - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.