Getting Started
First Steps to start with Erebus
In this first tutorial you will run the sample code and run your first program on the Simulator.
This assumes you have correctly installed Webots and downloaded the release. If not please visit the installation page.
Run the sample code
-
Run the world.wbt file from /game/worlds/world1.wbt, opening it in Webots.
-
Press the LOAD button in the Competition Controller displayed on the left side of the screen, and select the sample code included in the release you just downloaded located in the “player_controllers” folder (currently the general sample code is named “ExamplePlayerController_updated.py”).
When the program is loaded, the colour of the LOAD button changes to orange. -
The interface to control the simulation is shown below. The top band is for loading the robot controller and a custom robot if you do make one (see here for more info). Two bands below, the three circular buttons is what you will use to interact with the simulation once the robot is moving. Below that, the remaining time and the current score is displayed.
-
When you press the start button, the robot appears in the world and starts moving.
-
To stop the robot temporarily, press the pause button.
-
If the robot is stuck, pressing the restart button will trigger a lack of progress to relocate the robot to the last reached checkpoint.
-
Press the reset button to reset the loaded program and the game in progress. The setting button on the left hand side of the reset button allows you to toggle some debugging options.
Manually move the robot where you want it to go
When you click on a robot in the simulation window, red, blue, and green arrows will appear. You can move the robot to any position by grabbing this arrow with the mouse. Note that the robot will not be displayed until the program is started.
Common problems & Fixes
Competition Controller does not appear
- If the Scene Tree is not displayed, go to Tools –> Scene Tree in the top menu to display it.
- Find “DEF MAINSUPERVISOR Robot” in the Scene Tree and right-click it. Click on “Show Robot Window”.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.