-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix alternative velocity representations of new functional APIs #99
Conversation
The intermediate link jacobians were computed with the wrong output representation. The to_output helper requires link jacobians to have an inertial-fixed output representation.
The link forces passed as inputs are always in the active representation of data. Therefore, they need to be converted to Inertial before passing them to RNEA.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Diego, LGTM! I just wrote some minor comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
step
does not use the argument model
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep I'm aware and this is/was something wanted. There might be alternative step*
methods in the future requiring model
for internal computations. It was needed by the semi-implicit integrators, but probably with the most recent structure is no longer needed.
I leave a reminder in my code to check this sooner or later, likely when I'll upstream the semi-implicit integrators.
I'm in the process of developing unit tests of the new functional APIs and I found multiple bugs in velocity representations different from
VelRepr.Inertial
. While waiting the tests to be ready to be pushed upstream, this PR aims at fixing the found bugs.📚 Documentation preview 📚: https://jaxsim--99.org.readthedocs.build//99/