![]() |
RoboCup2D Tutorial
|
SoccerWindow2 is a powerful monitor that can be used as a debugger even with a running match.
Open a terminal and run:
In the main menu, click on Monitor > Launcher Dialog or press Ctrl+X:
Set the path to the start.sh
script (located in the src folder) for both teams with the arguments –debug –debug-server-connect.
The teams will appear in the field and the server will be started. Go to View > View preference. In player selection, select the side you want to see. The debug information shows up immediately on the screen. If needed, you can choose on which player you want to focus.
Go to Debug > View Preference or press Ctrl+V. In the Object tab, navigate to the section Player Selection and choose one of the following items:
The image below showsa match paused at cycle 2810 with the debugger active for all players of the iBots2D team:
Bigger image here
All this information can be selected using the main menu at Debug > Debug Message.
To view the debug information of a match replay, you need to add the flag –log-dir DIRECTORY in the start.sh script of your team and also add the flags –debug –debug-server-connect (where DIRECTORY is the folder where you want to save the match logs) é o diretório onde você deseja salvar os logs). When the match is over, you only need to open the match RCG file and the log files using the File menu.