matlab函数 tr2rpy,tr2rpy.m · octopus/spatialmath-matlab - Gitee.com

TR2RPY是MATLAB中将SO(3)或SE(3)矩阵转换为roll-pitch-yaw角度的函数。它接受一个齐次变换矩阵或正交旋转矩阵,返回相应的roll、pitch、yaw角。该函数考虑了不同轴的旋转顺序,并处理了在pitch等于π/2时的奇异性问题。函数还支持将结果转换为度数和不同的旋转顺序。
摘要由CSDN通过智能技术生成

%TR2RPY Convert SO(3) or SE(3) matrix 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=[ROLL,PITCH,YAW] correspond to sequential rotations about the Z, Y and

% X axes respectively. Roll and yaw angles are in [-pi,pi) while pitch angle is

% in [-pi/2,pi/2).

%

% 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.

%

% Options::

% '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

%

% Notes::

% - There is a si

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值