gazebosim / gz-physics

Abstract physics interface designed to support simulation and rapid development of robot applications.
https://gazebosim.org
Apache License 2.0
62 stars 38 forks source link

bullet-featherstone: fix SetWorldPose with off-diagonal moment of inertia #623

Closed iche033 closed 2 months ago

iche033 commented 2 months ago

🦟 Bug fix

Summary

For a body that has non-zero off-diagonal elements of moment of inertia, setting its world pose gave unexpected results:

bullet_principal_axes_offset

This is because now there is a rotational offset in its principal axes. This PR fixes setting world pose by taking into account the rotational offset.

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.