Skip to content

Clamp matrices in matrix_to_euler_angles function #1989

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

Closed
wants to merge 3 commits into from

Conversation

StoneT2000
Copy link
Contributor

@StoneT2000 StoneT2000 commented Jul 9, 2025

Closes #1988

Credit goes to @tylerlum for raising this issue and suggesting this fix in haosulab/ManiSkill#1090

@facebook-github-bot
Copy link
Contributor

Hi @StoneT2000!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 9, 2025
@bottler
Copy link
Contributor

bottler commented Jul 9, 2025

Thank you! Would you be happy with clamping to exactly -1.0 and 1.0? I don't think there's a reason to add an eps, but you might have a special reason.

@StoneT2000
Copy link
Contributor Author

I actually am not sure. This was suggested by @tylerlum in his PR to my own repo and I didn't think much of it. I can't think of any strong reason to actually add them, I will remove them.

I initially thought maybe this might affect some other conversions if someone were to chain conversions but this is just angles so shouldn't matter.

@facebook-github-bot
Copy link
Contributor

@bottler has imported this pull request. If you are a Meta employee, you can view this in D78021983.

@facebook-github-bot
Copy link
Contributor

@bottler merged this pull request in e3d3a67.

@bottler
Copy link
Contributor

bottler commented Jul 10, 2025

@StoneT2000 Thank you!

@tylerlum
Copy link

Glad to hear this got in! Thanks for making the PR @StoneT2000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Question about clamping for matrices during rotation conversions
4 participants