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:
- 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};
- set the group of leds to 1 using an assignment
- detect when the backSensorF has been pushed.
Experiment with different values -- its value range from 0 to 60
- play a sound (select a sound from the files on the urbi stick or
try a new one)
- turn on ledBFC
- set walk.speed to 700
- make a group of the leds ledF3,ledF4,ledF5,ledF6,ledF7,ledF8
- walk for 4 seconds forward
- turn off ledBFC
- wait for 1/2 second
- 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.
- experiment with tracking the ball at different distances. Find
out how far can the ball be and still be trackable.
- 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.