gazebosim / gz-sim

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

Add GravityEnabled boolean component #2451

Closed scpeters closed 1 week ago

scpeters commented 1 week ago

🎉 New feature

Follow-up to https://github.com/gazebosim/gz-sim/pull/2398, needed for https://github.com/gazebosim/gz-sim/pull/2447

Summary

This adds a boolean GravityEnabled component to the existing gz/sim/components/Gravity.hh header file, which should be used with Link entities instead of the Vector3 gravity component.

cc @AzulRadio

Test it

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.