O'Reilly logo

Winning Design!: LEGO MINDSTORMS NXT Design Patterns for Fun and Competition by James J. Trobaugh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required