Chapter 7. Collision Detection

Now that our robot is navigating the field, it can move straight, turn, and even realign itself on a straight course. But what happens when there is something in its way? How does it know when it is about to run into something on the game field? We need to make the robot smart enough to avoid obstacles and navigate past them. Just like a person, the robot needs to take advantage of all its senses and learn how to react properly to obstacles in its path.

LEGO MINDSTORMS sensors give your robot a variety of sensors that you can take advantage of during a robotics event. Some we have already talked about in previous chapters, but here, we will focus on how to use them for collision detection and obstacle avoidance. We ...

Get Winning Design!: LEGO MINDSTORMS NXT Design Patterns for Fun and Competition 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.