frequencyOfThoughts = params.getParValueInt("frequencyOfThoughts");
whichStepToThinkAt = (int) ((1./frequencyOfThoughts) / (1/60.));
// Clock to ensure frame-rate independent motion.
clock = new Clock();
// Drop the agent and let it relax to avoid jitter.
env.stepPhysicalSimulationBy10Seconds();
// When agent is relaxed, start measuring the fitness.
agent.setFitnessRelevantStartingPosition();