Mini-Projet Robotique - PUMA560: Fehmi NAJAR
Mini-Projet Robotique - PUMA560: Fehmi NAJAR
Mini-Projet Robotique - PUMA560: Fehmi NAJAR
Mini-Projet
Robotique – PUMA560
Fehmi NAJAR
Professor of Mechanical Engineering
3/1/2023
Text Book
◼ Peter Corke, Robotics, Vision and Control, Springer, 2011.
◼ Matlab Robotics toolbox (Peter Corke)
Online Youtube course on Robotics (Oussama Khatib, Stanford university) :
https://www.youtube.com/watch?v=0yD3uBshJB0&list=PL65CC0384A1798ADF
2
3/1/2023
Homogeneous transformation
❑ tranimate(T1)
❑ T2 = eul2r(1, 1.5, 1)
❑ tranimate(T2)
❑ T3 = rpy2r(1,1.5,1)
3
3/1/2023
Homogeneous transformation
◼ Homogeneous transformation
❑ H = transl(1, 0, 0) * trotx(pi/2) * transl(0, 1, 0)
❑ trplot(H)
❑ tranimate(H)
◼ Extract translation
❑ transl(H)'
4
3/1/2023
Forward Kinematics
5
3/1/2023
6
3/1/2023
i i 1
ai 1 di i
SC
1 0 0 0 1
0
2 2
0 0 2
0
3 0 a2 d3 3
0
4 2
a3 d4 4
0
5 2
0 0 5
0
6 2
0 0 6
0
7
3/1/2023
◼ PUMA 560
❑ mdl_puma560akb
❑ p560m
❑ p560m.base = transl(0,0,1) * trotx(pi) move the base : This robot is now hanging
8
3/1/2023
Inverse Kinematics
9
3/1/2023
10
3/1/2023
◼ mdl_puma560
◼ J = p560.jacob0(qr)
◼ rank(J)
◼ jsingu(J) detect singularity
◼ q = qr
◼ q(5) = 5 * pi/180 theta5=5deg : ill-conditioned position
◼ J=p560.jacob0(q)
◼ det(J)
◼ qd = inv(J)*[0 0 0.1 0 0 0]’
◼ qd‘ : the elbow have to move at 9.85 rad.s–1 or nearly 600 deg.s–1
11
3/1/2023
14
3/1/2023
0
0 50 100 150 200 250
15
3/1/2023
◼ Cartesian Motion
◼ T0 = transl(0.4, 0.2, 0) * trotx(pi);
◼ T1 = transl(-0.4, -0.2, 0.3) * troty(pi/2)*trotz(-pi/2);
◼ Ts = trinterp(T0, T1, [0:49]/49); translation is linearly
interpolated, rotation is spherically interpolated using
quaternion (4x4x50)
◼ P = transl(Ts); translational part
◼ plot(P);
◼ tranimate(Ts);
◼ rpy = tr2rpy(Ts); then plot(rpy);
◼ Ts = trinterp(T0, T1, lspb(0,1, 50) ); Using
parabolic blend.
◼ Or Ts = ctraj(T0, T1, 50);
◼ P = transl(Ts); translational part.
◼ plot(P);
◼ tranimate(Ts);
◼ rpy = tr2rpy(Ts); then plot(rpy);
16
3/1/2023
0.3
0.2
0.1
-0.1
-0.2
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
18
3/1/2023
1
q
-1
-2
-3
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
time
19
3/1/2023