Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Computer Science – Chapter 6 CSc 2010 Spring 2011 Marco Valero.

Similar presentations


Presentation on theme: "Introduction to Computer Science – Chapter 6 CSc 2010 Spring 2011 Marco Valero."— Presentation transcript:

1 Introduction to Computer Science – Chapter 6 CSc 2010 Spring 2011 Marco Valero

2 Overview Braitenberg vehicles Alive vehicle Coward, aggressive vehicle If, else if, else Reactive behaviors

3 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

4 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)

5 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

6 If, else if, else if : else: if : elif : else:

7 Simple Reactive Behaviors while timeRemaining( ): ▫


Download ppt "Introduction to Computer Science – Chapter 6 CSc 2010 Spring 2011 Marco Valero."

Similar presentations


Ads by Google