5.1 Installation(Source)
Follow these instruction to install everything from scratch locally, this includes the following components:
- Simspark
- rcssserver3d
- rcssmonitor3d
- rcssagent3d
- RoboViz
- UTAustinvillaCodeBaseAgent
Before you can start with the installation you need to download SimSpark.zip and RoboViz-dev.zip which can be found on the RoboCup moodle page.
5.1.1 SIMSPARK INSTALLATION AND SETUP
- Extract SimSpark.zip
- Run the following commands
sudo apt-get update
sudo apt-get install build-essential
- Open the terminal inside the newly created rcss directory
- Use the following command to build SimSpark packages as well as dependencies
sudo apt-get install g++ subversion cmake libfreetype6-dev libode-dev libsdl-dev ruby ruby-dev libdevil-dev libboost-dev libboost-thread-dev libboost-regex-dev libboost-system-dev qt4-default
- When prompted with After this operation, 368 MB of additional disk space will be used. Do you want to continue? [Y/N]
- Press Y
- Execute the following commands in the rcss directory after install is complete
cd/SimSpark
./clean.sh
./build.sh
- The following command will run the server and the default monitor(visualizer)
rcsoccersim3d
- To run just the server use the following command
rcssserver3d
At this point you will have the game server running and would have completed and tested the SimSpark installation, what remains is a more advanced visualiser as well as actual agent
5.1.2 ROBOVIZ VISUALIZER INSTALL AND USE
- Extract RoboViz-dev.zip
- Open the terminal in the RoboViz-dev directory
- Roboviz requires java 8, To install java 8 run the following command
sudo apt isntall openjdk-8-jdk
- To build RoboViz open terminal in the RoboViz-dev/scripts folder and run the following command
./build-linux64.sh
- To run roboviz open terminal in RoboViz-dev/bin/linux-amd64 folder
./roboviz.sh
Additionally you can use the follwoing command to run roboviz with the server on the localhost
./roboviz.sh --serverHost=localhost
Lastly if the server is on another machine simple define its ip inplace of localhost
5.1.3 TO RUN THE TEAMS
- Extract the corresponding team to a new folder
- open the terminal in that folder
- cd/competition (You are looking for the start.sh file)
- If you were to run ./start.sh you would get permission denied
- Run the following commands to fix this issue
chmod 777 startCommon.sh
chmod 777 start.sh
- Now you can run ./start.sh
5.1.4 TO USE IT ALL
- Make sure the server is running found in the SimSpark directory
rcssserver3d
- Run the visualizer found in RoboViz-dev/bin/linux-amd64
./roboviz.sh
- Run the agent found in competition
./start.sh