Hi,
I have just commited  (r6411) a change to support upper updating rates
limits .

Gazebo has a main loop that basically :

updatePhysics
updateRendering and updateGui

Now an upper limit of how many times per seconds these operations are called
can be set.
This is done with a new <updateRate> tag inside physics:ode or
rendering:ogre sections.

So for instance,

  <physics:ode>
    <stepTime>0.03</stepTime>
    <updateRate>100</updateRate>
    <gravity>0 0 -9.8</gravity>
    <cfm>0.008</cfm>
    <erp>0.2</erp>
  </physics:ode>

  <rendering:gui>
    <type>fltk</type>
    <size>800 600</size>
    <pos>0 0</pos>
  </rendering:gui>

  <rendering:ogre>
    <updateRate>15</updateRate>
    <ambient>1.0 1.0 1.0 1.0</ambient>
    <sky>
      <material>Gazebo/CloudySky</material>
    </sky>
  </rendering:ogre>

Will not update more than 100 times/second physics or 15 time/seconds the
visualization (FPS).

If those tags are not set (or set to 0), the system will update everything
at full speed (so nothing should change if this feature is not used)

IMHO, this will give much more flexibility to Gazebo.

-- 
Jordi Polo Carres
NLP laboratory - NAIST
http://www.bahasara.org
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo

Reply via email to