Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#312 Simulate at actual speed

closed
Nathan Koenig
Gazebo (98)
5
2008-09-09
2008-08-02
RAZOR
No

The simulator was running slower than specified, because it would do a simulation step and afterwards set the time of the previous physics update to be the current time. This result in the actual step size being (roughly) the desired step size plus the time taken to do the calculations.

Also, the sim timer did not stop when the simulation was paused.

Discussion

  • RAZOR
    RAZOR
    2008-08-02

    Patch to fix slower than desired simulation

     
    Attachments
  • RAZOR
    RAZOR
    2008-08-02

    • labels: --> Gazebo
     
  • Toby Collett
    Toby Collett
    2008-08-30

    • assigned_to: nobody --> natepak
     
  • Nathan Koenig
    Nathan Koenig
    2008-09-09

    Applied most of the patch to trunk. Moved the line: this->prevPhysicsTime before the world update.

     
  • Nathan Koenig
    Nathan Koenig
    2008-09-09

    • status: open --> closed