gazebosim / gz-physics

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

bullet-featherstone: Reset joint motor constraint's velocity target after each step #699

Closed iche033 closed 2 weeks ago

iche033 commented 3 weeks ago

🦟 Bug fix

Fixes https://github.com/gazebosim/gz-sim/issues/2654

Summary

Resets the joint velocity cmd after each step to be consistent with dart behavior.

Note: I also tried removing the joint motor constraint after each step but that didn't work (test fails) so opted to reset the joint velocity target to 0.

We have a test for this in joint_features but only for dart. This PR enables the test for bullet-featherstone as well. There is also a test in gz-sim in a branch (see instructions in https://github.com/gazebosim/gz-sim/issues/2654). The test there should now pass with these changes.

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.