You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: simulator/programming/index.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,11 +22,28 @@ On first run, the robot will execute an example program for convenience. This pr
22
22
23
23
Your code should be developed in `robot.py`.
24
24
25
-
26
25
<divclass="warning">
27
26
Only your controller code will be present in the competition environment.
28
27
</div>
29
28
29
+
### Running multiple robots
30
+
31
+
To test how your robot behaves in each starting zone of the arena, you can copy your robot's code to run in each corner. Code can be placed in a `zone-<zone>` directory to run in starting zone `<zone>`:
32
+
33
+
```
34
+
.
35
+
├── competition-simulator-<version>
36
+
│ ├── ...
37
+
│ └─ worlds
38
+
│ └── Arena.wbt
39
+
├── zone-0
40
+
│ └── robot.py
41
+
└── zone-1
42
+
└── robot.py
43
+
```
44
+
45
+
This will run two robots in the arena, each with different `robot.py`s. You can run as many or as few zones as you like, in any combination.
0 commit comments