Tutorial 5-8
Tutorial 5-8
Obtain the position and orientation of the tool point P with respect to the base
for the 2 DOF, RP planar manipulator shown in figure. Consider joint angle 120
degrees and link length 200 mm.
S o l ut i on
T = TZ () TZ () TX(a) TX ()
T=
T=
S o l ut i on (C o n td . ,)
T1 = ; T2 = T =
T = T1 * T 2 =
Lets go to the
MATLAB
S o l ut i on (C o n td . ,)
clc
clear all
close all
l(1)=Link([0,0,0,pi/2,0])
l(2)=Link([0,0,0,0,1])
R=SerialLink(l)
R.fkine([(2*pi)/3 200])
R.plot([(2*pi)/3 200],'workspace',[-250 250 -250 250 -250 250],'reach',300);
BITS Pilani
Pilani | Dubai | Goa | Hyderabad
• 1 =
T T4 =
T2 = T5 =
T3 = T=
T=T1*T2*T3*T4*T5
Lets go to the
MATLAB
S o l ut i on (C o n td . ,)
Develop workspace points in MATLAB for planar manipulator whose joint angle
is π and link length is 20 mm.
S o lu t io n
T =
Lets go to the
MATLAB
S o l ut i on (C o n td . ,)
MATLAB Code:
clc
clear all
close all
t1 = linspace(0,pi,11)
d2= linspace(0,20,11)
for i=1:11
for j=1:11
C1=cos(t1(i));
S1=sin(t1(i));
S o l ut i on (C o n td . ,)
dx=d2(j)*S1;
dy=-d2(j)*C1;
plot(dx,dy,'xk')
hold on
pause(.1)
axis tight
end
end
BITS Pilani
Pilani | Dubai | Goa | Hyderabad
Workspace – 2: Articulated
manipulator
P r ob l e m N o . 7
Link d a
1 1 0 0 90
2 2 0 L2 0
3 3 0 L3 0
S o l ut i on (C o n td . ,)
•T1 =
T2 = T=
T3 =
Lets go to the
MATLAB
S o l ut i on (C o n td . ,)
MATLAB Code:
clc
L3=30;
L2=30;
t1 = linspace(0,pi,15);
t2 = linspace(0,pi/2,15);
t3 = linspace(0,pi/2,15);
for i=1:15
for j=1:15
C23=cos(t2(i)+t3(j));
C1=cos(t1(i));
C2=cos(t2(i));
S o l ut i on (C o n td . ,)
S23=sin(t2(i)+t3(j));
S1=sin(t1(i));
S2=sin(t2(i));
dx=C1*(L3*C23+L2*C2);
dy=S1*(L3*C23+L2*C2);
dz=L3*S23+L2*S2;
plot3(dx,dy,dz,'mx')
hold on
pause(.1)
end
end
P r ob l e m N o . 8
Determine joint angles of PUMA 560 robot for end effector position [0.2 0.5 0]
and RPY= [0 180 0]. [Use robotics tool box].
Lets go to the
MATLAB
S o l ut i on