M-File Help: tr2rpy | View code for tr2rpy |
Convert a homogeneous transform to roll-pitch-yaw angles
rpy = tr2rpy(T, options) are the roll-pitch-yaw angles (1x3) corresponding to the rotation part of a homogeneous transform T. The 3 angles rpy=[R,P,Y] correspond to sequential rotations about the Z, Y and X axes respectively.
rpy = tr2rpy(R, options) as above but the input is an orthonormal rotation matrix R (3x3).
If R (3x3xK) or T (4x4xK) represent a sequence then each row of rpy corresponds to a step of the sequence.
'deg' | Compute angles in degrees (radians default) |
'xyz' | Return solution for sequential rotations about X, Y, Z axes |
'zyx' | Return solution for sequential rotations about Z, Y, X axes (default) |
'yxz' | Return solution for sequential rotations about Y, X, Z axes |
'arm' | Return solution for sequential rotations about X, Y, Z axes |
'vehicle' Return solution for sequential rotations about Z, Y, X axes
'camera' | Return solution for sequential rotations about Y, X, Z axes |
© 1990-2014 Peter Corke.