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

Give full precision for NotARotationMatrixException message #55

Open
calvertdw opened this issue Jul 25, 2023 · 2 comments · May be fixed by #62
Open

Give full precision for NotARotationMatrixException message #55

calvertdw opened this issue Jul 25, 2023 · 2 comments · May be fixed by #62

Comments

@calvertdw
Copy link
Member

I rarely get the following exception and without the full precision, a unit test cannot be created.

Exception in thread "main" us.ihmc.euclid.exceptions.NotARotationMatrixException: Caught exception, this frame: LEFT_SHIN_LINKCoM, other frame: LEFT_THIGH_LINKCoM, exception:
The matrix is not a rotation matrix: 
/ 1.000,  0.000,  0.001 \
|-0.000,  1.000, -0.000 |
\-0.001,  0.000,  1.000 /
	at us.ihmc.euclid.referenceFrame.ReferenceFrame.getTransformToDesiredFrame(ReferenceFrame.java:936)
@calvertdw
Copy link
Member Author

I think this code will do it:

public static String toStringFullPrecision(RigidBodyTransform rigidBodyTransform)
{
   return EuclidCoreIOTools.getRigidBodyTransformString(EuclidCoreIOTools.getStringFormat(18, 18), rigidBodyTransform);
}

@calvertdw
Copy link
Member Author

I got 3 more NotARotationMatrixExceptions today. This feature would still be awesome.

@SylvainBertrand SylvainBertrand linked a pull request Feb 16, 2024 that will close this issue
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 a pull request may close this issue.

1 participant