Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to make reproducible simulations ?

reproducible simulations
0
Posted

How to make reproducible simulations ?

0

In order for a Webots simulation to be reproducible, the following conditions must be fulfilled: • Each individual simulation must be restarted either by pushing the Revert button, or by using the wb_simulation_revert() function, or by restarting Webots. Any other method for resetting the simulation will not reset the physics (velocity, inertia, etc.) and other simulation data, hence the simulation state will be reset only partly. • The synchronization flag of every robot and supervisor must be TRUE. Otherwise the number of physics steps per control step may vary and hence the robot’s behavior may also vary. • The controller (or physics plugin) code must not use a pseudo random generator initialized with an non-deterministic seed such as the system time. For example this is not suitable for reproducible experiments: srand(time(NULL)). If the three above conditions are met, Webots simulations become deterministic. Note that random seeds used by Webots are reset each time a simulation is

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123