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
You need to download and install [Webots](https://cyberbotics.com/#download) (the download is around 1.5GB). This is the platform we run our simulation in. Whilst we recommend version "R2021a" of Webots, and will be running competition simulations using it, "R2020b-rev1" should still work.
15
+
You need to download and install [Webots](https://cyberbotics.com/#download) (the download is around 400MB). This is the platform we run our simulation in. We recommend version "R2021b" of Webots.
18
16
19
17
#### Python Version
20
18
21
19
You will also need Python installed.
22
20
23
21
| Platform | Supported Python Version |
24
22
|----------|--------------------------|
25
-
| Windows | 3.7 - 3.8 (64-bit) |
26
-
| macOS | 3.7 - 3.8 |
27
-
| Linux | 3.7 - 3.8 |
28
-
29
-
In the competition, Python 3.7 will be used.
23
+
| Windows | 3.7+ (64-bit) |
24
+
| macOS | 3.7+ |
25
+
| Linux | 3.7+ |
30
26
31
27
There are a small number of [external libraries]({{ site.baseurl }}/programming/python/libraries)
32
28
which will be available to your robot code during the competition. Note that for
33
29
local development you will need to install these yourself.
34
30
35
-
If there are other libraries you would like included, please let us know
36
-
in [`#programming-help`][programming-help] on the [Discord][discord] and include
37
-
a link to the package on [PyPI](https://pypi.org/).
38
-
39
31
### Installing the simulation
40
32
41
33
1.[Download the simulation](https://github.com/srobo/competition-simulator/releases/download/sr2021.10/competition-simulator-sr2021.10.zip), and unzip it somewhere on your computer.
@@ -60,8 +52,8 @@ have been made with each version, please see the
60
52
[list of releases](https://github.com/srobo/competition-simulator/releases).
This is the pre-built robot used in the simulator, with an interface [similar](./programming) to the SR API.
85
-
86
-
The robot has an [array of sensors](./programming/#ruggeduino) which can be [programmed](./programming), along with a [compass]({{ site.baseurl }}/programming/sr/compass/) and a [radio system]({{ site.baseurl }}/programming/sr/radio/).
87
-
88
-
### Other robots
89
-
90
-
There is another robot in the arena, in its starting zone. By default, this robot will not move.
91
-
92
-
To control the other robot, you will need to provide its code:
93
-
94
-
Create the robot code in `zone-1/robot.py`. Your code at `robot.py` will be used for zone `0`,
95
-
though you are encouraged to move your code to `zone-0/robot.py` when running multiple robots.
96
-
Robots which do not have any robot code in their `zone-x` directory will not do anything.
97
-
98
-
```
99
-
.
100
-
├── competition-simulator-<version>
101
-
│ ├── ...
102
-
│ └─ worlds
103
-
│ └── Arena.wbt
104
-
├── zone-1
105
-
| └─ robot.py
106
-
└── robot.py
107
-
```
108
-
109
-
## Time
110
-
111
-
In the simulated environment, time advances only at the pace that the simulator
112
-
is run. The relation between this time and the real passage of time depends on a
113
-
couple of factors: the speed the simulation is configured to run at and the
114
-
ability of the computer running the simulation to process it fast enough.
115
-
116
-
You can configure and observe the speed the simulator is running at from the toolbar in webots:
0 commit comments