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