-
Notifications
You must be signed in to change notification settings - Fork 38
Running Monitor on Webots
rohan2689 edited this page Feb 14, 2012
·
1 revision
This is a guide to run MonitorShm on webots:
- Start the webots application.
- Let webots initialize until you see the line "[darwin-op_team_0] walk entry" several times in the console.
- Immediately hit the STOP button at the top of the window (before webots crashes!).
- Hit the REVERT button which is placed 2 buttons to the left of the STOP button. As expected, you will see the robocup match restart with 8 robots again.
- The game is still stopped. Without hitting play just yet, observe the bottom-most entries on the panel on the left of your screen. They define the 8 robot players on the field (representing teams 0 and 1).
- Using the DELETE button at the top of the panel, delete one by one every player except "PLAYER_1_0 DARwin OP".
- Hit the PLAY button. You will notice the player soon starts moving towards the ball (provided you have the appropriate controller linked to your player, which you mostly do).
- Start MATLAB. In the command window, switch to the UPennalizers directory on your computer.
- Say: "cd Lib/Util/Matlab".
- Now your inside the directory which has all the monitor code.
- Say: "MonitorShm" in the command window of MATLAB (assuming of course that webots is playing simultaneously).
- Your monitor should pop up in MATLAB. If it doesn't, try saying "startup" in the command window and then run the monitor script again.