Introduction to Computer Science – Chapter 6 CSc 2010 Spring 2011 Marco Valero
Overview Braitenberg vehicles Alive vehicle Coward, aggressive vehicle If, else if, else Reactive behaviors
Braitenberg Vehicles Simple rules exhibit complex behavior A simple vehicle with a small suite of sensors and motors Law of uphill analysis and downhill invention
Alive One sensor and one motor Direct relationship between sensor and motor ▫Use input from sensor to directly drive robot motors(c, c) or forward(c)
Coward & Aggresive Two sensors to feed each motor individually Left & right sensors feed the left & right motors, respectively ▫Coward Left & right sensors feed the right & left motors, respectively ▫Aggresive
If, else if, else if : else: if : elif : else:
Simple Reactive Behaviors while timeRemaining( ): ▫