Professional Documents
Culture Documents
Xlec 06
Xlec 06
Xlec 06
6: Dynamics
Dynamics Overview
2
Terminology
• Definitions
– Generalized coordinates: any minimal set of independent
parameters sufficient to completely specify the configuration of
a system
– Vector norm: measure of the magnitude of a vector
• 2-norm:
x 2 = x = x12 + x2 2 + ... + xn 2 , x ∈ R n
= xT x
– Inner product:
• Dot product for arbitrary vector spaces
x,y = y T x x, y ∈ R n
• Note that: 2
x,x = xT x = x
• Note also that the inner product is zero if the two vectors
are orthogonal
3
Euler-Lagrange Equations
4
Euler-Lagrange Equations
Euler-Lagrange Equations
6
Euler-Lagrange Equations
8
Ex: 1DOF system
Holonomic constraints
11
Holonomic constraints
12
Holonomic constraints
13
Virtual displacements
14
Virtual displacements
• This says that in order for the virtual displacements to satisfy the
holonomic constraints, they must be orthogonal to the constraint
forces.
− For example:
15
18
Principle of virtual work
• Thus we can write the work done by the constraint forces as:
f1aT δ r1 + f 2aT δ r2 = c ( r1 − r2 ) δ r1 − c ( r1 − r2 ) δ r2
T T
= c ( r1 − r2 ) (δ r1 − δ r2 )
T
19
D’Alembert’s principle
i =1
– We can again use the principle of virtual work to remove the
constraint forces from Fi and this becomes:
k k
∑ fi T
δ ri − ∑ p iδ ri = 0
20
i =1 i =1
D’Alembert’s principle
D’Alembert’s principle
vi
23
D’Alembert’s principle
• Putting this pack into our first equation for the work from the fictitious
force: n ⎧
k
⎪ d ∂K ∂K ⎫⎪
∑ i i ∑ ⎨ dt ∂q − ∂q ⎬δ q j
p T
δ r =
i =1 ⎪
j =1 ⎩ j j⎭⎪
• Finally, combining this with the external forces:
n ⎧⎪ d ∂K ∂K ⎫⎪
∑ ⎨ dt ∂q −
∂q j
−ψ j ⎬δ q j = 0
j =1 ⎪
⎩ j ⎪⎭
25
Euler-Lagrange Equations
26
Euler-Lagrange Equations
27
Kinetic Energy
28
Inertia
Inertia
30
Inertia
( )
I xx = ∫∫∫ y 2 + z 2 ρ ( x, y, z ) dxdydz
principal
I yy = ∫∫∫ ( x 2
+z 2
)ρ ( x, y, z ) dxdydz moments
of inertia
I zz = ∫∫∫ ( x 2
+ y2 )ρ ( x, y, z ) dxdydz
I xy = I yx = − ∫∫∫ xyρ ( x, y, z ) dxdydz
cross
I xz = I zx = − ∫∫∫ xzρ ( x, y, z ) dxdydz products
I yz = I zy = − ∫∫∫ yzρ ( x, y, z ) dxdydz of inertia
31
( y + z ) ρ dxdydz
c /2 b /2 a /2
I xx = ∫
− c /2 ∫− b /2 ∫− a /2
2 2
= ∫ ∫ ( y 2 + z 2 ) x − a /2 ρ dydz
c /2 b /2 a /2
− c /2 − b /2
= ρ a ∫ ∫ ( y 2 + z 2 ) dydz
c /2 b /2 c /2 b /2 a /2
− c /2 − b /2 I xy = − ∫ ∫ ∫ xy ρ dxdydz
− c /2 − b /2 − a /2
b /2
⎛ y3
c /2 ⎞ yx 2
a /2
= ρa∫ ⎜ + z2 y ⎟
c /2 b /2
− c /2 3
dz = −∫ ∫ ρ dydz = 0
⎝ ⎠ −b /2 − c /2 − b /2 2
− a /2
c /2 ⎛ b ⎞
2
= ρ ab ∫ ⎜ + z 2 ⎟ dz
− c /2 12
⎝ ⎠
I yy =
m 2 2
12
(
a +c )
=ρ
abc 2 2
12
(
b +c =
m 2 2
12
b +c ) ( ) I zz =
m 2
12
(
a + b2 )
32
Ex: uniform cylinder
33
• We said that the kinetic energy of a rigid body is the sum of two
terms:
1 1
K = mvT v + ω T Ιω
2 2
• Noting the relation between the inertia tensor (inertial frame) and
the inertia matrix (body-attached frame), this becomes:
1 1
K = mvT v + ω T RIRT ω
2 2
• Similar to a set of particles, the total kinetic energy for an n-link
manipulator is the sum of the kinetic energy of each link:
n
⎧1 1 ⎫
K = ∑ ⎨ mi viT vi + ωiT Ri I i RiT ωi ⎬
i =1 ⎩ 2 2 ⎭
34
Kinetic energy of an n-link manipulator
i =1 ⎩ 2 2 ⎭
• Lastly, we need a relation between the joint velocities and the
linear and angular velocity of the CM of each link
– This is simply the Jacobian:
vi = J vi ( q ) q ωi = Jωi ( q ) q
• Thus we can rewrite the kinetic energy as a function of the joint
variables:
n
⎧1 1 ⎫
K = ∑ ⎨ mi q T J vi ( q ) J vi ( q ) q + q T Jωi ( q ) Ri ( q ) I i Ri ( q ) Jωi ( q ) q ⎬
T T T
i =1 ⎩ 2 2 ⎭
35
K=
1 T⎡n
2 ⎣ i =1
{
q ⎢ ∑ mi J vi ( q ) J vi ( q ) + Jωi ( q ) Ri ( q ) I i Ri ( q ) Jωi ( q )
T T T
}⎦⎤⎥ q = 12 q D ( q ) q
T
Inertia matrix
36
Potential energy of an n-link manipulator
37
Equations of motion
39
Equations of motion
j =1 i =1 ⎩ i k ⎭ j =1 i =1 ⎪
⎩ i j k ⎪ ⎭
• For simplicity, we make the following definition:
1 ⎛ ∂d kj ∂d ki ∂dij ⎞
cijk ≡ ⎜ + − ⎟⎟
2 ⎝⎜ ∂qi ∂q j ∂qk ⎠
– cijk are the Christoffel symbols
∂P
• Define the gravity force on the kth link as: g k =
∂qk
40
Equations of motion
• This holds for any n-link manipulator that has kinetic energy defined
by two terms and potential energy that is independent of velocity
41
Summary
1
K1 = m1q12
2
1
(
K 2 = m2 q12 + l 2 q22 − 2lq1q2 sin q2
2
)
K = K1 + K 2
P = m2 gl sin q2
47
49
51
⎡ − Lc1 sin q1 0 ⎤
⎡ q ⎤
v1 = J v1 q = Lc1 cos q1 0 ⎥ ⎢ 1 ⎥
⎢
⎢ q
⎣ 0 0 ⎥⎦ ⎣ 2 ⎦
v2 = J v2 q
⎡ − L1 sin q1 − Lc 2 sin ( q1 + q2 ) − Lc 2 sin ( q1 + q2 ) ⎤
⎡ q ⎤
= ⎢ L1 cos q1 + Lc 2 cos ( q1 + q2 ) Lc 2 cos ( q1 + q2 ) ⎥ ⎢ 1 ⎥
⎢ ⎥ ⎣ q2 ⎦
⎢⎣ 0 0 ⎥⎦
52
Example 5: two-link elbow manipulator
⎡0 0 ⎤ ⎡0 0 ⎤
⎡q ⎤ ⎡q ⎤
ω1 = Jω1 q = ⎢0 0 ⎥ ⎢ 1 ⎥ ω2 = Jω2 q = ⎢ 0 0 ⎥ ⎢ 1 ⎥
⎢1 0 ⎥ ⎣ q2 ⎦ ⎢1 1 ⎥ ⎣ q2 ⎦
⎣ ⎦ ⎣ ⎦
53
d 22 = m2 Lc 2 2 + I zz ,2
55
( )
d12 = m2 Lc 2 2 + L1Lc 2 cos ( q2 ) + I zz ,2
d 22 = m2 Lc 2 2 + I zz ,2
• We next determine the Christoffel symbols:
1 ⎧ ∂d11 ∂d11 ∂d11 ⎫ 1 ∂d11
c111 = ⎨ + − ⎬= =0
2 ⎩ ∂q1 ∂q1 ∂q1 ⎭ 2 ∂q1
1 ⎧ ∂d ∂d ∂d ⎫ 1 ∂d11
c121 = ⎨ 12 + 11 − 12 ⎬ = = − m2 L1Lc 2 sin q2 for k = 1
2 ⎩ ∂q1 ∂q2 ∂q1 ⎭ 2 ∂q2
1 ⎧ ∂d ∂d ∂d ⎫
c221 = ⎨ 12 + 12 − 22 ⎬ = − m2 L1Lc 2 sin q2
2 ⎩ ∂q2 ∂q2 ∂q1 ⎭
56
Example 5: two-link elbow manipulator
58
Example 6: General RR planar manipulator
τ1 τ2
59
60
Example 7: planar five-bar
61
62
Example 7: planar five-bar
⎡I + I 0 ⎤
4
D ( q ) = ∑ mi J vi ( q ) J vi ( q ) + ⎢ 1 3
T
i =1 ⎣ 0 I 2 + I 4 ⎥⎦
⎡ m1Lc12 + m3 Lc 32 + m4 L12 + I1 + I 3 ( m3 L2 Lc 3 − m4 L1Lc 4 ) cos ( q2 − q1 ) ⎤
=⎢ ⎥
⎢⎣( m3 L2 Lc 3 − m4 L1Lc 4 ) cos ( q2 − q1 ) m2 Lc 2 + m3 L2 + m4 Lc 4 + I 2 + I 4 ⎥⎦
2 2 2
63
64