|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
这是机器人工具箱手册上提供的代码,但还是创建不了两个机械臂,求解答!
9 K2 O' y& Y& |4 w5 k% O8 T, ^( yclear
) h0 U+ ?6 k. P+ @9 Uclc
5 p# [. H) G* k, o4 p( dmdl_puma560;) S6 [) S; C( @( X `; G
p560b = p560; % duplicate the robot6 C( C# ~9 n1 |' C8 O
p560b.name ='Another Puma 560'; % give it a unique name
; }3 b5 |" w& p! op560b.base = transl([-0.5 0.5 0]); % move its base V2 W# D" R8 k# @( N" Z% F3 N1 s
plot(p560, qr); % display it at ready position
' c; _. ^/ {2 y6 S8 G# f5 Mhold on;0 c0 x. s4 Y3 z2 Y; v
plot(p560b, qr); % display it at ready position
8 m+ n) b3 y, E" St = [0:0.05:1];
6 R9 E/ `+ Y7 |2 d4 A3 q9 njt = jtraj(qr, qz, t); % trajectory to stretch pose+ I, I- g& V+ G7 v
for q = jt' % for all points on the path" W7 ^; X9 `3 i' J# \( B4 U/ U5 P* b
% hold on) R& f, A9 x0 ^
plot(p560, q');
, Z. ^) B: j3 C' z% hold on
g/ K+ a% W) w; q, i, L plot(p560b, q');, N3 h" q# g9 D2 \* d3 F
end1 c* P5 w/ [& i- g. y5 p& G
1 L! i8 M. @7 v
|
|