![]() |
|
HomeworkMCB 419 Homework 4 (Spring 2009)Braitenberg VehiclesIn this assignment, you'll simulate four four different classes of Braitenberg vehicles: Description Wiring ----------- ------------- Aggressive Crossed excitatory Coward Uncrossed excitatory Love Uncrossed inhibitory Explorer Crossed inhibitory This week you will NOT have a template program. Instead, you should combine programming elements that you have used previously in assignments 1-3. Because this is your first complete NetLogo simulation, be sure to give yourself plenty of time to develop and debug your simulation. Answer the questions found on the 'Assignment' tab and email your responses along with a copy of your simulation file to mcb419@gmail.com with 'hw04' in the Subject line. This assignment is due by 11:59PM (midnight) on Tue, Feb 17. Specific Design Requirements/Guidelinesuser interface
light source
bots
bot motion
bot behaviors
HintsMake sure that you define a new breed for the bot body. Don't just let the body be a 'turtle'. The problem is that when you 'ask turtles' it refers to every type of agent in the simulation (both bots and sensors). Also make sure that your bots own the proper variables, e.g.
In this case snsL and snsR refer to the sensor 'agents', but mtrL and mtrR are just regular floating-point values (not agents). With these definitions your main routine might look something like this.
AssignmentYou can access a copy of the assignment file HERE, or copy and paste from the text below. ================================================================= MCB 419 Homework 4 (Spring 2009) When you've finished answering all the questions, email a copy of this file (hw04.txt) with your responses as PLAIN TEXT in the main body of the email message, and attach a copy of your Netlogo simulation file (e.g. hw04.nlogo). Email to mcb419@gmail.com with 'hw04' in the Subject line. ================================================================= Part I: Braitenberg Vehicles 1. About how much time would you estimate that you spent developing and debugging your simulation? 2. What were the most confusing / difficult aspects of creating your own simulation in NetLogo without a template? 3. For each of the four behaviors that you implemented, describe how changing the "gain" changes the observed behavior. Part II: Weekly Reading Assignment 4. In your own words, explain what Braitenberg means by "the law of uphill analysis and downhill invention". How does this apply to the current homework assignment? ================================================================= END OF THE ASSIGNMENT ================================================================= SolutionThis is just one possible solution. You can download the full NetLogo file (hw04_brait.nlogo), or just look at the code below. |