matlab验证斯坦福机械手雅可比矩阵.doc_第1页
matlab验证斯坦福机械手雅可比矩阵.doc_第2页
matlab验证斯坦福机械手雅可比矩阵.doc_第3页
matlab验证斯坦福机械手雅可比矩阵.doc_第4页
matlab验证斯坦福机械手雅可比矩阵.doc_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

引Stanford Arm Forword Kinematics 的基本结论:一计算的Jacobian结果二各级矩阵三矢量叉积法J=J1 J2 J3 J4 J5 J6四验证直接微分法和矢量叉积法的结果一致:1.J1与直接求导比较:.2.J2matlab的计算验证过程: syms c6 s6 c5 s5 c4 s4 T65=c6 -1*s6 0 0;0 0 -1 0;s6 c6 0 0;0 0 0 1 T54=c5 -1*s5 0 0;0 0 1 0;-1*s5 -1*c5 0 0;0 0 0 1 T43=c4 -1*s4 0 0;s4 c4 0 0 ;0 0 1 0;0 0 0 1 T63=T43*T54*T65T63 = c4*c5*c6-s4*s6, -c4*c5*s6-s4*c6, c4*s5, 0 s4*c5*c6+c4*s6, -s4*c5*s6+c4*c6, s4*s5, 0 -s5*c6, s5*s6, c5, 0 0, 0, 0, 1 syms d3 T32=1 0 0 0; 0 0 -1 -1*d3;0 1 0 0;0 0 0 1 T62=T32*T63T62 = c4*c5*c6-s4*s6, -c4*c5*s6-s4*c6, c4*s5, 0 s5*c6, -s5*s6, -c5, -d3 s4*c5*c6+c4*s6, -s4*c5*s6+c4*c6, s4*s5, 0 0, 0, 0, 1 syms c1 c2 s1 s2 R20=c1*c2 -1*c1*s2 -1*s1;s1*c2 -1*s1*s2 c1;-1*s2 -1*c2 0 p622=0;-1*d3;0p622 = 0 -d3 0 p620=R20*p622p620 = c1*s2*d3 s1*s2*d3c2*d3 z2=0 0 c1;0 0 s1;-1*c1 -1*s1 0z2 = 0, 0, c1 0, 0, s1 -c1, -s1, 0 v2=z2*p620v2 = c1*c2*d3 s1*c2*d3 -c12*s2*d3-s12*s2*d3与直接求导比较:.在matlab中用B=jacobian(f,v)方法直接求导获取雅可比矩阵 clear syms theta1 d3 d2 theta2 F=cos(theta1)*d3*sin(theta2)-sin(theta1)*d2;sin(theta1)*d3*sin(theta2)+cos(theta1)*d2;d3*cos(theta2)F = cos(theta1)*d3*sin(theta2)-sin(theta1)*d2 sin(theta1)*d3*sin(theta2)+cos(theta1)*d2 d3*cos(theta2) syms theta4 theta5 theta6 v=theta1;theta2;d3;theta4;theta5;theta6v = theta1 theta2 d3 theta4 theta5 theta6 jacob=jacobian(F,v) 直接求偏导: syms theta1 d3 d2 theta2 theta4 theta5 theta6F1=cos(theta1)*d3*sin(theta2)-sin(theta1)*d2 dif(F1,theta1)补充对教材雅可比矩阵逆矩阵的求解: syms l1 theta1 l2 theta2J=-l1*sin(theta1)-l2*sin(theta1+theta2)-l2*sin(theta1+theta2);l1*cos(theta1)+l2*cos(theta1+theta2) l2*cos(theta1+theta2)J = -l1*sin(theta1)-l2*sin(theta1+theta2), -l2*sin(theta1+theta2) l1*cos(theta1)+l2*cos(theta1+theta2), l2*cos(theta1+theta2) inv(J) ans = -cos(theta1+theta2)/l1/(cos(theta1+theta2)*sin(theta1)-sin(theta1+theta2)*cos(theta1), -sin(theta1+theta2)/l1/(cos(theta1+theta2)*sin(theta1)-sin(theta1+theta2)*cos(theta1) (l1*cos(theta1)+l2*cos(theta1+theta2)/l2/l1/(cos(theta1+theta2)*sin(theta1)-sin(theta1+theta2)*cos(theta1), (l1*sin(theta1)+l2*sin(theta1+theta2)/l2/l1/(cos(theta1+theta2)*sin(theta1)-sin(theta1+theta2)*cos(theta1) J11=simple(-cos(theta1+th

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论