ubersim.shto execute ubersim. You run your gui and soccer as usual connecting to this. If you are not running on a lab machine then see the information below.
Brett Browning and Erick Tryzelaar. UberSim: A Realistic Simulation Engine for Robot Soccer. In Proceedings of Autonomous Agents and Multi-Agent Systems, AAMAS'03, Australia, July 2003, Accepted for poster.
~/> export CVSROOT=:ext:calvin.prodigy.cs.cmu.edu:/home/small/ubersim/repositoryNow you need to create a directory to check the code out and run the CVS command. This works as:
~/> export CVS_RSH=ssh
~/> mkdir ubersimYou will now see a whole bunch of text output and CVS will create an ubersim directory containing all the code. You might also have to enter a password to access your user account on calvin. If you already have a code checkout, and want to update your copy then you want to execute instead:
~/> cd ubersim
~/ubersim/> cvs co ubersim
~/ubersim/> cvs upd -dNow you need to make the code, which is described in the next section.
~/ubersim/> export ODEHOME=/usr/local/ODENow you are ready to compile. This is just like the small-size code and can be done with the make command from the base directory. From our fresh checkout before, we need to go to the ubersim root and do a make as:
~/ubersim/> cd ubersimUberSim will now start compiling. This might take a while. If you get any errors then email the ubersim-list@cs.cmu.edu for help. By default UberSim will be compiled with OpenGL support. If you don't have graphics acceleration, this will be really slow. If you do not want OpenGL support you must edit the Makefile.common in the root directory (ie from the example ~/ubersim/ubersim/Makefile.common). You need to comment out the line with a # value:
~/ubersim/ubersim/> make
CFLAGS += -DUSE_OPENGL
To run the code you need a compiled copy of the CMDragons code. You can get the 2002 code from the CMDragons'02 download page or by checking out a copy from CVS.
To run UberSim you need to specify an additional environment variable as:
~/> export UBERSIMCONFIG=~/ubersim/config
This should point to wherever the config directory is located. A good choice is often ../config if you run ubersim from the bin directory. If you are using a lab machine, the ubersim command will do all this for you.
Now run the code as:
~/ubersim/ubersim/> cd binThe simulator will now startup and print out some status information. Once started you can start soccer and the gui for the small-size code. See the small-size page for details on how to do this.
~/ubersim/ubersim/bin> ./ubersim
somedir/> scp -r calvin.prodigy.cs.cmu.edu:/usr/local/ODE .You will be prompted for a password. This might take a while. Once it completes you will have a copy of the code. You need to do a make clean and then a make to update the code as follows.
somedir/> cd ODEODE will now compile. If you have the glx packages with OpenGL then it will be compiled in. If not then only the ODE engine will be made. The compilation will produce a few lib files in the target directory. These will be used by UberSim during the make stage to link in ODE.
somedir/ODE> make clean
somedir/ODE> make