assessment unit F, part 2
The assignment is due (both parts) on Thursday November 30, 2006.
- This assignment will be given in two parts.
Part 1 was given in lab on Monday November 13.
This is Part 2 (given in lab on Thursday November 16).
- This assignment covers the material from unit F in our
syllabus: Programmer-defined functions.
- You may find it helpful to read ch 7 in the Reed text in
order to complete both parts of this assignment.
- You can also refer to the lecture notes, posted on the "syllabus"
portion of the class web page.
- This assignment (in total) is worth 10 points, or 10% of
your term grade. This part (#2) is worth 5 points (and part #1 is
also worth 5 points).
EXTENDED TO MONDAY DECEMBER 4, 2006.
BE SURE TO ASK IN THE LAB IF YOU NEED HELP WITH ANY STEPS!!!!
be sure to finish Part 1 before you begin Part 2.
PART 2. ROBOT SOCCER.
In this part, you will see if you can get your robot to chase an
electronic soccer ball around the room.
The electronic soccer ball emits "infra-red" (IR) light (the same way
your remote control talks to you TV).
First, I'll give you some hints about how to think about what you need
Then, below the hints are the list of requirements for the assignment.
- First, you need to adjust the light sensor (which has been
pointing down to the floor) to instead point straight ahead.
- Second, you will design and write a simple behavior for
your robot: get it to turn around in a circle until it sees the soccer
ball (calibrate it; it should be very bright; probably brighter than
the gold spot on the floor you've been testing in unit E and unit F
When it sees the ball, it should go forward in that direction.
- Third, you will improve on the simple behavior so that if your
robot bumps into anything (an obstacle), it will back up.
You must write two subroutines to perform this task, as follows:
- The first subroutine is one that backs up when the robot bumps
into something. (2 points)
- The second subroutine is the one that turns around looking for
the ball, then goes toward it when it sees it. (2 points)
DEMO AND SUBMISSION:
- MAKE SURE YOU DEMO your robot for your instructor! (1 point)
- Record your RoboLab code on the back of this page and turn it in.
- Join the Brookly College CIS ROBOTICS SHOWCASE! on Tuesday
December 12, 1.30-3.30pm in 233 Roosevelt, and have your robot play
soccer with robots from other CIS classes.
- Students who come and participate will receive 2 points of
extra credit toward their grade!