Skip to content

Commit fc2ec27

Browse files
committed
Reinclude simulator time display explanation
1 parent 6033dca commit fc2ec27

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

simulator/index.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,26 @@ Within the Webots IDE, there are a few different panels:
6969
- [Camera Controls](https://www.cyberbotics.com/doc/guide/the-3d-window#navigation-in-the-scene)
7070
- [Graphics settings](https://www.cyberbotics.com/doc/guide/preferences#opengl) (Useful if Webots is running slowly)
7171

72+
## Time
73+
74+
In the simulated environment, time advances only at the pace that the simulator
75+
is run. The relation between this time and the real passage of time depends on a
76+
couple of factors: the speed the simulation is configured to run at and the
77+
ability of the computer running the simulation to process it fast enough.
78+
79+
You can configure and observe the speed the simulator is running at from the toolbar in webots:
80+
81+
![]({{ site.baseurl }}/images/content/simulator/speed-toolbar.png)
82+
83+
Here the simulation has run for 13.28 seconds, but is currently paused (the
84+
speed multiplier shows 0.00×). You could choose to step a single time increment,
85+
run the simulator at real speed (▶), or run the simulator at various faster
86+
speeds (▶▶ and ▶▶▶).
87+
88+
These differences mean that your code will need to use a different mechanism to
89+
find the current time or to sleep within the simulation. Find out more by
90+
heading over to the [simulator programming docs](./programming).
91+
7292
## Programming
7393

7494
Once you have the simulator installed you can begin [programming your robot](./programming) in the simulator.

0 commit comments

Comments
 (0)