![MATLAB機器人仿真程序_第1頁](http://file3.renrendoc.com/fileroot_temp3/2022-3/9/a9e4437a-8a9c-4091-a032-4b853d9c841a/a9e4437a-8a9c-4091-a032-4b853d9c841a1.gif)
![MATLAB機器人仿真程序_第2頁](http://file3.renrendoc.com/fileroot_temp3/2022-3/9/a9e4437a-8a9c-4091-a032-4b853d9c841a/a9e4437a-8a9c-4091-a032-4b853d9c841a2.gif)
![MATLAB機器人仿真程序_第3頁](http://file3.renrendoc.com/fileroot_temp3/2022-3/9/a9e4437a-8a9c-4091-a032-4b853d9c841a/a9e4437a-8a9c-4091-a032-4b853d9c841a3.gif)
下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、附錄MATLAB 機器人工具箱仿真程序:1) 運動學(xué)仿真模型程序( 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)= ' MOTOMAN-UP'6 % 模型的名稱>>drivebot(r)2) 正運動學(xué)仿真程序 (Rob2.m) L1=link(pi/2 150 0 0)L2=link(0 570 0
2、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) = ' MOTOMAN-UP'6 t=0:0.01:10;% 產(chǎn)生時間向量 qA=0 0 0 0 0 0 ; %機械手初始關(guān)節(jié)角度機械手終止關(guān)節(jié)角度');% 給仿真圖像命名qAB=-pi/2 -pi/3 0 pi/6 pi/3 pi/2 ;% figure('Name','up6 機器人正運動學(xué)仿真演示 q=jt
3、raj(qA,qAB,t);% 生成關(guān)節(jié)運動軌跡 T=fkine(r,q);% 正向運動學(xué)仿真函數(shù) 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)
4、39;);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) 機器人各關(guān)節(jié)轉(zhuǎn)動角度仿真程序: (Rob3.m) L1=link(pi/2 150 0 0 )L2=link(0 570 0 0) L3=link(pi/2
5、 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) ='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(' 轉(zhuǎn)動關(guān)節(jié) 1'); xlabel(' 時間 /s');
6、 ylabel(' 角度 /rad'); subplot(6,1,2);plot(t,q(:,2);title(' 轉(zhuǎn)動關(guān)節(jié) 2');xlabel(' 時間 /s');ylabel(' 角度 /rad'); subplot(6,1,3);plot(t,q(:,3);title(' 轉(zhuǎn)動關(guān)節(jié) 3');xlabel(' 時間 /s');ylabel(' 角度 /rad'); subplot(6,1,4);plot(t,q(:,4);title(' 轉(zhuǎn)動關(guān)節(jié) 4');xla
7、bel(' 時間 /s');ylabel(' 角度 /rad' ); subplot(6,1,5);plot(t,q(:,5);title(' 轉(zhuǎn)動關(guān)節(jié) 5'); xlabel(' 時間 /s'); ylabel(' 角度 /rad');subplot(6,1,6);plot(t,q(:,6);title(' 轉(zhuǎn)動關(guān)節(jié) 6'); xlabel(' 時間 /s'); ylabel(' 角度 /rad');Rob4.m)1.0645 -1.0201;4) 機器人各關(guān)節(jié)轉(zhuǎn)動
8、角速度仿真程序: t=0:0.01:10;qA=0 0 0 0 0 0 ;%機械手初始關(guān)節(jié)量qAB= 1.5709 -0.8902 -0.0481 -0.5178 q,qd,qdd=jtraj(qA,qAB,t);Plot(r,q); subplot(6,1,1);plot(t,qd(:,1); title(' 轉(zhuǎn)動關(guān)節(jié) 1'); xlabel(' 時間 /s'); ylabel('rad/s'); subplot(6,1,2);plot(t,qd(:,2); title(' 轉(zhuǎn)動關(guān)節(jié) 2'); xlabel(' 時間 /
9、s'); ylabel('rad/s'); subplot(6,1,3);plot(t,qd(:,3); title(' 轉(zhuǎn)動關(guān)節(jié) 3'); xlabel(' 時間 /s'); ylabel('rad/s');subplot(6,1,4); plot(t,qd(:,4);title(' 轉(zhuǎn)動關(guān)節(jié) 4'); xlabel(' 時間 /s'); ylabel('rad/s' );subplot(6,1,5);plot(t,qd(:,5);title(' 轉(zhuǎn)動關(guān)節(jié) 5
10、9;); xlabel(' 時間 /s');ylabel('rad/s');subplot(6,1,6);plot(t,qd(:,6);title(' 轉(zhuǎn)動關(guān)節(jié) 6'); xlabel(' 時間 /s'); ylabel('rad/s');5) 機器人各關(guān)節(jié)轉(zhuǎn)動角加速度仿真程序: ( Rob5.m) t=0:0.01:10;% 產(chǎn)生時間向量qA=0 0 0 0 0 0qAB =1.5709 -0.8902 -0.0481 -0.5178 1.0645 -1.0201; q,qd,qdd=jtraj(qA,qAB,t
11、);figure('name','up6 機器人機械手各關(guān)節(jié)加速度曲線 '); subplot(6,1,1);plot(t,qdd(:,1);title(' 關(guān)節(jié) 1'); xlabel(' 時間 (s)');ylabel('加速度(rad/s)');subplot(6,1,2);plot(t,qdd(:,2);title(' 關(guān)節(jié) 2'); xlabel(' 時間 (s)');ylabel('加速度(rad/s)');subplot(6,1,3);plot(t,qdd(:,3);title(' 關(guān)節(jié) 3');xlabel('ylabel('時間(s)');加速度(rad/sA2)')subplot(6,1,4);plot(t,qdd(:,4);title('關(guān)節(jié)4');xlabel('時間(s)');ylabel('加速度(rad/sA2)')subplot(6,1,5);plot(t,qdd(:
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 百鎮(zhèn)千村示范衛(wèi)生機構(gòu)創(chuàng)建課件
- DB6103T 77-2025釀酒高粱寬窄行栽培技術(shù)規(guī)范
- 船運安全的防范措施與管理建議分析
- 三人合資餐飲企業(yè)合同模板
- 專利許可使用與轉(zhuǎn)讓協(xié)議合同
- 上海住宅租賃合同范本
- 人事代理人員勞動合同書
- 個人壽險代理合同書樣本
- 臨時兼職教師勞動合同范文
- 臨時性勞動合同模板
- 電捕焦油器火災(zāi)爆炸事故分析
- 質(zhì)量問題分析及措施報告
- 汽修廠安全風(fēng)險分級管控清單
- 現(xiàn)代通信原理與技術(shù)(第五版)PPT全套完整教學(xué)課件
- 病例展示(皮膚科)
- GB/T 39750-2021光伏發(fā)電系統(tǒng)直流電弧保護技術(shù)要求
- DB31T 685-2019 養(yǎng)老機構(gòu)設(shè)施與服務(wù)要求
- 燕子山風(fēng)電場項目安全預(yù)評價報告
- 高一英語課本必修1各單元重點短語
- 完整版金屬學(xué)與熱處理課件
- T∕CSTM 00640-2022 烤爐用耐高溫粉末涂料
評論
0/150
提交評論