Mat lab Robotic Toolbox ZC 具箱学习笔记(一)
工具箱:Mat lab Robotic Toolbox v9. 8
Mat lab Robotic Toolbox T 具箱学习笔记根据 Robot Toolbox demonstrations
目录,将分三大部分阐述:
1、General(Rotations, Transformations, Trajectory)
2、Arm(Robot, Animation, Forwarw kinematics, Inverse kinematics, Jacobians,
Inverse dynamics, Forward dynamics, Symbolic, Code generation)
3、Mobile(Driving to a
pose, Quadrotor, Braitenberg, Bug, D*, PRNI, SLAM, Particle filter)
%绕X 轴旋转pi/2 得到的旋转矩阵
(1) r 二 rotx(pi/2);
%matlab 默认的角度单位为弧度,这里可以用度数作为单位
(2) R = rotx(30, 'deg') * roty(50, 'deg') * rotz(10, 'deg');
%求出R 等效的任意旋转变换的旋转轴矢量vec 和转角theta
(3) [theta, vec] = tr2angvec(R);
%旋转矩阵用欧拉角表示,R = rotz (a) *roty (b) *rotz (c)