Lecture Notes 6 - Dynamics
Lecture Notes 6 - Dynamics
ROBOTICS
THEORY OF APPLIED
ROBOTICS
KINEMATICS, DYNAMICS,
AND CONTROL
4. DYNAMICS
Lecture notes
Ha Le Nhu Ngoc Thanh, Ph.D.
Faculty of Mechanical Engineering
HCMC University of Tech. & Education
HCMC University of Tech. & Education Faculty of Mechanical Engineering HCMC University of Tech. & Education Faculty of Mechanical Engineering
Given:
Forward dynamics : Given , , and , find for simulation
+ a set of generalized coordinates, q q1, q 2 ,, qn
Inverse dynamics : Given , , and , find for design controller and control robot
Approachs to solve dynamic problem: + a set of generalized velocity, q q1, q2, , qn
Largangian formulation: based on potential enegy and kinetic enegy + a set of generalized torque, 1, 2 ,, n
Newton-Euler formulation: analysis based on isolating each link and considering all for a prismatic joint, i
is a force acting along the axis of the joint
forces acting on it Kinetic energy (𝑲)
Lagrangian 𝑳 𝒒, 𝒒̇ d L L
dt q q
Ha Le Nhu Ngoc Thanh, Ph.D. 3 Lecture notes: Introduction to Robotics Ha Le Nhu Ngoc Thanh, Ph.D. 4 Lecture notes: Introduction to Robotics
25-Nov-23
HCMC University of Tech. & Education Faculty of Mechanical Engineering HCMC University of Tech. & Education Faculty of Mechanical Engineering
The Lagrange Formulation For a multi-link (mass M (q) is a matrix) with a velocity q ,
The Lagrange Formulation
L q, q K q, q U q
Kinetic energy is a scalar given by the quadratic form:
Kinetic energy
Potential energy V (q, q ) G(q)
Equation of motion: M (q)q (**)
d L L
1 T
K q M (q)q
dt q q 2
K 1 T HOW TO DETERMINE EQUATION OF MOTION (**)
q M (q)q M (q)q
q q 2 Determine M, V, G
d
K q, q U q d K d d
K (q, q ) U (q) M (q ) q M (q ) q
If the mass matrix M (q) is determined, we can determine K , and V
dt q q
dt q dt dt
d K
K 1 q T M (q)q
U q 0
d K K
M (q )q M (q)q
q
q, q q q, q q U q dt q
from M (q)
V (q, q2)
dt q M (q)
q T q
Gravity vector G(𝒒) q1
K 1 T 1
d K K U q M (q)q
where V is the vector of centrifugal and Coriolis forces:
Simpler form : () q q 2 2 coefficients of
T M (q)
dt q q q
q q M (q) Coriolis forces
qn q T
Inertial force Inertial forces Gravity forces M (q) q
q T q q
1 1
d K K 1
M (q)q
q1 V (q, q ) M (q)q V (q, q ) C (q)[q 2 ] B(q)[qq
]
For a single link (mass m is scalar) with a velocity v, Inertia l forces :
dt q q
M (q)q
2
2
T M (q) T M (q)
Kinetic : K
1 T 1
v mv mv 2
q q q q
2 2
q n
qn coefficients of
V (q,q )
n n 1 centrifugal forces
(*)
V (q, q ) G (q)
M (q )q n
where C (q) nn , B(q) 2
Ha Le Nhu Ngoc Thanh, Ph.D. 5 Lecture notes: Introduction to Robotics Ha Le Nhu Ngoc Thanh, Ph.D. 6 Lecture notes: Introduction to Robotics
HCMC University of Tech. & Education Faculty of Mechanical Engineering HCMC University of Tech. & Education Faculty of Mechanical Engineering
1 mijk , k 1, n
Ki m T Ti IC i q1 nn qk
2 i C i Ci 1
i
V (q, q ) M (q)q ,
d mij
1 n 2 dmij n
K m T Ti ICi i () T M (q)
q q and time derivative of mij : m q
2 i 1 i C i C i
qn dt dt qk k 1 ijk k
J
q 1 T
we also have : C v
i J iq , where J v at C i , and K q M (q)q
Kinetic energy :
i 2 For instance, consider the case of 2DOF manipulator
i i
dmij n
1 1 n
m mijkqk m 11 m111q1 m112q2
work done by external forces to ( )
q T M (q)q mi q T J vT J v q q T J T IC J q 11 m12 q1 v1 g1 1 dt k 1
m21 m22 q2 v2 g 2 2
bring the system from the rest 2 2 i 1 i i i i i
m m12
11
to its current state 1 1 n m11 m12 q1
q T M (q)q q T miJ vT J v J T IC J q
M q1 m111 m121 m
m121
m22 m211 m221
symmetric 111
m121 m221
q1 q1 m21 m22 m21
2 2 i 1 i i i i i M (q ) V (q ,q ) G (q )
q1
q1
Linear motion : n
1
K m 2
1
2
1
2 i 1
q T M (q)q q T miJ vT J v J T IC J q
i i i i i
T M (q) T M (q)
2 q q q q
Rotation motion : 1 m 11 m 12 1
q 1 q1
n
M (q) miJ vT J v J T IC J V (q, q ) M (q )q
q
1
K T IC i 1
i i i i i 2 q T M (q) q m21 m 22 2 q T M (q) q
2
(IC : inertial moment ) The mass matrix M (q) is symmetric positive definite q 2 q 2 m m122
meaning q T M (q)q 0, M (q) M T (q) 112
m122 m222
Ha Le Nhu Ngoc Thanh, Ph.D. 7 Lecture notes: Introduction to Robotics Ha Le Nhu Ngoc Thanh, Ph.D. 8 Lecture notes: Introduction to Robotics
25-Nov-23
HCMC University of Tech. & Education Faculty of Mechanical Engineering HCMC University of Tech. & Education Faculty of Mechanical Engineering
T M (q) m m121
q q T 111
q m q
m221 b q2
1
V (q, q ) M (q)q
q1
m
m 1
11 12 q 121
1,11 b1,22 b1,nn 12
2 q T M (q) q m21 m22 2 T m112 m122 b2,11 b2,22 b2,nn q
q q C q ]
(q)[ 2 2 ,
q 2
m
m222 q q
122 2 12
b b b
n n n 1
n,11 n ,22 n,nn qn q1q3
Apply :
1
m mikj m jki bijk
2 ijk
2b 2b1,13 2b1,1n 2b1,23 2b1,2n
2b1,(n 1)n q1qn
1,12
1 1 2b 2b2,13 2b2,1n 2b1,12 2b2,2n 2b2,(n 1)n q2q3
m m m m m122 m221 q12 m112 m121 m121 B(q) [ ] 2,12
qq
V (q, q ) 2
111 111 111
2 122 q2q4
2 m m m q1q2
1 m m m 1
m m222 m222 q2 212 221 122 2bn,12 2bn,13 2bn,1n 2b1,12 2bn ,2n 2bn,(n 1)n
(n 1)n ( n 1)n
n 1
2
211 211 112
2 222
2 2
q q
2 n
b b q 2 2b q 2
V (q, q ) 111 122 12 112 q1q2 V (q, q ) C 1 B q q
q 2 1 2 q q
n 1 n
b211 b222 q 2b212
2
2
C q 2 B
where bijk
1
m mikj m jki
2 ijk
Ha Le Nhu Ngoc Thanh, Ph.D. 9 Lecture notes: Introduction to Robotics Ha Le Nhu Ngoc Thanh, Ph.D. 10 Lecture notes: Introduction to Robotics
HCMC University of Tech. & Education Faculty of Mechanical Engineering HCMC University of Tech. & Education Faculty of Mechanical Engineering
s
1
z0 pc p0 1 0 0l1s1 l1c1
z0 p2 p0 1 0 0d2s1 d2c1
0 c1 0 s 0 0 l1c1 0 0 0 0 0 0 0 0 0 0
Potential energy of link i : 1
c 0 s1 0
1
c
0 c1
0 s1 0 0 l1s1
0
T 1 , p 1
U i mi g 0hi U 0 1 0 1 0 0 c1 0 1 0 0 l1 0 l1s1 0 d2s1 c1
l c d c
0
0 0 1
0
0 0 1 1 1
1 1 0 l s 0 0 0 2 1 s1 d s c 0 0
l c 0 0 1 1 0 0 2 1 1
Where U0 represents the potential energy 1 1
pc l1s1
0
J1 , J v1 l1c1 0, J 1 0 0 0
J2 , J v 2 d2c1 s1 , J 2 0 0
0 0 0 0
at some reference level (normal U0 =0) 1
0 0 0 1 0 0 0 1
1
1 2 n d c
2 1
pc d 2s1
2
0
Ha Le Nhu Ngoc Thanh, Ph.D. 11 Lecture notes: Introduction to Robotics Ha Le Nhu Ngoc Thanh, Ph.D. 12 Lecture notes: Introduction to Robotics
25-Nov-23
HCMC University of Tech. & Education Faculty of Mechanical Engineering HCMC University of Tech. & Education Faculty of Mechanical Engineering
Ha Le Nhu Ngoc Thanh, Ph.D. 13 Lecture notes: Introduction to Robotics Ha Le Nhu Ngoc Thanh, Ph.D. 14 Lecture notes: Introduction to Robotics