rpy.m
来自「移动机器人同时定位与地图创建最前沿技术」· M 代码 · 共 35 行
M
35 行
function v_rot=rpy(m_rot)% function v_rot=rpy(m_rot)%% Description% Computes the orientation vector (in rads) corresponding% to a rotation matrix. (dim 3)% [psi, theta, phi]%% The input datum is:% - m_rot.- a rotation matrix%% The return value is:% the rpy vector%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Grupo de Robotica %%%% Departamento de Informatica e Ingenieria de Sistemas %%%% Universidad de Zaragoza %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Name : rpy.m %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Programmer : Jose Maria Martinez %%%% Languaje : Matlab 4.2 c %%%% Date : February 1996 %%%% Status : Prueba %%%% History : 16-1-96 creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%v_rot(3)=angle(m_rot(2,1)*i+m_rot(1,1));v_rot(2)=angle(-m_rot(3,1)*i+m_rot(1,1)*cos(v_rot(3))+m_rot(2,1)*sin(v_rot(3)));v_rot(1)=angle(m_rot(3,2)*i+m_rot(3,3));return;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?