gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.2k stars 482 forks source link

fix: Don't divide time by zero if single stepping. #3352

Closed jmachowinski closed 1 year ago

jmachowinski commented 1 year ago

Summary

When stepping, the console always showed a warning "[gzserver-6] [Err] [Time.cc:684] Time divide by zero". This commit fixes the warning, caused by a check on a wrong variable.

jmachowinski commented 1 year ago

Can we merge this ?

traversaro commented 1 year ago

@ahcorde as the original author of the code, would you like to double check this fix? Thanks!

scpeters commented 1 year ago

thanks for the fix!