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

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

asked 2022-08-06 19:31:10 -0500

distro gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-08-07 09:00:51 -0500

Mike Scheutzow gravatar image

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. .

edit flag offensive delete link more

Comments

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

distro gravatar image distro  ( 2022-08-07 22:19:41 -0500 )edit

Yes, but only if your cpu can deliver it.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-08-08 06:06:24 -0500 )edit

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

distro gravatar image distro  ( 2022-08-10 03:10:44 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-08-06 19:31:10 -0500

Seen: 257 times

Last updated: Aug 07 '22