Is there a way to save all states for a simulation then restore from there when we restart Webots?

81 views Asked by At

I'm simulating a proto vehicle in webots. Currently, once the world is spawned, the vehicle's speed increases from 0 km/h to 100 km/h and will stay 100 km/h for the rest of the simulation.

After it reaches 100 km/h, I saved the world (*.wbt) and hope that when I use the saved world file in the future, the vehicle will skip the transient period (from 0 to 100 km/h) and starts with 100 km/h as its speed. In other words, I want the next time I spawn the world it would have the same behaviour as if I just pressed 'pause' and 'run' in the original file.

However, it seems like the 'save' function only saves the vehicle's location and orientation but not any physics behind. It will still start from zero speed and have a long transient time for it to reach 100.

Is there a way to tackle this issue? Thanks in advance.

0

There are 0 answers