Autonomous robot–obstacle avoidance and collision detection

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 ...

Get Mastering Arduino now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.