Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to reset the simulation ?

Hi,

I need to reset the hole state of the simulation (the world and all models)

According to this link the Reset() function of the model don't work properly. I thought to do this:

  1. Delete the robots and put them back
  2. Stop and restart the physic engine
  3. quit the simulation and restart again

What is the appropriate way and how to do it from the API ??

Thank you in advance

ps: I'm trying to do evolution of controllers with genetic algorithm to make quadrupeds walk. The ones that travel long distance we will keep them to next generation. So if I don't reset properly the simulation at the beginning of each generation the robots will do a complete different behavior.