-
Notifications
You must be signed in to change notification settings - Fork 14
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
Refactor SoftContacts
algorithm
#245
Conversation
cbc7a63
to
f8a92a6
Compare
3ad87f6
to
9330c00
Compare
9330c00
to
cc7b010
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot Diego! I just added some minor comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for addressing the review!
8b9a695
to
33e0900
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great @diegoferigo! It looks good to me 🚀
Co-authored-by: Filippo Luca Ferretti <[email protected]>
33e0900
to
d59d2c2
Compare
I realized that we can greatly simplify the algorithm by removing all conditional branches. It might run slightly slower since it has to compute a few more variables, but the code becomes much more readable and easy to debug in case of problems.
I tried to run some simulations either with spheres (that are approximated with 250 points) and humanoid robots free falling on terrain, and performance are almost the same, in few cases I get average execution time couple of % points slower, which is more than acceptable.
Furthermore, I generalized some soft contact resources for something else that will land soon 😃
📚 Documentation preview 📚: https://jaxsim--245.org.readthedocs.build//245/