Learning to fish
Resources
for this assignment.
You will be operating on the biffysPeril map for this assignment. To run lagoon type:
% go -cove map=biffysPeril
- Write a simple controller for one of the following types of boats. You may try to train a network, write your own controller, or do a mix of the two. We will go over training networks in class on Monday April 3.
- Fishing boat: Fishing boats go from a location near shore to another location near shore. They fish for a while (between 10 to 30 minutes) then go to the next location.
- Container Ship/Tankers: Think of these as tankers - these ships go from oil platforms in the middle of the map to a pier at your base and then back to the oil platform.
- Pleasure boat: Speedboats and launches zip around the bay and if outside,
All boats should avoid other boats/traffic and land on the
map. To avoid land, you need to know where land is. Look
at landFollow in
golduck/code/scripts/cat/Behaviors/catAvoidLand.py to
see how to find out whether a ray drawn from your current
position to another position intersects land.
- This is the second (and more complex part) of a three
part assignment. The purpose of this assignment is to gain
more familiarity with programming with the Lagoon system and
the issues involved in writing behaviors for boats. As before
you will have to program in
Python and you may use the Python tutorial
to get better at the language.
Good Luck
Turning it in
You will demonstrate your controller to me. Please let me know if you need extra disk space for these assignments.
Sushil Louis
Last modified: Mon Apr 3 9:45:52 PST 2006