![](https://csdnimg.cn/release/download_crawler_static/87096524/bg3.jpg)
%将四元数转化为旋转矩阵
(7)q.R;
%界面,可以是“rpy”,“eluer”角度单位为度。
(8)tripleangle('rpy');
General/Transformations
%沿 x 轴平移 0.5,绕 y 轴旋转 pi/2,绕 z 轴旋转-pi/2
(1)t = transl(0.5, 0.0, 0.0) * troty(pi/2) * trotz(-pi/2)
%将齐次变换矩阵转化为欧拉角
(2)tr2eul(t)
%将齐次变换矩阵转化为 roll、pitch、yaw 角
(3) tr2rpy(t)