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 safe norm function and refactor usages #319

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

flferretti
Copy link
Collaborator

@flferretti flferretti commented Dec 17, 2024

This PR introduces a safe_norm function to handle norm calculations safely, preventing division by zero and ensuring gradient compatibility.

FYI @CarlottaSartore


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

Copy link
Member

@xela-95 xela-95 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 me it's good to go! If you have time, maybe adding a small unit test on the safe_norm function for future regression could be a good idea :)

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.

2 participants