Ask Your Question
0

How can I get the accuracy between two angles (euler or other)?

asked 2018-02-28 04:57:04 -0500

sarah1802 gravatar image

Hi Together,

I have a board of marker and detect their angles in respect to the camera. I know that one marker to the other marker should have been rotated with 5° or an other already known angle about the z-Axis. Due to the camera - marker "relationship" is there always a "flip offset" of 180°-X (X is there because I captured the pictures not perpendicular). Now I get for instance the angle (euler ZYX):

A -178.155774553622°; -1.81510372911041°; 5.46620496345042° (rotated marker 5°)

B 175.347721071838°; -1.19249002241927°; -0.334586900200200° (reference "zero" marker 0°)

C -6.49650437453965 °; -0.622613706691140°; 5.80079186365062° (the difference between marker 5° and marker 0°)

D 0°; 0°; 5° (the difference it should be)

My problem is, that depending on the convention (XYZ/ZYX/ZXZ and so on...) there are alway different angles. I know that should be like that. But I don't know how to calculate the difference in a prober way, so that I can compare what the real difference over each axis is.

Is there any way to compare the angles in a better way, maybe not in euler angles but in a way to say "1° decree offset"?

Thank you very much Sarah

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2018-02-28 04:59:58 -0500

LBerger gravatar image

use euler-rodrigues conversion

in opencv it's here

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-02-28 04:57:04 -0500

Seen: 53 times

Last updated: Feb 28 '18