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

Backport ForceTorque system: improve readability (#2403) #2405

Closed scpeters closed 1 month ago

scpeters commented 1 month ago

🦟 Bug fix

Backport of #2403 to Garden

Summary

Original description:

This adds some comments and uses structured bindings in range-based for loops to improve readability. It also adds const to unmodified variables in a loop.

Checklist

Note to maintainers: Remember to use Rebase-and-Merge.