5.5 My First Game
Each time you are going to do any work on RoboCup will require you opening terminals and running the three components
- Server
- Visualiser
- Agents
How you do this depends on your installation
- If you installed with singularity you need to run
./robocup-mesa
or ./robocup-nvidia
After which you need to open 3 terminals and run the following commands in each of them
rcssserver3d
/roboviz/roboviz.sh
cd utaustinvilla3d-master
- If you installed from source you need to simply run the commands in the correct folder
rcssserver3d
/roboviz/roboviz.sh
cd utaustinvilla3d-master
5.5.1 Running the Server
To start the simulation server, in a new terminal, run rcssserver3d
. rcssserver3d is the 3D soccer simulation server running on top of simspark simulation system, developed by the RoboCup 3D Simulation League. The following errors will show and can be ignored.
(Light) ERROR: OpenGLServer not found
(Light) ERROR: OpenGLServer not found
(Material2DTexture) ERROR: cannot find TextureServer
(Material2DTexture) ERROR: OpenGLServer not found.
(Material2DTexture) ERROR: cannot find TextureServer
(Material2DTexture) ERROR: OpenGLServer not found.
(Material2DTexture) ERROR: cannot find TextureServer
(Material2DTexture) ERROR: OpenGLServer not found.
(Material2DTexture) ERROR: cannot find TextureServer
(Material2DTexture) ERROR: OpenGLServer not found.
(Material2DTexture) ERROR: cannot find TextureServer
(Material2DTexture) ERROR: OpenGLServer not found.
(Material2DTexture) ERROR: cannot find TextureServer
(Material2DTexture) ERROR: OpenGLServer not found.
(Material2DTexture) ERROR: cannot find TextureServer
(Material2DTexture) ERROR: OpenGLServer not found.
(Material2DTexture) ERROR: cannot find TextureServer
(Material2DTexture) ERROR: OpenGLServer not found.
(Material2DTexture) ERROR: cannot find TextureServer
(Material2DTexture) ERROR: OpenGLServer not found.
(Material2DTexture) ERROR: cannot find TextureServer
(Material2DTexture) ERROR: OpenGLServer not found.
(sparkgui.rb) sparkRegisterMonitorCmdParser TrainerCommandParser
(InputControl) ERROR: no FPSController found at '/usr/scene/camera/physics/controller'
5.5.2 Running the Visualiser
RoboViz is a user-friendly visualiser for the simulator. Provides a graphical interface to interact with the simulator, such as moving the ball and robots. The figure below indicates the output of running the visualiser using /roboviz/roboviz.sh
when the server is not currently running. here you can see that it is unable to detect a running server.
RoboViz will continually keep checking for a an active server while it is running. IF we then start running a server you will see it detected as shown in the Figure below
The lines drawn on the field will look incorrect but they are corrected when a team is actually added.
5.5.3 Running a team (Agent)
In order to run a team you need to make sure your current directory contains the start.sh
file which is used to load agents onto a server.