When i try to calculate roll, pitch, yaw values from a rotation matrix given below:
i get math error in my calculator. But, matlab (using peter corke's robotics toolbox) gives me some values as result.
%Rotation Matrix 5
R = [-0.9122 0.4098 0; -0.4098 -0.9122 0; 0 0 1];
tr2rpy(R,'deg')
Output: 0 0 -155.8083
Does that mean the rotation matrix is invalid ? Can i believe the matlab output ?
Thanks and regards !