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 references representation in system_velocity_dynamics #240

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

xela-95
Copy link
Member

@xela-95 xela-95 commented Sep 20, 2024

In system_velocity_dynamics we create a references instance with the input velocity representation of data, then we call js.contact.collidable_point_dynamics inside a context manager in which data representation has been switched to Inertial, but in this case the references object has not been switched accordingly, with the result that in the cases of input data representation being Body or Mixed the link forces passed to js.contact.collidable_point_dynamics could be wrong.

Let me know what do you think :)


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

@xela-95 xela-95 self-assigned this Sep 20, 2024
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!

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.

Good catch @xela-95! Probably it went under our radar in one of the latest changes of this function.

Just yesterday I found a problem in js.contact.collidable_point_dynamics when the representation of data is not Inertial. I still need to push it, though. If this is the use-case in any of your scripts, let me know so that I prioritize the PR.

@diegoferigo diegoferigo merged commit ec6a2d4 into ami-iit:main Sep 20, 2024
14 checks passed
@xela-95
Copy link
Member Author

xela-95 commented Sep 20, 2024

Just yesterday I found a problem in js.contact.collidable_point_dynamics when the representation of data is not Inertial. I still need to push it, though. If this is the use-case in any of your scripts, let me know so that I prioritize the PR.

Ah ok! @diegoferigo if you want to push a PR even in draft it will be great for me since I'm testing the behavior of contacts under different conditions :)

@diegoferigo
Copy link
Member

Just yesterday I found a problem in js.contact.collidable_point_dynamics when the representation of data is not Inertial. I still need to push it, though. If this is the use-case in any of your scripts, let me know so that I prioritize the PR.

Ah ok! @diegoferigo if you want to push a PR even in draft it will be great for me since I'm testing the behavior of contacts under different conditions :)

Sure, done in #241.

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