[ODE] Re: How to Make Simulation Independent from realtime?

Daniel Marbach daniel.marbach at epfl.ch
Sun Nov 21 00:33:11 MST 2004


>> Can someone throw light on "How to make the simulation independent from
>> realtime"?

Hi,

I'm doing the exact same thing (applying a GA to evolve robots), it works well.
You don't have to 'switch the graphics off', just don't turn them on! ;)

For example:

while (simTime < EVALUTATION_TIME) {
  // step the simulation
  dSpaceCollide(space, 0, &nearCallback);
  dWorldStep(world,timeStep);

  // remove all contact joints
  dJointGroupEmpty(contactGroup);

  // step the simulation time
  simTime += timeStep;
}
return fitness;


Good luck!

----------------------------------------
Daniel Marbach
Bitziusstr. 9
CH-3006 Bern

Tel: 031 351 11 09
WWW: http://icwww.epfl.ch/~marbach/
----------------------------------------


More information about the ODE mailing list