Activity #8

La Cucaracha


810:159, Robotics Laboratory

Spring Semester 2008


ENVIRONMENT :

A flat surface with obstructions and varying degrees of light.

GOAL :

Find a dark place to hide.

DETAILS :

For this week's lab you will be creating a robotic cockroach.  Some of us know (unfortunately) that cockroaches are pesky little critters that run around trying to avoid being stepped on and spaces with bright light.  Your job is to create a robot that behaves similarly.

In essence, you are trying to program your robot to maintain two goals - obstacle avoidance and light avoidance.  First, you should configure your robot to sense obstructions and avoid them (you've done that).  However, I would encourage you to clean/improve your code.  Second, you should configure your robot to avoid bright light.  It can do this in several ways - using a front facing light sensor, a downward facing light sensor, or one of both.  While it can do this this as a stimulus/response (move around until you find a bright light, then move away from that), I want you to include an aspect of hill climibing/simulated annealing ).  That is, every so often it should stop and determine in which direction it should travel next if its goal is to "seek dark."