4.2 Running
Inside a normal Ubuntu terminal type : ~/roboviz.sh to run the visualizer
Once done press
Ctrl-Shift-T
to open another new Ubuntu terminal and type~/run_robocup.sh
to start a singularity terminal (singularity terminal 1)Next we need to make sure we are in the codebase directory, if not then use the
cd
command to navigate there, inside singularity terminal 1, this could be done usingcd wits-robocup
Once there press
Ctrl-Shift-T
to open another new singularity terminal (singularity terminal 2)Inside singularity terminal 2 type
cd
to move into theproxy_fat
folder and run./start.sh localhost 3100 3110
to start the proxyNow back inside singularity terminal 1 type
~/code.sh .
which will run VSCODEInside the project hierarchy open a file called
strategy.cc
which can be found inside thebehaviors
folderIf asked to install any C/C++ extensions, press yes
Next press
Ctrl-Shift-P
which opens up a dialog box in the top middle. Inside this box typeCMAKE
.From the drop down list select
CMAKE: Configure
When asked to select a Kit for wits-robocup choose the option which specifies a
GCC
versionNow you can press the play button (triangle in the top right) and select
Debug
orRun
Then when asked select the
AgentSpark
option (anyone will do)
— BONUS —
./fat_individual.sh
which will compile your code, run the server, and load the agents. Do note that after the code finishes compiling it asks you to press enter. NOTE YOU NEED TO HAVE TYPED cmake .
once beforehand
- If you want to add an opponent to compete against you will need a fourth terminal, inside which you need to type
./fat_competitors