Assignment 3
You must attend section in order to begin this assignment! If you cannot make it to either of the times on Thursday, you can attend on Friday 2-3pm. NOTE: meet in CSB 101, not 115.
Attributing Behavior
due Sunday February 4
In this lab you will take on the role of a cognitive scientist, trying to figure out how a "complex organism" produces its behavior. This analysis will be made easier (compared to studying, say, human subjects!) by the fact that you will build the organism yourself. However, this same robot can generate very different behaviors: in these experiments it will be controlled by three different programs. Program0 will be just to test that the construction is satisfactory, Program1 and Program2 will produce different behaviors that you will analyze. This task is made harder by the fact that TA will upload the program code that commands your organism, and will not show that code to you.
Beginning steps
Work in groups of 2.
- Claim a pre-built robot (there should already be enough for each pair) or assemble one yourself. Instructions can be found on the class website. These instructions are generic. In addition, make sure that your robot has two light sensors, and that they are attached to sensor inputs 1 and 3. The two motors should be attached to A and C.
- Have an TA install Program0 on your robot, to make sure it has been assembled correctly. When you run Program0, the robot will drive forward briefly, and then turn to the right.
- Have the TA install the two behaviors that you will be trying to understand.
You may use any tools you wish to determine what causes the robots to do what they do. We recommend a flashlight and a white piece of paper. You should not disassemble the robot or otherwise do violence to it.
Experimental structure
For both Program1 and Program2:
- For each program, first simply "play" with the robot. Write down a brief characterization of what you see. If possible write a bit of pseudo-code that you think could generate what you see.
- Design an experiment testing this hypothesis. I.e., figure out (at least one dimension of) "independent" varying features of the robot's environment that you think will effect its behavior, and (at least one) "dependent" variable you can measure that captures an important dimension of the behavior.
- Perform several iterations of your experiment. Be sure to do enough experiments with each behavior that you can tell how the context influences behavior. Does it seem consistent with your initial characterization? If not, how would you now describe the rules governing behavior?
General questions
- In what ways are Program1 and Program2 the same? What are their differences?
- Behaviors may depend on the context in which you turn on the robot. What features of the robots' environments have consequence with respect to any of the exhibited behaviors? Hint: context is defined by input values on the sensors.
Assignment writeup
Write a short (HTML format) document with answers to the questions above, using the following outline:
- Program1
- comments about play...
- Your expt design...
- Results of your experiment...
- Program2
- comments about play...
- Your expt design...
- Results of your experiment...
- General
- Compare/contrast Prog1 with Prog2...
- Environment features...
Italicized text corresponds to your answers. In general your answers to each question will be approx. a paragraph in length, though it may take more to describe your experiments.
NOTE: if you can't write HTML then you may turn in a plain text file instead, with an extension .txt. No Word documents please.
Assignment submission details
- Name your writeup behavior_<UCID1>_<UCID2>.html. For instance if jsmith@ucsd.edu and gmac@ucsd.edu worked on the assignment they would call the file behavior_jsmith_gmac.html. Use a txt extension instead if you have written a plain text file.
- Attach this file to an e-mail message addressed to cg8w1@icogsci1.ucsd.edu, with the subject "Behavior assignment"
- You must send the message no later than Sunday, February 4 at 11:59pm.