To get the code you need to check it out from the CVS repository. The repository is located on calvin.prodigy.cs.cmu.edu. You need to have an account set up on calvin. Accessing the code is then done via ssh as follows: Set up the CVSROOT and CVS_RSH environment variables as (for TCSH):
~/mydir> setenv CVSROOT :ext:calvin.prodigy.cs.cmu.edu:/home/small/repository ~/mydir> setenv CVS_RSH ssh
BASH and ZSH will be:
~/mydir> export CVSROOT=:ext:calvin.prodigy.cs.cmu.edu:/home/small/repository ~/mydir> export CVS_RSH=ssh
Now you check out the code by running cvs as:
~/mydir> cvs co dragons
This will create the dragons directory with all the code Then all you need to do is compile and run it. If you have any difficulties getting the code email the brett , Mike , or Jim for help.
If you already have the code and want to update your copy then run:
~/mydir> cvs upd -d
This will update all the code. Pass in -n -q if you want to see what it will change first without actually changing anything. Running man cvs will give you the meaning behind all these commands. Alternatively, run the check command in the dragons directory or the the update command to do the same thing.
To compile the code you need to go to the top-level dragons directory and run make. This will automatically make all the submodules and link the binaries located in the bin directory to the appropriate executables. run
~/mydir>/dragons; make
You will then get a whole lot of output. If you get any errors the make program should halt and report what that error was. If it was a fresh checkout/update then something is wrong and you should contact the guy in charge.
To run the code go to the bin directory. I usually run with 3 windows, one for each executing program.
- Diffbot 0 enter cover 1 and click the check button
- Diffbot 1 enter cover 2 and click the check button
- Diffbot 2 enter cover 3 and click the check button
- Omnibot 0 enter cover 4 and click the check button
- Omnibot 1 enter cover 5 and click the check button
Then click set. You should get 5 robots appearing on the field with however many opponents you selected.
- 10 allows all - kalman filter position, obstacle avoidance, kicking
- 5 or 6 - obstacle avoidance and kicking
play around with it and see what you get.