gazebosim / gz-sensors

Provides numerous sensor models designed to generate realistic data from simulation environments.
https://gazebosim.org
Apache License 2.0
63 stars 58 forks source link

ForceTorqueSensor: add API for newest measurement #449

Closed scpeters closed 3 months ago

scpeters commented 4 months ago

🎉 New feature

Needed for https://github.com/gazebosim/gz-sim/issues/2268 and https://github.com/gazebosim/gz-sim/issues/2391.

Summary

Currently the wrench data published by gz-transport is not available via the C++ API. This pull request adds an accessor to the most recent Wrench message that is identical to that published on gz-transport.

Test it

Build and run bin/INTEGRATION_force_torque

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 4 months ago

cc @bperseghetti