gazebosim / gz-sim

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

Provides step size via CLI interface and `ServerConfig` #2556

Closed arjo129 closed 2 months ago

arjo129 commented 2 months ago

πŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”Έ

πŸŽ‰ New feature

Closes #

Summary

This is probably not the best time to be making this PR as we are in the middle of the release. However for another project, I'd like to be able to set the Step Size via CLI. This is particularly useful for when we are doing integration testing of that project. This PR provides two command line flags that allow you to set the physics update rate and step size via cli. To try it out run:

gz sim shapes.sdf --physics-rtf 5.0 --physics-step-size 0.01

Note: Setting parameters via CLI/server_config should overwrite the world configs.

TODO: Update tests.

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.

πŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”Έ

azeey commented 2 months ago

Closed because we already have the -z flag which can be used to set the update rate in Hz. This flag does not change the step size, but reduces the amount of delay between each step.