If you want to build an autonomous robot, you will need to have some form of obstacle avoidance and collision detection with the logic that tells the robot how to move around obstacles. We showed how to use several obstacle avoidances and collision detection sensors in Chapter 10, Obstacle Avoidance and Collision Detection, but the question may be how we develop logic to go around or avoid objects that are detected.
Before we start to discuss the logic of obstacle avoidance, let's take a look at the BuddyBot robot again:
If you look closely at the "eyes" on the BuddyBot, you may recognize ...