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

Add the possibility to set forces to frames #209

Merged
merged 5 commits into from
Jul 24, 2024
Merged

Conversation

flferretti
Copy link
Collaborator

@flferretti flferretti commented Jul 17, 2024

The implementation extends JaxSimModelReferences with a apply_frame_forces method that first converts the forces to inertial representation, then converts them to the parent link forces and finally calls apply_link_forces to return the object with the updated link forces.
The conversion logic can be found at #159 (comment).

Closes #159


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

@flferretti flferretti self-assigned this Jul 17, 2024
@flferretti flferretti linked an issue Jul 17, 2024 that may be closed by this pull request
@flferretti flferretti force-pushed the feature/frame_force branch 2 times, most recently from 6578638 to 28801f6 Compare July 23, 2024 06:30
@flferretti flferretti marked this pull request as ready for review July 23, 2024 06:36
Copy link
Member

@diegoferigo diegoferigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @flferretti for taking care of this new feature! I have some doubts on the calculation of the forces, I provided some extra context in #159 (comment).

src/jaxsim/api/references.py Outdated Show resolved Hide resolved
src/jaxsim/api/references.py Outdated Show resolved Hide resolved
src/jaxsim/api/references.py Outdated Show resolved Hide resolved
src/jaxsim/api/references.py Outdated Show resolved Hide resolved
src/jaxsim/api/references.py Outdated Show resolved Hide resolved
src/jaxsim/api/references.py Outdated Show resolved Hide resolved
Co-authored-by: Diego Ferigo <[email protected]>
@flferretti flferretti merged commit a58766b into main Jul 24, 2024
24 checks passed
@flferretti flferretti deleted the feature/frame_force branch July 24, 2024 09:01
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.

Extend JaxSimModelReferences to support applying forces to frames
2 participants