ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
4

Gazebo real and simulation time

asked 2012-06-05 02:30:32 -0600

Erwan R. gravatar image

Hello,

As running gazebo, I noticed the lower toolbar with RMS Error, xReal Time, Real time, etc. I'm wondering how exactly are computed all this times and why, when I'm roslaunching lots of nodes, xReal Time is decreasing (as the simulator is slower and the computer also) ?

If I missed some doc about that, please link.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
7

answered 2012-06-05 04:08:14 -0600

DimitriProsser gravatar image

In your .world file, you can specify the desired update rate for Gazebo using the <updateRate> tag.

<physics:ode>
   ...
   <stepTime>STEP_TIME</stepTime>
   <updateRate>UPDATE_RATE</updateRate>
   ...
</physics:ode>

The value of <updateRate> has three configurations:

  1. UPDATE_RATE < 0: Gazebo will attempt to run the simulation in real time

  2. UPDATE_RATE = 0: Gazebo will attempt to run the simulation as fast as possible

  3. UPDATE_RATE > 0: This number will represent the desired physics update frequency. In this case, Gazebo will run STEP_TIME*UPDATE_RATE times reality.

If Gazebo is not able to update at your desired rate, it will update as fast as it can. It's based on the system's computing power, so more nodes = less CPU time for Gazebo.

edit flag offensive delete link more

Comments

Thanks for answering. Is there a default value if the tag isn't defined (if real time is 1.0, I think the default value is negative) ?

Erwan R. gravatar image Erwan R.  ( 2012-06-05 04:52:58 -0600 )edit

I don't know what the default value is. Gazebo always runs at sub-real-time for me (about 0.75 real-time).

DimitriProsser gravatar image DimitriProsser  ( 2012-06-05 06:12:14 -0600 )edit

Okey, I'm gonna experience some values to check that. Thanks for help ! :)

Erwan R. gravatar image Erwan R.  ( 2012-06-05 21:39:45 -0600 )edit

Has this been tested to work in Fuerte? I am setting the parameter as you suggest but with no luck (the simulation in my case is running too fast, I would like real time)

phil0stine gravatar image phil0stine  ( 2012-06-25 10:46:15 -0600 )edit

This is for the Electric version of Gazebo. Fuerte migrated to Gazebo 1.0. I don't know how to do this in that version

DimitriProsser gravatar image DimitriProsser  ( 2012-06-25 11:06:01 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2012-06-05 02:30:32 -0600

Seen: 10,007 times

Last updated: Jun 05 '12