Professional Documents
Culture Documents
By
May, 2023
DYNAMICS
2
DYNAMICS
3
DYNAMICS
4
DYNAMICS
5
DYNAMICS
Euler-Lagrange model
𝒅 𝝏𝑳 𝝏𝑳
− = 𝑸𝒒 ; 𝑳 = 𝑲 − 𝑷,
𝒅𝒕 𝝏𝒒ሶ 𝝏𝒒
6
DYNAMICS
7
DYNAMICS
Example 1 Derive the force-acceleration relationship for the one-degree of freedom system.
Fig. Schematic of a simple cart-spring system. Fig. Free-body diagram for the sprint-cart system.
1 2 1 2 1 1 2 1 2
K mv m x , P kx2 L K P m x kx
2 2 2 2 2
Lagrangian mechanics Newtonian mechanics
__ __
L d . . .. L
m x , ( m x ) m x, kx
F m a
.
xi dt x
.. F kx ma F ma kx
F m x kx
8
DYNAMICS
𝜃 𝑙
1
Kinetic energy: 𝐾= 𝐼 𝜃Ǘ 2
2
9
DYNAMICS
1
Lagrangian function: 𝐿 = I𝜃Ǘ 2 − 𝑚𝑔𝑙(1 − cos 𝜃)
2
from which
𝜕𝐿 𝑑 𝜕𝐿 𝜕𝐿
Ǘ
= 𝐼 𝜃, ǃ
= 𝐼 𝜃, = −𝑚𝑔𝑙sin 𝜃
Ǘ
𝜕𝜃 Ǘ
𝑑𝑡 𝜕𝜃 𝜕𝜃
𝑄𝑞 = 𝜏 − 𝑑𝜃Ǘ
10
DYNAMICS
𝑑 𝜕𝐿 𝜕𝐿
𝑄𝑞 = −
Ǘ
𝑑𝑡 𝜕𝜃 𝜕𝜃
11
DYNAMICS
Example 3 Using the Lagrangian method, derive the equations of motion for
the 2-DOF robot arm, as shown in Figure below. The center of
mass for each link is at the center of the link. The moments of
inertia are 𝐼1 and 𝐼2 .
𝑙1 , 𝐼1
12
DYNAMICS
1
𝐾1 = 𝐼𝐴 𝜃ሶ12
2
1 2 1
𝐾2 = 𝐼𝐷 𝜃ሶ1 + 𝜃ሶ2 + 𝑚2 𝑣𝐷2
2 2
𝑣𝐷2 = 𝑥ሶ 𝐷2 + 𝑦ሶ 𝐷2
= 𝜃ሶ12 𝑙12 + 0.25𝑙22 + 𝑙1 𝑙2 𝐶2 + 𝜃ሶ22 0.25𝑙22 + 𝜃ሶ1 𝜃ሶ2 0.5𝑙22 + 𝑙1 𝑙2 𝐶2
The total kinetic energy of the system is the sum of the kinetic energies of links 1
and 2 . Remembering that the kinetic energy for a link rotating about a fixed
point (for link 1) and about the center of mass (for link 2).
13
DYNAMICS
1 1 2 1
𝐾 = 𝐾1 + 𝐾2 = 𝐼𝐴 𝜃1 + 𝐼𝐷 𝜃ሶ1 + 𝜃ሶ2
ሶ 2
+ 𝑚2 𝑣𝐷2
2 2 2
1 1 1 1 2 1
= 𝑚1 𝑙12 𝜃ሶ12 + 𝑚2 𝑙22 𝜃ሶ1 + 𝜃ሶ2 + 𝑚2 𝑣𝐷2
2 3 2 12 2
1 1 1 1
𝐾 = 𝜃ሶ12 2 2 2
𝑚1 𝑙1 + 𝑚2 𝑙2 + 𝑚2 𝑙1 + 𝑚2 𝑙1 𝑙2 𝐶2
6 6 2 2
1 1 1
+𝜃ሶ22 2 ሶ
𝑚 𝑙 + 𝜃1 𝜃2ሶ 2
𝑚 𝑙 + 𝑚 𝑙 𝑙 𝐶
6 22 3 22 2 212 2
14
DYNAMICS
1 1 1 1 ሶ 22 1
𝐿 = 𝐾 − 𝑃 = 𝜃Ǘ12 2 2 2 𝜃
𝑚1 𝑙1 + 𝑚2 𝑙2 + 𝑚2 𝑙1 + 𝑚2 𝑙1 𝑙2 𝐶2 + 𝜃22 𝑚2 𝑙22
6 6 2 2 6
1 1 𝑙1 𝑙2
+𝜃Ǘ1 𝜃Ǘ2 2
𝑚 𝑙 + 𝑚 𝑙 𝑙 𝐶 − 𝑚2 𝑔 𝑆1 − 𝑚2 𝑔 𝑙1 𝑆1 + 𝑆12
3 22 2 212 2 2 2
15
DYNAMICS
1 1 1 1
𝜏1 = 𝑚1 𝑙12 + 𝑚2 𝑙12 + 𝑚2 𝑙22 + 𝑚2 𝑙1 𝑙2 𝐶2 𝜃ሷ1 + 𝑚1 𝑙22 + 𝑚2 𝑙1 𝑙2 𝐶2 𝜃ሷ 2
3 3 3 2
1 1 1
− 𝑚1 𝑙1 𝑙2 𝑆2 𝜃ሶ1 𝜃ሶ2 − 𝑚2 𝑙1 𝑙2 𝑆2 𝜃ሶ22 + 𝑚1 + 𝑚2 𝑔𝑙1 𝐶1 + 𝑚2 𝑔2 𝑙2 𝐶12
2 2 2
1 1 1 1 1
𝜏2 = 𝑚2 𝑙2 + 𝑚2 𝑙1 𝑙2 𝐶2 𝜃ሷ1 + 𝑚1 𝑙2 𝜃ሷ2 + 𝑚2 𝑙1 𝑙2 𝑆2 𝜃ሶ12 + 𝑚2 𝑔2 𝑙2 𝐶12
3 2 3 2 2
16
DYNAMICS
1 2 2
1 2
1 2
1
𝑚1 𝑙1 + 𝑚1 𝑙1 + 𝑚2 𝑙2 + 𝑚2 𝑙1 𝑙2 𝐶2 𝑚2 𝑙2 + 𝑚2 𝑙1 𝑙2 𝐶2
3 3 3 2 𝜃1ሷ
1 2
1 1 2
𝜃2ሷ
𝑚 𝑙 + 𝑚 𝑙 𝑙 𝐶 𝑚 𝑙
3 22 2 212 2 3 22
1
0 − 𝑚2 𝑙1 𝑙2 𝑆2
2 𝜃ሶ12 − 𝑚2 𝑙1 𝑙2 𝑆2 0 𝜃ሶ1 𝜃ሶ2
+ +
1 ሶ𝜃22 0 0 𝜃ሶ2 𝜃ሶ1
𝑚2 𝑙1 𝑙2 𝑆2 0
2
1 1
𝑚 + 𝑚2 𝑔𝑙1 𝐶1 + 𝑚2 𝑔𝑙2 𝐶12
2 1 2 𝜏1
+ = 𝜏
1 2
𝑚2 𝑔𝑙2 𝐶12
2
17
Robotic Control
18