Skip to content
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

Avoid unnecessary dynamics computation in RNEA-related functions #371

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

flferretti
Copy link
Collaborator

@flferretti flferretti commented Feb 11, 2025

This PR removes unnecessary dynamics computations in RNEA-related functions, namely free_floating_gravity_forces and free_floating_bias_forces. This happened because js.data.JaxSimModelData.zero was called, computing the dynamics for the first time, and then data_rnea.replace was called, computing it for the second time.


📚 Documentation preview 📚: https://jaxsim--371.org.readthedocs.build//371/

@flferretti flferretti self-assigned this Feb 11, 2025
@flferretti flferretti requested a review from xela-95 as a code owner February 11, 2025 08:57
@flferretti flferretti merged commit cf5f4a5 into main Feb 11, 2025
19 of 25 checks passed
@flferretti flferretti deleted the flferretti-patch-3 branch February 11, 2025 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants