= Getting Started =

=== IMPORTANT NOTES ===
Remember this, before you checkout, try anything, or do anything. Do NOT run any of the scripts below as root. It will most likely erase your linux kernel, at best, or erase your entire partition, at worst.

=== Getting OPEN-R ===
If you need to get openr, you can check out this page: http://www.cs.cmu.edu/~tekkotsu/openr-install.html

There is an older version of the openr stuff on the CSE filesystem at ~robocup/public_ftp/Openr-stuff-1.1.5-r3.tgz

=== Checkout ===

To build and install code on the AIBO ERS-7 robots check out a working copy from the [wiki:SubversionRepository Subversion Repository] and change to the trunk/robot directory, then:

I suggest checking out https://roborouter.cse.unsw.edu.au/svn/robocup/branches/pre-bremen/ into a temp directory on the local machine.

=== Enviroment Variables ===

Make sure you set the following enviroment variables:
 * Add "ROBOCUP_DIR" to your profile script. This should be set to the trunk directory of you checkout.
 * Add "bin" to your path. This can be set as "$ROBOCUP_DIR/bin" once the above step has been performed.
 * Add "robot/bin" to your path. This can be set as "$ROBOCUP_DIR/robot/bin" once the first step has been performed.

 * Add the following to .bashrc in your home directory.
{{{
export ROBOCUP_DIR=/path/to/robocup/dir
export PATH=$PATH:${ROBOCUP_DIR}/bin:${ROBOCUP_DIR}/robot/bin
export DISTCC_HOSTS='localhost benji dogmatix gibson fluffy'
}}}
=== Make ===

Type "make". This will build the C++ code and do some configuration stuff.

=== Spip ===

Type
{{{
spip playerModule IP_postfix [playerNum] [teamNum]
}}}

For example,
{{{
spip pForward 142
}}}

Choose IP addresses of the form 1TP where "T" is the team number, and "P" is the player number (usually 1 - 4).

=== ins ===

"ins" to install the rUNSWift code on the stick. If this does not work try using "os" (which re-loads the Aperios OS onto the stick).

=== Boot ===

Install the memory stick and a battery into an ERS-7 AIBO and turn it on. After it boots (about 30 seconds) you should be able to telnet to the robot on port 59000.

See [wiki:TroubleshootingRobots Troubleshooting Robots] and [wiki:BuildingDevelopmentEnvironment Building Development Environment]

=== Notes ===

On some systems (particularly OSX), coverage.py is not found by pychecker - you need to copy this into somewhere that pychecker can find this. On OSX, this is:
"/System/Library/Frameworks/Python.framework/Versions/Current/lib/python2.x/" where x is your version of python (there should be only one folder there anyway)