Calculating angles from the rotation matrix

I computed rotation matrix from "[relativeOrientation,relativeLocation] = relativeCameraPose(M,cameraParams,inlierPoints1,inlierPoints2)", I don't know the order of rotation by which the rotation matrix is computed ('XYZ','XZY','ZYX','ZXY','YZX' or 'YXZ'). which order do I need to consider for computing rotation angles (I'm using "rotm2eul(rotation,'order')").

Answers (1)

Read the documentation, they have discussed about the order. https://in.mathworks.com/help/robotics/ref/rotm2eul.html

1 Comment

If we know the order, then we can mention the order in "rotm2eul" to get the angles. My query is, what is the order of rotation, matlab is considering to calculate the rotation matrix with the function "relativeCameraPose".

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!