Final Project: Predator Prey
In this assignment, you will program a multi-robot team of predators to hunt and capture prey. You have five predators, who have limited blob finders and the ability to communicate with each other. Their job is to capture four prey, who could start anywhere in the world. It takes four predators to capture one prey. They must position themselves to the North, South, East and West of the prey (or, if you prefer, above, below, and on each side). After a prey is captured, it will stop moving. There is a built-in function to determine how many prey are left.
There is a built-in fudge factor for the boxing in of the prey, so the predators do not have to be exactly NSEW of the prey, they just need to roughly be in those positions.
Sometimes the prey will run into a wall. In that position, it is not possible to capture them. They will eventually move though. Sometimes they will also run into each other, or into a predator, and get stuck. Don't worry, they won't stay there forever, eventually they will move away.
The configuration files are provided here.
Inside there is a skeleton file Predator.java for the predator. This is the file in which you should program the logic for hunting the prey. There are three additional java files:
- DataChannel.java -- This is a thread that all of the predator and prey register with. It coordinates sending messages between predators and monitors the robots' locations to kill any prey who are captured.
- Prey.java -- This is the logic for the prey. They are not very intelligent, they move at random.
- Driver.java -- This starts all of the robots and the DataChannel object, and connects them to Playerstage. This is the class you should run.
- You may not rely on anything particular to the provided map. If the predators and the prey were to begin in different locations, your code should still work.
- You cannot modify the code in Prey or DataChannel to make it easier to kill the prey (for example, making the prey stationary is not cool).
If you are not sure about the above requirements, feel free to email the TA.
Modify data channel so that there are X seconds of message latency and Y% probability of a message being lost (ie: not delivered). As X and Y increase, do the predators need to adopt a different hunting strategy? Ensure that your new strategy works with X=5 and Y = 25.
- Submit a tarball of your robot client code using Bb Vista. The tarball should contain a README file with any necessary build instructions or peculiarities of your program.
- If something does not work properly or is incomplete, you must say so in the README.
The assignment is worth 40 points. Grading will be as follows:
- 40 points : All of the prey are captured within 20 minutes.
- 30-39 points : Some of the prey are captured within 20 minutes.
- 20-29 points : None of the prey are captured within 20 minutes, but the predators come really, really close to capturing them.
- 0-20 points : The predators do not come close to capturing any prey. Anything in this category will probably be closer to 0 than to 20.
The extra-credit is worth up to 10 extra points, depending on how sophisticated the modified approach is.
TOTAL: 40 + 10E.C.
Although they are probably not necessary for this assignment, if you are interested in this problem, you may enjoy the following research papers:
- Multi-Agent Systems in Mobile Ad hoc Networks
- A Study of Multiagent System Operation within Dynamic Ad hoc Networks
The predators are red. The prey are blue.
The predators have surrounded a prey.