Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Where is the real-time factor determined?

Hi,

I'm currently running an experiment where I need to run the simulation in real time (i.e., real-time factor = 1). For that reason, I'd like to either disable the automatic real-time factor adjustment or at least report a warning if the simulation cannot keep up.

Right now I'm monitoring the real-time factor with gz stats, but I feel this is not ideal, because it might miss temporary drops between two updates. Instead, I'd like to check this right where the adjustment happens. Could somebody point me to the place in the code where the real-time factor is adjusted? I'm not too familiar with the gazebo code base and wasn't able to find it.

(I'm using Gazebo 9)

Thanks,

Tobias