


下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領
文檔簡介
1、附錄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)= ' MOTOMAN-UP'6 % 模型的名稱>>drivebot(r)2) 正運動學仿真程序 (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 ; %機械手初始關節(jié)角度機械手終止關節(jié)角度');% 給仿真圖像命名qAB=-pi/2 -pi/3 0 pi/6 pi/3 pi/2 ;% figure('Name','up6 機器人正運動學仿真演示 q=jt
3、raj(qA,qAB,t);% 生成關節(jié)運動軌跡 T=fkine(r,q);% 正向運動學仿真函數(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) 機器人各關節(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)動關節(jié) 1'); xlabel(' 時間 /s');
6、 ylabel(' 角度 /rad'); subplot(6,1,2);plot(t,q(:,2);title(' 轉(zhuǎn)動關節(jié) 2');xlabel(' 時間 /s');ylabel(' 角度 /rad'); subplot(6,1,3);plot(t,q(:,3);title(' 轉(zhuǎn)動關節(jié) 3');xlabel(' 時間 /s');ylabel(' 角度 /rad'); subplot(6,1,4);plot(t,q(:,4);title(' 轉(zhuǎn)動關節(jié) 4');xla
7、bel(' 時間 /s');ylabel(' 角度 /rad' ); subplot(6,1,5);plot(t,q(:,5);title(' 轉(zhuǎn)動關節(jié) 5'); xlabel(' 時間 /s'); ylabel(' 角度 /rad');subplot(6,1,6);plot(t,q(:,6);title(' 轉(zhuǎn)動關節(jié) 6'); xlabel(' 時間 /s'); ylabel(' 角度 /rad');Rob4.m)1.0645 -1.0201;4) 機器人各關節(jié)轉(zhuǎn)動
8、角速度仿真程序: t=0:0.01:10;qA=0 0 0 0 0 0 ;%機械手初始關節(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)動關節(jié) 1'); xlabel(' 時間 /s'); ylabel('rad/s'); subplot(6,1,2);plot(t,qd(:,2); title(' 轉(zhuǎn)動關節(jié) 2'); xlabel(' 時間 /
9、s'); ylabel('rad/s'); subplot(6,1,3);plot(t,qd(:,3); title(' 轉(zhuǎn)動關節(jié) 3'); xlabel(' 時間 /s'); ylabel('rad/s');subplot(6,1,4); plot(t,qd(:,4);title(' 轉(zhuǎn)動關節(jié) 4'); xlabel(' 時間 /s'); ylabel('rad/s' );subplot(6,1,5);plot(t,qd(:,5);title(' 轉(zhuǎn)動關節(jié) 5
10、9;); xlabel(' 時間 /s');ylabel('rad/s');subplot(6,1,6);plot(t,qd(:,6);title(' 轉(zhuǎn)動關節(jié) 6'); xlabel(' 時間 /s'); ylabel('rad/s');5) 機器人各關節(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 機器人機械手各關節(jié)加速度曲線 '); subplot(6,1,1);plot(t,qdd(:,1);title(' 關節(jié) 1'); xlabel(' 時間 (s)');ylabel('加速度(rad/s)');subplot(6,1,2);plot(t,qdd(:,2);title(' 關節(jié) 2'); xlabel(' 時間 (s)');ylabel('加速度(rad/s)');subplot(6,1,3);plot(t,qdd(:,3);title(' 關節(jié) 3');xlabel('ylabel('時間(s)');加速度(rad/sA2)')subplot(6,1,4);plot(t,qdd(:,4);title('關節(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)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度租賃房屋消防設施維護協(xié)議
- 二零二五年度新能源汽車半股轉(zhuǎn)讓與充電樁建設合同
- 2025年度模特個人品牌授權(quán)簽約合同
- 第五章 第二節(jié) 氮及其化合物教學設計-2023-2024學年高一上學期化學人教版2019必修第二冊
- 2025年度旅游服務合同解除通知函范本
- 二零二五年度股東分紅權(quán)與公司發(fā)展綁定協(xié)議
- 2025年度環(huán)保產(chǎn)業(yè)合伙公司股權(quán)合作協(xié)議
- 二零二五年度網(wǎng)約車平臺司機服務合同范本
- 二零二五年度宅基地贈與子女及土地權(quán)益交接與維護合同
- 第12課《滿江紅(小住京華)》教學設計-2023-2024學年統(tǒng)編版語文九年級下冊
- 路面工程重點、關鍵、和難點工程的施工方案(技術標)
- 港口集裝箱物流系統(tǒng)建模與仿真技術研究-教學平臺課件
- 合肥市城市大腦·數(shù)字底座白皮書2020
- 杭州灣跨海大橋項目案例ppt課件
- (完整版)光榮榜25張模板
- 工業(yè)催化劑作用原理—金屬氧化物催化劑
- 2022年三八婦女節(jié)婦女權(quán)益保障法律知識競賽題庫及答案(共290題)
- 優(yōu)秀教材推薦意見(真實的專家意見)
- Of studies原文譯文及賞析
- QTD01鋼質(zhì)焊接氣瓶檢驗工藝指導書
- 辛棄疾生平簡介(課堂PPT)
評論
0/150
提交評論