电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

机器人工具箱仿真程序-Matlab

机器人工具箱仿真程序-Matlab_第1页
1/3
机器人工具箱仿真程序-Matlab_第2页
2/3
机器人工具箱仿真程序-Matlab_第3页
3/3
附录 MATLAB 机器人工具箱仿真程序: 1)运动学仿真模型程序(Rob1.m) L1=link([pi/2 150 0 0]) L2=link([0 570 0 0]) L3=link([pi/2 130 0 0]) L4=link([-pi/2 0 0 640]) L5=link([pi/2 0 0 0]) L6=link([0 0 0 95]) r=robot({L1 L2 L3 L4 L5 L6}) r.name=’MOTOMAN-UP6’ % 模型的名称 >>drivebot(r) 2)正运动学仿真程序(Rob2.m) L1=link([pi/2 150 0 0]) L2=link([0 570 0 0]) L3=link([pi/2 130 0 0]) L4=link([-pi/2 0 0 640]) L5=link([pi/2 0 0 0]) L6=link([0 0 0 95]) r=robot({L1 L2 L3 L4 L5 L6}) r.name=’MOTOMAN-UP6’ t=[0:0.01:10];%产生时间向量 qA=[0 0 0 0 0 0 ]; %机械手初始关节角度 qAB=[-pi/2 -pi/3 0 pi/6 pi/3 pi/2 ];%机械手终止关节角度 figure('Name','up6 机器人正运动学仿真演示');%给仿真图像命名 q=jtraj(qA,qAB,t);%生成关节运动轨迹 T=fkine(r,q);%正向运动学仿真函数 plot(r,q);%生成机器人的运动figure('Name','up6 机器人末端位移图') subplot(3,1,1); plot(t, squeeze(T(1,4,:))); xlabel('Time (s)'); ylabel('X (m)'); subplot(3,1,2); plot(t, squeeze(T(2,4,:))); xlabel('Time (s)'); ylabel('Y (m)'); subplot(3,1,3); plot(t, squeeze(T(3,4,:))); xlabel('Time (s)'); ylabel('Z (m)'); x=squeeze(T(1,4,:)); y=squeeze(T(2,4,:)); z=squeeze(T(3,4,:)); figure('Name','up6 机器人末端轨迹图'); plot3(x,y,z); 3)机器人各关节转动角度仿真程序:(Rob3.m) L1=link([pi/2 150 0 0 ]) L2=link([0 570 0 0]) L3=link([pi/2 130 0 0]) L4=link([-pi/2 0 0 640]) L5=link([pi/2 0 0 0 ]) L6=link([0 0 0 95]) r=robot({L1 L2 L3 L4 L5 L6}) r.name='motoman-up6' t=[0:0.01:10]; qA=[0 0 0 0 0 0 ]; qAB=[ pi/6 pi/6 pi/6 pi/6 pi/6 pi/6]; q=jtraj(qA,qAB,t); Plot(r,q); subplot(6,1,1); plot(t,q(:,1)); title('转动关节 1'); xlabel('时间/s'); ylabel('角度/rad'); subplot(6,1,2); plot(t,q(:,2)); title('转动关节 2'); xlabel('时间/s'); ylabel('角度/rad'); subplot(6,1,3); plot(t,q(:,3)); title('转动关节 3'); xlabel('时间/s'); ylabel('角度/rad'); subplot(6,1,4); plot(t,q...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

机器人工具箱仿真程序-Matlab

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部