gazebosim / gz-sim

Open source robotics simulator. The latest version of Gazebo.
https://gazebosim.org
Apache License 2.0
621 stars 251 forks source link

Publish step size in world stats topic #2340

Closed iche033 closed 3 months ago

iche033 commented 3 months ago

🎉 New feature

Summary

The step_size field in WorldStatistics msg is currently not populated / published in the /stats topic. This PR populates the field in a way that conforms to the msg documentation: /// \brief Iteration step size. It's zero when paused.

Test it

# run gz sim
gz sim -v 4 -r shapes.sdf

...

# echo the stats topic
gz topic -e -t /world/shapes/stats

Checklist

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.