Week 11 Lab

TASK #1

Learn to load program from file, use the back buttons to start programs, and play sounds.

Do the following steps:

  1. make a group of the leds that correspond to the eyes of AIBO, ledF3, ledF4, ledF5, ledF6, ledF7, ledF8 using the group command
    group eyes {ledF3,ledF4,ledF5,ledF6,ledF7,ledF8};
  2. set the group of leds to 1 using an assignment
  3. detect when the backSensorF has been pushed. Experiment with different values -- its value range from 0 to 60
  4. play a sound (select a sound from the files on the urbi stick or try a new one)
  5. turn on ledBFC
  6. set walk.speed to 700
  7. make a group of the leds ledF3,ledF4,ledF5,ledF6,ledF7,ledF8
  8. walk for 4 seconds forward
  9. turn off ledBFC
  10. wait for 1/2 second
  11. sit down
Now put all the steps into a file, load it, and start the program by pushing the back button. What instruction should you use to start the program when the button is pushed?

TASK #2

Use the camera to track objects of different color.

  1. experiment with tracking the ball at different distances. Find out how far can the ball be and still be trackable.
  2. set a different color map by using something like:
    function SetMap(map,YMin,YMax,CbMin,CbMax,CrMin,CrMax){
    colormap.set(map,YMin,Ymax,CbMin,CbMax,CrMin,CrMax,0.0015);
    };
    Experiment with selecting different colors and seeing how well the AIBO can track them.
TASK #3

Do a task that you will need to your project. It should be a relatively small task, but something that you need to try before finalizing your project.