petercorke / robotics-toolbox-matlab

Robotics Toolbox for MATLAB
GNU Lesser General Public License v2.1
1.29k stars 444 forks source link

Conversion from degrees to radiants in calculation of rotation matrix #19

Closed apapadopoulos closed 7 years ago

apapadopoulos commented 7 years ago

Calling the function rpy2tr(0.6,0.8,1.4) returns the wrong rotation matrix. In particular, it calls the function rpy2r, that respectively calls rotx, roty, rotz, that use the sind and cosd functions that assume the angles in degrees. I fixed this problem by changing the conversion in radiants as a conversion in degrees.