Skip to content

Running Monitor on Webots

rohan2689 edited this page Feb 14, 2012 · 1 revision

This is a guide to run MonitorShm on webots:

  1. Start the webots application.
  2. Let webots initialize until you see the line "[darwin-op_team_0] walk entry" several times in the console.
  3. Immediately hit the STOP button at the top of the window (before webots crashes!).
  4. 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.
  5. 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).
  6. Using the DELETE button at the top of the panel, delete one by one every player except "PLAYER_1_0 DARwin OP".
  7. 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).
  8. Start MATLAB. In the command window, switch to the UPennalizers directory on your computer.
  9. Say: "cd Lib/Util/Matlab".
  10. Now your inside the directory which has all the monitor code.
  11. Say: "MonitorShm" in the command window of MATLAB (assuming of course that webots is playing simultaneously).
  12. 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.
Clone this wiki locally