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

[Sprint] Set mixed as default representation in data.build #361

Merged
merged 7 commits into from
Jan 31, 2025

Conversation

xela-95
Copy link
Member

@xela-95 xela-95 commented Jan 30, 2025

This PR introduced the following changes:

  • Refactors data.build method to use the mixed representation if not specified
  • Refactor model.step to accept link forces in any representation (as done in main)
  • Remove ode.system_velocity_dynamics since its job has been extracted in other functions and now is a duplicated of system_acceleration

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

@xela-95 xela-95 self-assigned this Jan 30, 2025
@xela-95 xela-95 requested a review from flferretti as a code owner January 30, 2025 12:10
Copy link
Collaborator

@flferretti flferretti left a comment

Choose a reason for hiding this comment

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

Thanks a lot @xela-95, LGTM!

src/jaxsim/api/model.py Show resolved Hide resolved
@xela-95 xela-95 merged commit 9552e95 into sprint/dev Jan 31, 2025
17 of 24 checks passed
@xela-95 xela-95 deleted the sprint/set-mixed-as-default-repr branch January 31, 2025 15:28
CarlottaSartore pushed a commit that referenced this pull request Feb 4, 2025
* Rename base linear and angular velocity parameters in `forward_kinematics_model`

* Update JaxSimModelData to use Mixed as default repr. in `build` function

* Restore `step` function to accept link forces in the same reprensentation of data

* Refactor tests to reflect changes in API

* Remove redundant `system_velocity_dynamics` function and update `system_dynamics` to use `system_acceleration` directly

* Update `step` function to use `system_acceleration` instead of `system_velocity_dynamics`

* Format `test_automatic_differentiation.py`
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