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

Fix contact params estimation in fixed-base models #98

Merged
merged 3 commits into from
Mar 4, 2024

Conversation

flferretti
Copy link
Collaborator

@flferretti flferretti commented Mar 1, 2024

If the model.physics_model.is_floating_base is False, with the current version, the whole W_p_CoM variable is returned (shape=(3,)), but it should have shape=().
For this reason, the code has been changed such that the $z$ component of the CoM position is extracted also for fixed-base models.


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

@flferretti flferretti self-assigned this Mar 1, 2024
If the `model.physics_model.is_floating_base` is False, with the current version, the whole `W_p_CoM` variable is returned (`shape=(3,)`), but it should have `shape=()`
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.

Looks good, thanks! Just a minor notation change.

src/jaxsim/api/contact.py Outdated Show resolved Hide resolved
src/jaxsim/api/contact.py Outdated Show resolved Hide resolved
Co-authored-by: Diego Ferigo <[email protected]>
@flferretti flferretti merged commit f41c11b into main Mar 4, 2024
21 checks passed
@flferretti flferretti deleted the flferretti-patch-1 branch March 4, 2024 15:03
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.

None yet

2 participants