Robotics StackExchange | Archived questions

what is the ros gazebo sim time to real time conversion?

If I have ros melodic and I have a .world file which has realtimeupdate_rate of 1000. what is that value in camparison to real time? is it faster, slower, the same? what's the conversion here?

Asked by distro on 2022-08-06 19:31:10 UTC

Comments

Answers

The upper bound on Real Time Factor is calculated by max_step_size * real_time_update_rate. The default values are 0.001 and 1000, which means gazebo will run in real time (=1.0) if your cpu is strong enough. This value can be used to intentionally slow down the simulation, or to permit the simulation to run faster than real time. .

Asked by Mike Scheutzow on 2022-08-07 09:00:51 UTC

Comments

@Mike Scheutzow So if max_step_size*real_time_update_rate=3, that means the simulation is 3 times faster than real time?

Asked by distro on 2022-08-07 22:19:41 UTC

Yes, but only if your cpu can deliver it.

Asked by Mike Scheutzow on 2022-08-08 06:06:24 UTC

@Mike Scheutzow Do I have to change publishing and subscriber rates if I try to make sim time faster?

Asked by distro on 2022-08-10 03:10:44 UTC