Module 6
Module 6
of Mechanical Engineering
&
Centre for Product Design and Manufacture
Indian Institute of Science
Bangalore 560 012, India
Email: [email protected]
NPTEL, 2010
NPTEL, 2010
1 / 74
.
. .1 C ONTENTS
.
. .2 L ECTURE 1
Introduction
Lagrangian formulation
.
. .3 L ECTURE 2
Examples of Equations of Motion
.
. .4 L ECTURE 3
Inverse Dynamics & Simulation of Equations of Motion
.
. .5 L ECTURE 4
Recursive Formulations of Dynamics of Manipulators
.
. .6 M ODULE 6 A DDITIONAL M ATERIAL
Maple Tutorial, ADAMS Tutorial, Problems, References and
Suggested Reading
.
NPTEL, 2010
2 / 74
O UTLINE
.
. .1 C ONTENTS
.
. .2 L ECTURE 1
Introduction
Lagrangian formulation
.
. .3 L ECTURE 2
Examples of Equations of Motion
.
. .4 L ECTURE 3
Inverse Dynamics & Simulation of Equations of Motion
.
. .5 L ECTURE 4
Recursive Formulations of Dynamics of Manipulators
.
. .6 M ODULE 6 A DDITIONAL M ATERIAL
Maple Tutorial, ADAMS Tutorial, Problems, References and
Suggested Reading
.
NPTEL, 2010
3 / 74
I NTRODUCTION
OVERVIEW
NPTEL, 2010
4 / 74
I NTRODUCTION
OVERVIEW
NPTEL, 2010
4 / 74
I NTRODUCTION
OVERVIEW
NPTEL, 2010
4 / 74
I NTRODUCTION
OVERVIEW
NPTEL, 2010
4 / 74
I NTRODUCTION
OVERVIEW
NPTEL, 2010
4 / 74
I NTRODUCTION
OVERVIEW
NPTEL, 2010
4 / 74
I NTRODUCTION
OVERVIEW
NPTEL, 2010
5 / 74
I NTRODUCTION
OVERVIEW
NPTEL, 2010
5 / 74
I NTRODUCTION
OVERVIEW
NPTEL, 2010
5 / 74
I NTRODUCTION
OVERVIEW
NPTEL, 2010
5 / 74
I NTRODUCTION
OVERVIEW
NPTEL, 2010
5 / 74
I NTRODUCTION
M ASS AND I NERTIA OF A L INK
0
Z
Mass m of
the rigid body is
given by V dV , is density.
{0}
dV
0
Y
Inertia tensor 0 [I ]
Ixx
0
[I ] = Ixy
Ixz
in {0}
Ixy
Iyy
Iyz
Ixz
Iyz
Izz
Rigid Body
0
X
Figure 1: Mass and inertia of a rigid body
A SHITAVA G HOSAL (IIS C )
NPTEL, 2010
6 / 74
I NTRODUCTION
M ASS AND I NERTIA OF A L INK
Elements
of the inertia tensor
0 [I ]
NPTEL, 2010
7 / 74
I NTRODUCTION
M ASS AND I NERTIA OF A L INK
Elements
of the inertia tensor
0 [I ]
NPTEL, 2010
7 / 74
I NTRODUCTION
M ASS AND I NERTIA OF A L INK
Elements
of the inertia tensor
0 [I ]
NPTEL, 2010
7 / 74
I NTRODUCTION
M ASS AND I NERTIA OF A L INK
Elements
of the inertia tensor
0 [I ]
NPTEL, 2010
7 / 74
I NTRODUCTION
M ASS AND I NERTIA OF A L INK
Elements
of the inertia tensor
0 [I ]
NPTEL, 2010
7 / 74
O UTLINE
.
. .1 C ONTENTS
.
. .2 L ECTURE 1
Introduction
Lagrangian formulation
.
. .3 L ECTURE 2
Examples of Equations of Motion
.
. .4 L ECTURE 3
Inverse Dynamics & Simulation of Equations of Motion
.
. .5 L ECTURE 4
Recursive Formulations of Dynamics of Manipulators
.
. .6 M ODULE 6 A DDITIONAL M ATERIAL
Maple Tutorial, ADAMS Tutorial, Problems, References and
Suggested Reading
.
NPTEL, 2010
8 / 74
L AGRANGIAN FORMULATION
K INETIC ENERGY
1
1
mi 0 VCi 0 VCi + 0 i 0 [I ]i 0 i
2
2
First and second term from linear velocity of the links centre of mass
and angular velocity of link.
0
VCi and 0 i are the linear and angular velocities of the centre of mass
and link {i}, respectively.
0
i = 0i [R]i i
1
1
mi i VCi i VCi + i i Ci [I ]i i i
2
2
.
(1)
.
NPTEL, 2010
9 / 74
L AGRANGIAN FORMULATION
K INETIC ENERGY
1
1
mi 0 VCi 0 VCi + 0 i 0 [I ]i 0 i
2
2
First and second term from linear velocity of the links centre of mass
and angular velocity of link.
0
VCi and 0 i are the linear and angular velocities of the centre of mass
and link {i}, respectively.
0
i = 0i [R]i i
1
1
mi i VCi i VCi + i i Ci [I ]i i i
2
2
.
(1)
.
NPTEL, 2010
9 / 74
L AGRANGIAN FORMULATION
K INETIC ENERGY
1
1
mi 0 VCi 0 VCi + 0 i 0 [I ]i 0 i
2
2
First and second term from linear velocity of the links centre of mass
and angular velocity of link.
0
VCi and 0 i are the linear and angular velocities of the centre of mass
and link {i}, respectively.
0
i = 0i [R]i i
1
1
mi i VCi i VCi + i i Ci [I ]i i i
2
2
.
(1)
.
NPTEL, 2010
9 / 74
L AGRANGIAN FORMULATION
K INETIC ENERGY (C ONTD .)
i
i
i
i
VCi
i
=
=
=
i
i1
i1 + i (0 0 1)T
i1 [R]
i
i1
joint i is
i1
i1 [R]
i
i
i
Vi + i pCi
joint i is rotary
prismatic
Ci
0
0p
Ci
0 [R]T ,
i = 0i [R]
i
VCi =
d 0
( pCi )
dt
(2)
1 In
NPTEL, 2010
10 / 74
L AGRANGIAN FORMULATION
K INETIC ENERGY (C ONTD .)
i
i
i
i
VCi
i
=
=
=
i
i1
i1 + i (0 0 1)T
i1 [R]
i
i1
joint i is
i1
i1 [R]
i
i
i
Vi + i pCi
joint i is rotary
prismatic
Ci
0
0p
Ci
0 [R]T ,
i = 0i [R]
i
VCi =
d 0
( pCi )
dt
(2)
1 In
NPTEL, 2010
10 / 74
L AGRANGIAN FORMULATION
K INETIC ENERGY (C ONTD .)
i
i
i
i
VCi
i
=
=
=
i
i1
i1 + i (0 0 1)T
i1 [R]
i
i1
joint i is
i1
i1 [R]
i
i
i
Vi + i pCi
joint i is rotary
prismatic
Ci
0
0p
Ci
0 [R]T ,
i = 0i [R]
i
VCi =
d 0
( pCi )
dt
(2)
1 In
NPTEL, 2010
10 / 74
L AGRANGIAN FORMULATION
K INETIC ENERGY (C ONTD .)
i
i
i
i
VCi
i
=
=
=
i
i1
i1 + i (0 0 1)T
i1 [R]
i
i1
joint i is
i1
i1 [R]
i
i
i
Vi + i pCi
joint i is rotary
prismatic
Ci
0
0p
Ci
0 [R]T ,
i = 0i [R]
i
VCi =
d 0
( pCi )
dt
(2)
1 In
NPTEL, 2010
10 / 74
L AGRANGIAN FORMULATION
P OTENTIAL ENERGY
(3)
NPTEL, 2010
11 / 74
L AGRANGIAN FORMULATION
P OTENTIAL ENERGY
(3)
NPTEL, 2010
11 / 74
L AGRANGIAN FORMULATION
E QUATIONS OF MOTION
From the kinetic and potential energy, define the scalar Lagrangian
N
= (KEi PEi )
L (q, q)
(4)
= Qi
i = 1, 2, ..., n
dt q i
qi
(5)
i = 1, ..., n
(6)
NPTEL, 2010
12 / 74
L AGRANGIAN FORMULATION
E QUATIONS OF MOTION
From the kinetic and potential energy, define the scalar Lagrangian
N
= (KEi PEi )
L (q, q)
(4)
= Qi
i = 1, 2, ..., n
dt q i
qi
(5)
i = 1, ..., n
(6)
NPTEL, 2010
12 / 74
L AGRANGIAN FORMULATION
E QUATIONS OF MOTION
From the kinetic and potential energy, define the scalar Lagrangian
N
= (KEi PEi )
L (q, q)
(4)
dt q i
qi
(5)
i = 1, ..., n
(6)
NPTEL, 2010
12 / 74
L AGRANGIAN FORMULATION
E QUATIONS OF MOTION
From the kinetic and potential energy, define the scalar Lagrangian
N
= (KEi PEi )
L (q, q)
(4)
dt q i
qi
(5)
i = 1, ..., n
(6)
NPTEL, 2010
12 / 74
L AGRANGIAN FORMULATION
E QUATIONS OF MOTION
(7)
NPTEL, 2010
13 / 74
L AGRANGIAN FORMULATION
E QUATIONS OF MOTION
(7)
NPTEL, 2010
13 / 74
L AGRANGIAN FORMULATION
P ROPERTIES OF TERMS IN EQUATIONS OF MOTION
The centripetal and Coriolis terms can be obtained from the mass
matrix as
(
)
Mij Mik Mkj
1 n
+
Cij =
q k
(9)
2 k=1
qk
qj
qi
The gravity terms can be obtained from the potential energy as
Gi =
(PE )
qi
(10)
.
NPTEL, 2010
14 / 74
L AGRANGIAN FORMULATION
P ROPERTIES OF TERMS IN EQUATIONS OF MOTION
The centripetal and Coriolis terms can be obtained from the mass
matrix as
(
)
Mij Mik Mkj
1 n
Cij =
+
q k
(9)
2 k=1
qk
qj
qi
The gravity terms can be obtained from the potential energy as
Gi =
(PE )
qi
(10)
.
NPTEL, 2010
14 / 74
L AGRANGIAN FORMULATION
P ROPERTIES OF TERMS IN EQUATIONS OF MOTION
The centripetal and Coriolis terms can be obtained from the mass
matrix as
(
)
Mij Mik Mkj
1 n
Cij =
+
q k
(9)
2 k=1
qk
qj
qi
The gravity terms can be obtained from the potential energy as
Gi =
(PE )
qi
(10)
.
NPTEL, 2010
14 / 74
L AGRANGIAN FORMULATION
PARALLEL MANIPULATORS
(11)
= L (q, q)
j j (q)
L(q, q)
(12)
j=1
NPTEL, 2010
15 / 74
L AGRANGIAN FORMULATION
PARALLEL MANIPULATORS
(11)
= L (q, q)
j j (q)
L(q, q)
(12)
j=1
NPTEL, 2010
15 / 74
L AGRANGIAN FORMULATION
PARALLEL MANIPULATORS
(11)
= L (q, q)
j j (q)
L(q, q)
(12)
j=1
NPTEL, 2010
15 / 74
L AGRANGIAN FORMULATION
PARALLEL MANIPULATORS
(11)
= L (q, q)
j j (q)
L(q, q)
(12)
j=1
NPTEL, 2010
15 / 74
L AGRANGIAN FORMULATION
PARALLEL MANIPULATORS (C ONTD .)
= i + j
i = 1, 2, ..., n + m
dt q i
qi
qi
j=1
(13)
In matrix form,
q + G(q) = + [(q)]T
[M(q)]
q + [C(q, q)]
(14)
NPTEL, 2010
16 / 74
L AGRANGIAN FORMULATION
PARALLEL MANIPULATORS (C ONTD .)
= i + j
i = 1, 2, ..., n + m
dt q i
qi
qi
j=1
(13)
In matrix form,
q + G(q) = + [(q)]T
[M(q)]
q + [C(q, q)]
(14)
NPTEL, 2010
16 / 74
L AGRANGIAN FORMULATION
PARALLEL MANIPULATORS (C ONTD .)
= i + j
i = 1, 2, ..., n + m
dt q i
qi
qi
j=1
(13)
In matrix form,
q + G(q) = + [(q)]T
[M(q)]
q + [C(q, q)]
(14)
NPTEL, 2010
16 / 74
L AGRANGIAN FORMULATION
PARALLEL MANIPULATORS (C ONTD .)
To determine
Twice differentiate m constraint equations with respect to t
[(q)]
q + [(q)]
q = 0
(15)
(16)
[M]
q = f []T ([][M]1 []T )1 {[][M]1 f + []
f denotes ( [C]q G).
A SHITAVA G HOSAL (IIS C )
(17)
.
NPTEL, 2010
17 / 74
L AGRANGIAN FORMULATION
PARALLEL MANIPULATORS (C ONTD .)
To determine
Twice differentiate m constraint equations with respect to t
[(q)]
q + [(q)]
q = 0
(15)
(16)
[M]
q = f []T ([][M]1 []T )1 {[][M]1 f + []
f denotes ( [C]q G).
A SHITAVA G HOSAL (IIS C )
(17)
.
NPTEL, 2010
17 / 74
L AGRANGIAN FORMULATION
PARALLEL MANIPULATORS (C ONTD .)
NPTEL, 2010
18 / 74
L AGRANGIAN FORMULATION
PARALLEL MANIPULATORS (C ONTD .)
NPTEL, 2010
18 / 74
L AGRANGIAN FORMULATION
PARALLEL MANIPULATORS (C ONTD .)
NPTEL, 2010
18 / 74
L AGRANGIAN FORMULATION
PARALLEL MANIPULATORS (C ONTD .)
NPTEL, 2010
18 / 74
L AGRANGIAN FORMULATION
PARALLEL MANIPULATORS (C ONTD .)
NPTEL, 2010
18 / 74
L AGRANGIAN FORMULATION
N ON - HOLONOMIC CONSTRAINTS
(18)
Differentiate to get
q + (t)
[]
q + []
=0
Equations of motion
q}
(19)
[M]
q = f []T ([][M]1 []T )1 {[][M]1 f + (t)
+ []
given by
q + [][M]1 ( [C]q G)}
NPTEL, 2010
19 / 74
L AGRANGIAN FORMULATION
N ON - HOLONOMIC CONSTRAINTS
(18)
Differentiate to get
q + (t)
[]
q + []
=0
Equations of motion
q}
(19)
[M]
q = f []T ([][M]1 []T )1 {[][M]1 f + (t)
+ []
given by
q + [][M]1 ( [C]q G)}
NPTEL, 2010
19 / 74
L AGRANGIAN FORMULATION
N ON - HOLONOMIC CONSTRAINTS
(18)
Differentiate to get
q + (t)
[]
q + []
=0
Equations of motion
q}
(19)
[M]
q = f []T ([][M]1 []T )1 {[][M]1 f + (t)
+ []
given by
q + [][M]1 ( [C]q G)}
NPTEL, 2010
19 / 74
L AGRANGIAN FORMULATION
N ON - HOLONOMIC CONSTRAINTS
(18)
Differentiate to get
q + (t)
[]
q + []
=0
Equations of motion
q}
(19)
[M]
q = f []T ([][M]1 []T )1 {[][M]1 f + (t)
+ []
given by
q + [][M]1 ( [C]q G)}
NPTEL, 2010
19 / 74
L AGRANGIAN FORMULATION
N ON - HOLONOMIC CONSTRAINTS
(18)
Differentiate to get
q + (t)
[]
q + []
=0
Equations of motion
q}
(19)
[M]
q = f []T ([][M]1 []T )1 {[][M]1 f + (t)
+ []
given by
q + [][M]1 ( [C]q G)}
NPTEL, 2010
19 / 74
L AGRANGIAN FORMULATION
S UMMARY
= [M(q)]
q + C(q, q)
(21)
NPTEL, 2010
20 / 74
L AGRANGIAN FORMULATION
S UMMARY
= [M(q)]
q + C(q, q)
(21)
NPTEL, 2010
20 / 74
L AGRANGIAN FORMULATION
S UMMARY
= [M(q)]
q + C(q, q)
(21)
NPTEL, 2010
20 / 74
L AGRANGIAN FORMULATION
S UMMARY
= [M(q)]
q + C(q, q)
(21)
NPTEL, 2010
20 / 74
L AGRANGIAN FORMULATION
S UMMARY
= [M(q)]
q + C(q, q)
(21)
NPTEL, 2010
20 / 74
L AGRANGIAN FORMULATION
S UMMARY
= [M(q)]
q + C(q, q)
(21)
NPTEL, 2010
20 / 74
(22)
NPTEL, 2010
21 / 74
(22)
NPTEL, 2010
21 / 74
(22)
NPTEL, 2010
21 / 74
(22)
NPTEL, 2010
21 / 74
= [J(q)]T F
[MX (q)] = [J(q)]T [M(q)][J(q)]1
q)
= [J(q)]T (C(q, q)
[M(q)][J(q)]1 [J(q)]
CX (q, q)
T
GX (q) = [J(q)] G(q)
(23)
[J(q)]T denotes the inverse of [J(q)]T ,
[J(q)], F and X are in the same coordinate system.
NPTEL, 2010
22 / 74
= [J(q)]T F
[MX (q)] = [J(q)]T [M(q)][J(q)]1
q)
= [J(q)]T (C(q, q)
[M(q)][J(q)]1 [J(q)]
CX (q, q)
T
GX (q) = [J(q)] G(q)
(23)
[J(q)]T denotes the inverse of [J(q)]T ,
[J(q)], F and X are in the same coordinate system.
NPTEL, 2010
22 / 74
= [J(q)]T F
[MX (q)] = [J(q)]T [M(q)][J(q)]1
q)
= [J(q)]T (C(q, q)
[M(q)][J(q)]1 [J(q)]
CX (q, q)
T
GX (q) = [J(q)] G(q)
(23)
[J(q)]T denotes the inverse of [J(q)]T ,
[J(q)], F and X are in the same coordinate system.
NPTEL, 2010
22 / 74
= [J(q)]T F
[MX (q)] = [J(q)]T [M(q)][J(q)]1
q)
= [J(q)]T (C(q, q)
[M(q)][J(q)]1 [J(q)]
CX (q, q)
T
GX (q) = [J(q)] G(q)
(23)
[J(q)]T denotes the inverse of [J(q)]T ,
[J(q)], F and X are in the same coordinate system.
NPTEL, 2010
22 / 74
= [J(q)]T F
[MX (q)] = [J(q)]T [M(q)][J(q)]1
q)
= [J(q)]T (C(q, q)
[M(q)][J(q)]1 [J(q)]
CX (q, q)
T
GX (q) = [J(q)] G(q)
(23)
[J(q)]T denotes the inverse of [J(q)]T ,
[J(q)], F and X are in the same coordinate system.
NPTEL, 2010
22 / 74
O UTLINE
.
. .1 C ONTENTS
.
. .2 L ECTURE 1
Introduction
Lagrangian formulation
.
. .3 L ECTURE 2
Examples of Equations of Motion
.
. .4 L ECTURE 3
Inverse Dynamics & Simulation of Equations of Motion
.
. .5 L ECTURE 4
Recursive Formulations of Dynamics of Manipulators
.
. .6 M ODULE 6 A DDITIONAL M ATERIAL
Maple Tutorial, ADAMS Tutorial, Problems, References and
Suggested Reading
.
NPTEL, 2010
23 / 74
E XAMPLES
P LANAR 2R M ANIPULATOR
Lo cation of cg of Link 2
g
Y
(mi , li , ri , Ii ), i = 1, 2
denote mass, length, CG
location and Izz
component of inertia
matrix, respectively.
Link 2
(m2 , l 2 , r2 , I 2 )
Lo cation of cg of Link 1
O2
{ 0}
2
Link 1
(m1 , l 1 , r 1 , I 1 )
2
1
X 0
O1
Figure 2: A 2R manipulator
A SHITAVA G HOSAL (IIS C )
NPTEL, 2010
24 / 74
E XAMPLES
P LANAR 2R M ANIPULATOR (C ONTD .)
1 = (0 0 1 )T
1
V1 = 0
1
VC1 = 0 + (0 0 1 )T (r1 0 0)T = (0 r1 1 0)T
1
i=2
2 = (0 0 1 + 2 )T
0
c2 s 2 0
l1 s2 1
2
V2 = s2 c2 0 l1 1 = l1 c2 1
0
0 1
0
0
VC2
V2 +2 2 (r2 0 0)T
.
NPTEL, 2010
25 / 74
E XAMPLES
P LANAR 2R M ANIPULATOR (C ONTD .)
1 = (0 0 1 )T
1
V1 = 0
1
VC1 = 0 + (0 0 1 )T (r1 0 0)T = (0 r1 1 0)T
1
i=2
2 = (0 0 1 + 2 )T
0
c2 s 2 0
l1 s2 1
2
V2 = s2 c2 0 l1 1 = l1 c2 1
0
0 1
0
0
VC2
V2 +2 2 (r2 0 0)T
.
NPTEL, 2010
25 / 74
E XAMPLES
P LANAR 2R M ANIPULATOR (C ONTD .)
1 = (0 0 1 )T
1
V1 = 0
1
VC1 = 0 + (0 0 1 )T (r1 0 0)T = (0 r1 1 0)T
1
i=2
2 = (0 0 1 + 2 )T
0
c2 s 2 0
l1 s2 1
2
V2 = s2 c2 0 l1 1 = l1 c2 1
0
0 1
0
0
VC2
V2 +2 2 (r2 0 0)T
.
NPTEL, 2010
25 / 74
E XAMPLES
P LANAR 2R M ANIPULATOR (C ONTD .)
1 = (0 0 1 )T
1
V1 = 0
1
VC1 = 0 + (0 0 1 )T (r1 0 0)T = (0 r1 1 0)T
1
i=2
2 = (0 0 1 + 2 )T
0
c2 s 2 0
l1 s2 1
2
V2 = s2 c2 0 l1 1 = l1 c2 1
0
0 1
0
0
VC2
V2 +2 2 (r2 0 0)T
.
NPTEL, 2010
25 / 74
E XAMPLES
P LANAR 2R M ANIPULATOR (C ONTD .)
1
1
1
m1 (r1 1 )2 + I1 12 + I2 (1 + 2 )2 +
2
2
2
1
m2 (l12 12 + r22 (1 + 2 )2 + 2l1 r2 c2 1 (1 + 2 )) (24)
2
(25)
= (1 , 2 )T
.
(26)
.
NPTEL, 2010
26 / 74
E XAMPLES
P LANAR 2R M ANIPULATOR (C ONTD .)
1
1
1
m1 (r1 1 )2 + I1 12 + I2 (1 + 2 )2 +
2
2
2
1
m2 (l12 12 + r22 (1 + 2 )2 + 2l1 r2 c2 1 (1 + 2 )) (24)
2
(25)
= (1 , 2 )T
.
(26)
.
NPTEL, 2010
26 / 74
E XAMPLES
P LANAR 2R M ANIPULATOR (C ONTD .)
1
1
1
m1 (r1 1 )2 + I1 12 + I2 (1 + 2 )2 +
2
2
2
1
m2 (l12 12 + r22 (1 + 2 )2 + 2l1 r2 c2 1 (1 + 2 )) (24)
2
(25)
= (1 , 2 )T
.
(26)
.
NPTEL, 2010
26 / 74
E XAMPLES
P LANAR 2R M ANIPULATOR (C ONTD .)
L
1
L
2
L
1
L
2
NPTEL, 2010
27 / 74
E XAMPLES
P LANAR 2R M ANIPULATOR (C ONTD .)
L
1
L
2
L
1
L
2
NPTEL, 2010
27 / 74
E XAMPLES
P LANAR 2R M ANIPULATOR (C ONTD .)
Derivatives of
L
i
with respect to t
d L
(
) = 1 (I1 + I2 + m1 r12 + m2 r22 + m2 l12 + 2m2 l1 r2 c2 )
dt 1
+2 (I2 + m2 r22 + m2 l1 r2 c2 ) m2 l1 r2 s2 2 (21 + 2 )
d L
(
) = 1 (I2 + m2 r22 + m2 l1 r2 c2 )
dt 2
+2 (I2 + m2 r22 ) m2 l1 r2 s2 1 2
Assemble terms, collect and simplify
1
NPTEL, 2010
28 / 74
E XAMPLES
P LANAR 2R M ANIPULATOR (C ONTD .)
Derivatives of
L
i
with respect to t
d L
(
) = 1 (I1 + I2 + m1 r12 + m2 r22 + m2 l12 + 2m2 l1 r2 c2 )
dt 1
+2 (I2 + m2 r22 + m2 l1 r2 c2 ) m2 l1 r2 s2 2 (21 + 2 )
d L
(
) = 1 (I2 + m2 r22 + m2 l1 r2 c2 )
dt 2
+2 (I2 + m2 r22 ) m2 l1 r2 s2 1 2
Assemble terms, collect and simplify
1
NPTEL, 2010
28 / 74
E XAMPLES
P LANAR 2R M ANIPULATOR E QUATIONS OF M OTION
1
2
)
=
](
I1 + I2 + m2 l12 + m1 r12 + m2 r22 + 2m2 l1 r2 c2 I2 + m2 r22 + m2 l1 r2 c2
I2 + m2 r22 + m2 l1 r2 c2
I2 + m2 r22
(
) (
)
m2 l1 r2 s2 (21 + 2 )2
m2 g (l1 c1 + r2 c12 ) + m1 gr1 c1
+
+
m2 r2 gc12
m2 l1 r2 s2 12
1
2
(27)
NPTEL, 2010
29 / 74
E XAMPLES
P LANAR 2R M ANIPULATOR E QUATIONS OF M OTION
1
2
)
=
](
I1 + I2 + m2 l12 + m1 r12 + m2 r22 + 2m2 l1 r2 c2 I2 + m2 r22 + m2 l1 r2 c2
I2 + m2 r22 + m2 l1 r2 c2
I2 + m2 r22
(
) (
)
m2 l1 r2 s2 (21 + 2 )2
m2 g (l1 c1 + r2 c12 ) + m1 gr1 c1
+
+
m2 r2 gc12
m2 l1 r2 s2 12
1
2
(27)
NPTEL, 2010
29 / 74
E XAMPLES
P LANAR FOUR - BAR M ECHANISM
O2
O3
{L}
L
Y
Link 3
(m3 , l3 , r3 , I3 )
R
Y
Link 1
(m1 , l1 , r1 , I1 )
{R}
Location of cg of links
1
L
X
l0
R
X
OL , O1
OR
NPTEL, 2010
30 / 74
E XAMPLES
P LANAR FOUR - BAR M ECHANISM E QUATIONS OF M OTION
1
1
1
m1 (r1 1 )2 + I1 12 + I2 (1 + 2 )2 +
2
2
2
1
2 2
2
m2 (l1 1 + r2 (1 + 2 )2 + 2l1 r2 cos(2 )1 (1 + 2 )) +
2
1
1
m3 r32 12 + I3 12
(28)
2
2
NPTEL, 2010
31 / 74
E XAMPLES
P LANAR FOUR - BAR M ECHANISM E QUATIONS OF M OTION
1
1
1
m1 (r1 1 )2 + I1 12 + I2 (1 + 2 )2 +
2
2
2
1
2 2
2
m2 (l1 1 + r2 (1 + 2 )2 + 2l1 r2 cos(2 )1 (1 + 2 )) +
2
1
1
m3 r32 12 + I3 12
(28)
2
2
NPTEL, 2010
31 / 74
E XAMPLES
P LANAR FOUR - BAR M ECHANISM E QUATIONS OF M OTION
1
1
1
m1 (r1 1 )2 + I1 12 + I2 (1 + 2 )2 +
2
2
2
1
m2 (l12 12 + r22 (1 + 2 )2 + 2l1 r2 cos(2 )1 (1 + 2 )) +
2
1
1
m3 r32 12 + I3 12
(28)
2
2
NPTEL, 2010
31 / 74
E XAMPLES
P LANAR FOUR - BAR M ECHANISM E QUATIONS OF M OTION
1
1
1
m1 (r1 1 )2 + I1 12 + I2 (1 + 2 )2 +
2
2
2
1
m2 (l12 12 + r22 (1 + 2 )2 + 2l1 r2 cos(2 )1 (1 + 2 )) +
2
1
1
m3 r32 12 + I3 12
(28)
2
2
NPTEL, 2010
31 / 74
E XAMPLES
P LANAR FOUR - BAR M ECHANISM E QUATIONS OF M OTION (C ONTD .)
(30)
(31)
NPTEL, 2010
32 / 74
E XAMPLES
P LANAR FOUR - BAR M ECHANISM E QUATIONS OF M OTION (C ONTD .)
(30)
(31)
NPTEL, 2010
32 / 74
E XAMPLES
P LANAR FOUR - BAR M ECHANISM E QUATIONS OF M OTION (C ONTD .)
(30)
(31)
NPTEL, 2010
32 / 74
E XAMPLES
P LANAR FOUR - BAR M ECHANISM E QUATIONS OF M OTION (C ONTD .)
I2 + m2 r2 2 + I1 + m2 l1 2 + 2 m2 l1 r2 cos(2 ) + m1 r1 2 , I2 + m2 r2 2 + m2 l1 r2 cos(2 ) , 0
I2 + m2 r2 2 + m2 l1 r2 cos(2 ) , I2 + m2 r2 2 , 0
0 , 0 , m3 r3 2 + I3
0
0
0
m2 g r2 cos(1 + 2 )
m3 g r3 cos(1 )
.
NPTEL, 2010
33 / 74
E XAMPLES
P LANAR FOUR - BAR M ECHANISM E QUATIONS OF M OTION (C ONTD .)
(32)
NPTEL, 2010
34 / 74
E XAMPLES
P LANAR FOUR - BAR M ECHANISM E QUATIONS OF M OTION (C ONTD .)
(32)
NPTEL, 2010
34 / 74
E XAMPLES
P LANAR FOUR - BAR M ECHANISM E QUATIONS OF M OTION (C ONTD .)
[(q)]
q + [(q)]
q = 0
from equation of motion
Obtain q
= [M]1 ( [C]q G) + [M]1 []T
q
in derivative of constraint equation and solve for
Substitute q
Substitute to obtain equations of motion of planar four-bar
mechanism
q}
[M]
q = f []T ([][M]1 []T )1 {[][M]1 f + []
where f = ( [C]q G) and q = (1 , 2 , 1 )T .
.
(33)
.
NPTEL, 2010
35 / 74
E XAMPLES
P LANAR FOUR - BAR M ECHANISM E QUATIONS OF M OTION (C ONTD .)
[(q)]
q + [(q)]
q = 0
from equation of motion
Obtain q
= [M]1 ( [C]q G) + [M]1 []T
q
in derivative of constraint equation and solve for
Substitute q
Substitute to obtain equations of motion of planar four-bar
mechanism
q}
[M]
q = f []T ([][M]1 []T )1 {[][M]1 f + []
where f = ( [C]q G) and q = (1 , 2 , 1 )T .
.
(33)
.
NPTEL, 2010
35 / 74
E XAMPLES
P LANAR FOUR - BAR M ECHANISM E QUATIONS OF M OTION (C ONTD .)
[(q)]
q + [(q)]
q = 0
from equation of motion
Obtain q
= [M]1 ( [C]q G) + [M]1 []T
q
in derivative of constraint equation and solve for
Substitute q
Substitute to obtain equations of motion of planar four-bar
mechanism
q}
[M]
q = f []T ([][M]1 []T )1 {[][M]1 f + []
where f = ( [C]q G) and q = (1 , 2 , 1 )T .
.
(33)
.
NPTEL, 2010
35 / 74
E XAMPLES
P LANAR FOUR - BAR M ECHANISM E QUATIONS OF M OTION (C ONTD .)
[(q)]
q + [(q)]
q = 0
from equation of motion
Obtain q
= [M]1 ( [C]q G) + [M]1 []T
q
in derivative of constraint equation and solve for
Substitute q
Substitute to obtain equations of motion of planar four-bar
mechanism
q}
[M]
q = f []T ([][M]1 []T )1 {[][M]1 f + []
where f = ( [C]q G) and q = (1 , 2 , 1 )T .
.
(33)
.
NPTEL, 2010
35 / 74
E XAMPLES
P LANAR FOUR - BAR M ECHANISM E QUATIONS OF M OTION (C ONTD .)
[(q)]
q + [(q)]
q = 0
from equation of motion
Obtain q
= [M]1 ( [C]q G) + [M]1 []T
q
in derivative of constraint equation and solve for
Substitute q
Substitute to obtain equations of motion of planar four-bar
mechanism
q}
[M]
q = f []T ([][M]1 []T )1 {[][M]1 f + []
where f = ( [C]q G) and q = (1 , 2 , 1 )T .
.
(33)
.
NPTEL, 2010
35 / 74
O UTLINE
.
. .1 C ONTENTS
.
. .2 L ECTURE 1
Introduction
Lagrangian formulation
.
. .3 L ECTURE 2
Examples of Equations of Motion
.
. .4 L ECTURE 3
Inverse Dynamics & Simulation of Equations of Motion
.
. .5 L ECTURE 4
Recursive Formulations of Dynamics of Manipulators
.
. .6 M ODULE 6 A DDITIONAL M ATERIAL
Maple Tutorial, ADAMS Tutorial, Problems, References and
Suggested Reading
.
NPTEL, 2010
36 / 74
I NTRODUCTION
(t).
q(t), q(t)
and q
Direct problem given the kinematic and inertial parameters and the
joint torques as functions of time, find the trajectory of the
manipulator Obtain q(t) from known (t).
NPTEL, 2010
37 / 74
I NTRODUCTION
(t).
q(t), q(t)
and q
Direct problem given the kinematic and inertial parameters and the
joint torques as functions of time, find the trajectory of the
manipulator Obtain q(t) from known (t).
NPTEL, 2010
37 / 74
I NTRODUCTION
(t).
q(t), q(t)
and q
Direct problem given the kinematic and inertial parameters and the
joint torques as functions of time, find the trajectory of the
manipulator Obtain q(t) from known (t).
NPTEL, 2010
37 / 74
= [M(q)]
q + C(q, q)
Obtain the left-hand side (t).
Can be done for any robot once the equations of motion are known.
Can be efficiently done in O(N) steps using recursive algorithms.
NPTEL, 2010
38 / 74
= [M(q)]
q + C(q, q)
Obtain the left-hand side (t).
Can be done for any robot once the equations of motion are known.
Can be efficiently done in O(N) steps using recursive algorithms.
NPTEL, 2010
38 / 74
= [M(q)]
q + C(q, q)
Obtain the left-hand side (t).
Can be done for any robot once the equations of motion are known.
Can be efficiently done in O(N) steps using recursive algorithms.
NPTEL, 2010
38 / 74
= [M(q)]
q + C(q, q)
Obtain the left-hand side (t).
Can be done for any robot once the equations of motion are known.
Can be efficiently done in O(N) steps using recursive algorithms.
NPTEL, 2010
38 / 74
= [M(q)]
q + C(q, q)
Obtain the left-hand side (t).
Can be done for any robot once the equations of motion are known.
Can be efficiently done in O(N) steps using recursive algorithms.
NPTEL, 2010
38 / 74
Lo cation of cg of Link 2
g
Y
Link 2
(m2 , l 2 , r2 , I 2 )
Lo cation of cg of Link 1
O2
{ 0}
2
Link 1
(m1 , l 1 , r 1 , I 1 )
Link
1
X 0
O1
Figure 4: A 2R manipulator
1
2
Length
(m)
1.0
1.0
Mass
(kg)
12.456
12.456
.
C.G.
(m)
0.773
0.583
.
Inertia
(kg m2 )
1.042
1.042
.
NPTEL, 2010
39 / 74
l 2 =1
0.8
0.6
= a + r cos( )
= b + r sin( )
0.4
l 1 =1
0.2
0 2 in 10 seconds
0
0
0.2
0.4
0.6
0.8
1.2
1.4
NPTEL, 2010
40 / 74
1.5
Angle(rad)
0.5
0.5
1.5
Time(Seconds)
10
0.2
Angular Vel.(rad/sec 2)
0.1
0.1
0.2
2
0.3
0.4
10
Time(Seconds)
NPTEL, 2010
41 / 74
0.3
Angular Acc.(rad/sec 2 )
0.2
0.1
0.1
0.2
0.3
0.4
Time(seconds)
10
Torque(Nm)
160
140
120
100
80
60
Time(Seconds)
10
NPTEL, 2010
42 / 74
= [M(q)]
q + C(q, q)
Simulation given (t) find q(t) by solving equations of motion.
n coupled, non-linear, second-order, ordinary differential equations
(ODEs).
Cannot be solved analytically except for simplest cases.
R
Numerical solution of the ODEs Use of software such as Matlab
and in-built integration routine such as ODE45.
NPTEL, 2010
43 / 74
= [M(q)]
q + C(q, q)
Simulation given (t) find q(t) by solving equations of motion.
n coupled, non-linear, second-order, ordinary differential equations
(ODEs).
Cannot be solved analytically except for simplest cases.
R
Numerical solution of the ODEs Use of software such as Matlab
and in-built integration routine such as ODE45.
NPTEL, 2010
43 / 74
= [M(q)]
q + C(q, q)
Simulation given (t) find q(t) by solving equations of motion.
n coupled, non-linear, second-order, ordinary differential equations
(ODEs).
Cannot be solved analytically except for simplest cases.
R
Numerical solution of the ODEs Use of software such as Matlab
and in-built integration routine such as ODE45.
NPTEL, 2010
43 / 74
= [M(q)]
q + C(q, q)
Simulation given (t) find q(t) by solving equations of motion.
n coupled, non-linear, second-order, ordinary differential equations
(ODEs).
Cannot be solved analytically except for simplest cases.
R
Numerical solution of the ODEs Use of software such as Matlab
and in-built integration routine such as ODE45.
NPTEL, 2010
43 / 74
= [M(q)]
q + C(q, q)
Simulation given (t) find q(t) by solving equations of motion.
n coupled, non-linear, second-order, ordinary differential equations
(ODEs).
Cannot be solved analytically except for simplest cases.
R
Numerical solution of the ODEs Use of software such as Matlab
and in-built integration routine such as ODE45.
NPTEL, 2010
43 / 74
= [M(q)]
q + C(q, q)
Simulation given (t) find q(t) by solving equations of motion.
n coupled, non-linear, second-order, ordinary differential equations
(ODEs).
Cannot be solved analytically except for simplest cases.
R
Numerical solution of the ODEs Use of software such as Matlab
and in-built integration routine such as ODE45.
NPTEL, 2010
43 / 74
q
(2) Define X 2n (X1 , ..., Xn )T = (q1 , ..., qn )T and
(Xn+1 , ...., X2n )T = (q 1 , ...., q n )T .
(3) Rewrite n second-order ODEs as 2n first-order ODEs
X 1 = Xn+1 , X 2 = Xn+2 , ..., X n = X2n
Xn+1
.
1
(34)
(35)
.
NPTEL, 2010
44 / 74
q
(2) Define X 2n (X1 , ..., Xn )T = (q1 , ..., qn )T and
(Xn+1 , ...., X2n )T = (q 1 , ...., q n )T .
(3) Rewrite n second-order ODEs as 2n first-order ODEs
X 1 = Xn+1 , X 2 = Xn+2 , ..., X n = X2n
Xn+1
.
1
(34)
(35)
.
NPTEL, 2010
44 / 74
q
(2) Define X 2n (X1 , ..., Xn )T = (q1 , ..., qn )T and
(Xn+1 , ...., X2n )T = (q 1 , ...., q n )T .
(3) Rewrite n second-order ODEs as 2n first-order ODEs
X 1 = Xn+1 , X 2 = Xn+2 , ..., X n = X2n
Xn+1
.
1
(34)
(35)
.
NPTEL, 2010
44 / 74
[M]
q = f []T ([][M]1 []T )1 {[][M]1 f + []
f denotes ( C G F).
Obtain the 2(n + m) first-order state equations as
X 1 = Xn+m+1 ,
Xn+m+1
.
= [M]1 (f []T ([][M]1 []T )1 {[][M]1 f
X2(n+m)
X 1 , ..., X n+m )T })
+[](
(36)
f denotes ( C G F).
.
NPTEL, 2010
45 / 74
[M]
q = f []T ([][M]1 []T )1 {[][M]1 f + []
f denotes ( C G F).
Obtain the 2(n + m) first-order state equations as
X 1 = Xn+m+1 ,
Xn+m+1
X2(n+m)
X 1 , ..., X n+m )T })
+[](
(36)
f denotes ( C G F).
.
NPTEL, 2010
45 / 74
NPTEL, 2010
46 / 74
NPTEL, 2010
46 / 74
NPTEL, 2010
46 / 74
NPTEL, 2010
46 / 74
NPTEL, 2010
46 / 74
+ 2 (q, t) = 0
([]
q + []
+ 2 ((t) + [(q)]q)
NPTEL, 2010
47 / 74
+ 2 (q, t) = 0
([]
q + []
+ 2 ((t) + [(q)]q)
NPTEL, 2010
47 / 74
+ 2 (q, t) = 0
([]
q + []
+ 2 ((t) + [(q)]q)
NPTEL, 2010
47 / 74
+ 2 (q, t) = 0
([]
q + []
+ 2 ((t) + [(q)]q)
NPTEL, 2010
47 / 74
+ 2 (q, t) = 0
([]
q + []
+ 2 ((t) + [(q)]q)
NPTEL, 2010
47 / 74
E XAMPLES
Initial conditions
1 = 90 , 2 = 45
External torques
1 = 2 = 0
Lo cation of cg of Link 2
g
Y
Link 2
(m2 , l 2 , r2 , I 2 )
Lo cation of cg of Link 1
O2
{ 0}
2
Link 1
(m1 , l 1 , r 1 , I 1 )
Link
1
X 0
O1
1
2
Length
(m)
1.0
1.0
Mass
(kg)
12.456
12.456
.
C.G.
(m)
0.773
0.583
.
Inertia
(kg m2 )
1.042
1.042
.
NPTEL, 2010
48 / 74
E XAMPLES
S IMULATIONS OF A P LANAR 2R ROBOT (C ONTD .)
60
1.65
theta1 in degrees
70
80
1.7
90
100
1.75
120
10
theta2 in degrees
50
Y Coordinate
110
1.8
1.85
1.9
1.95
50
5
6
Time t in seconds
10
2
0.8
0.6
0.4
0.2
0
X coordinate
0.2
0.4
0.6
0.8
NPTEL, 2010
49 / 74
E XAMPLES
S IMULATIONS OF A 4- BAR M ECHANISM
0
Y
l2
l1
l3
l0
0
X
Figure a
0
Y
= 0 k 1
l2
l3
l1
1
0
X
l0
Figure b
NPTEL, 2010
50 / 74
E XAMPLES
S IMULATIONS OF A 4- BAR M ECHANISM
1
1.241 20.15
2
1.2
8.25
3
1.2
8.25
1.2
0.6
0.6
Inertia
(kgm2 )
9.6
0.06
0.06
NPTEL, 2010
51 / 74
E XAMPLES
S IMULATIONS OF A 4- BAR M ECHANISM
1
1.241 20.15
2
1.2
8.25
3
1.2
8.25
1.2
0.6
0.6
Inertia
(kgm2 )
9.6
0.06
0.06
NPTEL, 2010
51 / 74
E XAMPLES
S IMULATIONS OF A 4- BAR M ECHANISM
1
1.241 20.15
2
1.2
8.25
3
1.2
8.25
1.2
0.6
0.6
Inertia
(kgm2 )
9.6
0.06
0.06
NPTEL, 2010
51 / 74
E XAMPLES
S IMULATIONS OF A 4- BAR M ECHANISM
1
1.241 20.15
2
1.2
8.25
3
1.2
8.25
1.2
0.6
0.6
Inertia
(kgm2 )
9.6
0.06
0.06
NPTEL, 2010
51 / 74
E XAMPLES
S IMULATIONS OF A 4- BAR M ECHANISM
1
1.241 20.15
2
1.2
8.25
3
1.2
8.25
1.2
0.6
0.6
Inertia
(kgm2 )
9.6
0.06
0.06
NPTEL, 2010
51 / 74
E XAMPLES
S IMULATIONS OF A 4- BAR M ECHANISM
400
500
lambda1
lambda2
350
400
300
300
250
200
200
100
150
0
100
theta1
phi2
phi1
50
10
12
100
14
200
time in sec
10
12
14
time in sec
NPTEL, 2010
52 / 74
O UTLINE
.
. .1 C ONTENTS
.
. .2 L ECTURE 1
Introduction
Lagrangian formulation
.
. .3 L ECTURE 2
Examples of Equations of Motion
.
. .4 L ECTURE 3
Inverse Dynamics & Simulation of Equations of Motion
.
. .5 L ECTURE 4
Recursive Formulations of Dynamics of Manipulators
.
. .6 M ODULE 6 A DDITIONAL M ATERIAL
Maple Tutorial, ADAMS Tutorial, Problems, References and
Suggested Reading
.
NPTEL, 2010
53 / 74
I NTRODUCTION
Multi-body system with large
number of links redundant
robots, proteins, automobile etc.
Classical model of protein 20
types of amino acid residues in a
serial chain
50-500 residues assumed to be
rigid bodies
Two DOF between two residues
( , ) 100 to 1000 joint
variables!
Figure 16: Amino acid chain in a protein
NPTEL, 2010
54 / 74
I NTRODUCTION
Multi-body system with large
number of links redundant
robots, proteins, automobile etc.
Classical model of protein 20
types of amino acid residues in a
serial chain
50-500 residues assumed to be
rigid bodies
Two DOF between two residues
( , ) 100 to 1000 joint
variables!
Figure 16: Amino acid chain in a protein
NPTEL, 2010
54 / 74
(37)
mi , Ci and [Ii ] are the mass, centre of mass and inertia of link {i}.
Requires computation of position/orientation, velocity and
acceleration.
Position & orientation computed using i1
i [T ] (see Module 2, Lecture
1)
Linear and angular velocities can be computed using propagation
formulas (see Module 5, Lecture 1)
.
NPTEL, 2010
55 / 74
(37)
mi , Ci and [Ii ] are the mass, centre of mass and inertia of link {i}.
Requires computation of position/orientation, velocity and
acceleration.
Position & orientation computed using i1
i [T ] (see Module 2, Lecture
1)
Linear and angular velocities can be computed using propagation
formulas (see Module 5, Lecture 1)
.
NPTEL, 2010
55 / 74
(37)
mi , Ci and [Ii ] are the mass, centre of mass and inertia of link {i}.
Requires computation of position/orientation, velocity and
acceleration.
Position & orientation computed using i1
i [T ] (see Module 2, Lecture
1)
Linear and angular velocities can be computed using propagation
formulas (see Module 5, Lecture 1)
.
NPTEL, 2010
55 / 74
(37)
mi , Ci and [Ii ] are the mass, centre of mass and inertia of link {i}.
Requires computation of position/orientation, velocity and
acceleration.
Position & orientation computed using i1
i [T ] (see Module 2, Lecture
1)
Linear and angular velocities can be computed using propagation
formulas (see Module 5, Lecture 1)
.
NPTEL, 2010
55 / 74
(37)
mi , Ci and [Ii ] are the mass, centre of mass and inertia of link {i}.
Requires computation of position/orientation, velocity and
acceleration.
Position & orientation computed using i1
i [T ] (see Module 2, Lecture
1)
Linear and angular velocities can be computed using propagation
formulas (see Module 5, Lecture 1)
.
NPTEL, 2010
55 / 74
i
i
Vi
i
i1
i1 + i (0 0 1)T
i1 [R]
i
i1
Vi1 +i1 i1 i1 Oi )
i1 [R](
=
=
(38)
Vi
i
i1
i1
i1 [R]
i
i1
Vi1 +i1 i1 i1 Oi ) + d i (0
i1 [R](
0 1)T
(39)
V p =
+0 i (0 i 0i [R]i p)
When i p is constant, then i Vp = i V p = 0.
A SHITAVA G HOSAL (IIS C )
NPTEL, 2010
56 / 74
i
i
Vi
i
i1
i1 + i (0 0 1)T
i1 [R]
i
i1
Vi1 +i1 i1 i1 Oi )
i1 [R](
=
=
(38)
Vi
i
i1
i1
i1 [R]
i
i1
Vi1 +i1 i1 i1 Oi ) + d i (0
i1 [R](
0 1)T
(39)
V p =
+0 i (0 i 0i [R]i p)
When i p is constant, then i Vp = i V p = 0.
A SHITAVA G HOSAL (IIS C )
NPTEL, 2010
56 / 74
i
i
Vi
i
i1
i1 + i (0 0 1)T
i1 [R]
i
i1
Vi1 +i1 i1 i1 Oi )
i1 [R](
=
=
(38)
Vi
i
i1
i1
i1 [R]
i
i1
Vi1 +i1 i1 i1 Oi ) + d i (0
i1 [R](
0 1)T
(39)
V p =
+0 i (0 i 0i [R]i p)
When i p is constant, then i Vp = i V p = 0.
A SHITAVA G HOSAL (IIS C )
NPTEL, 2010
56 / 74
V i+1 =
i+1 =
i+1
[R][i V i + i i i pi+1 + i i (i i i pi+1 )]
(40)
i
i+1
i+1
i
i
i+1
i+1
V i+1 =
i+1
i+1 =
i+1
[R][i V i + i i i pi+1 + i i (i i i pi+1 )]
i
i+1 + di+1 i+1 Z
i+1
+2i+1 i+1 d i+1 i+1 Z
i+1
[R]i i
i
(41)
+ i i i pC + i i (i i i pC )
V Ci = i Vi
i
i
(42)
ip
Ci
NPTEL, 2010
57 / 74
V i+1 =
i+1 =
i+1
[R][i V i + i i i pi+1 + i i (i i i pi+1 )]
(40)
i
i+1
i+1
i
i
i+1
i+1
i+1 + i+1
i+1
[R] i + i [R] i i+1
Z
Z
i
V i+1 =
i+1
i+1 =
i+1
[R][i V i + i i i pi+1 + i i (i i i pi+1 )]
i
i+1 + di+1 i+1 Z
i+1
+2i+1 i+1 d i+1 i+1 Z
i+1
[R]i i
i
(41)
+ i i i pC + i i (i i i pC )
V Ci = i Vi
i
i
(42)
ip
Ci
NPTEL, 2010
57 / 74
V i+1 =
i+1 =
i+1
[R][i V i + i i i pi+1 + i i (i i i pi+1 )]
(40)
i
i+1
i+1
i
i
i+1
i+1
i+1 + i+1
i+1
[R] i + i [R] i i+1
Z
Z
i
V i+1 =
i+1
i+1 =
i+1
[R][i V i + i i i pi+1 + i i (i i i pi+1 )]
i
i+1 + di+1 i+1 Z
i+1
+2i+1 i+1 d i+1 i+1 Z
i+1
[R]i i
i
(41)
+ i i i pC + i i (i i i pC )
V Ci = i Vi
i
i
(42)
ip
Ci
NPTEL, 2010
57 / 74
i+1 =
i+1
Vi+1 =
i+1
VC
=
i+1
i +1
i
i+1
[R]i i + i+1
[R]i i i+1 (0 0 1)T + i+1 (0
i
i
i+1
[R](i V i + i i i pi+1 + i i (i i i pi+1 ))
i
i+1
Vi+1 + i+1 i+1 i+1 pCi +1
+i+1 i+1 (i+1 i+1 i+1 pCi +1 )
0 1)T
(43)
(44)
i +1
i+1
Ni+1 =
Ci +1
[I ]i+1
i+1
i+1 +
i+1
i+1
.
Ci +1
[I ]i+1
.
i+1
i+1
.
NPTEL, 2010
58 / 74
i+1 =
i+1
Vi+1 =
i+1
VC
=
i+1
i +1
i
i+1
[R]i i + i+1
[R]i i i+1 (0 0 1)T + i+1 (0
i
i
i+1
[R](i V i + i i i pi+1 + i i (i i i pi+1 ))
i
i+1
Vi+1 + i+1 i+1 i+1 pCi +1
+i+1 i+1 (i+1 i+1 i+1 pCi +1 )
0 1)T
(43)
(44)
i +1
i+1
Ni+1 =
Ci +1
[I ]i+1
i+1
i+1 +
i+1
i+1
.
Ci +1
[I ]i+1
.
i+1
i+1
.
NPTEL, 2010
58 / 74
i+1 =
i+1
Vi+1 =
i+1
VC
=
i+1
i +1
i
i+1
[R]i i + i+1
[R]i i i+1 (0 0 1)T + i+1 (0
i
i
i+1
[R](i V i + i i i pi+1 + i i (i i i pi+1 ))
i
i+1
Vi+1 + i+1 i+1 i+1 pCi +1
+i+1 i+1 (i+1 i+1 i+1 pCi +1 )
0 1)T
(43)
(44)
i +1
i+1
Ni+1 =
Ci +1
[I ]i+1
i+1
i+1 +
i+1
i+1
.
Ci +1
[I ]i+1
.
i+1
i+1
.
NPTEL, 2010
58 / 74
fi
ni
i
i+1
fi+1 +i Fi
i+1 [R]
i
i+1
ni+1 +i pi+1 ii+1 [R]i+1 fi+1 +i
i+1 [R]
i
i
ni i Z
pCi i Fi +i Ni
(45)
NPTEL, 2010
59 / 74
fi
ni
i
i+1
fi+1 +i Fi
i+1 [R]
i
i+1
ni+1 +i pi+1 ii+1 [R]i+1 fi+1 +i
i+1 [R]
i
i
ni i Z
pCi i Fi +i Ni
(45)
NPTEL, 2010
59 / 74
fi
ni
i
i+1
fi+1 +i Fi
i+1 [R]
i
i+1
ni+1 +i pi+1 ii+1 [R]i+1 fi+1 +i
i+1 [R]
i
i
ni i Z
pCi i Fi +i Ni
(45)
NPTEL, 2010
59 / 74
fi
ni
i
i+1
fi+1 +i Fi
i+1 [R]
i
i+1
ni+1 +i pi+1 ii+1 [R]i+1 fi+1 +i
i+1 [R]
i
i
ni i Z
pCi i Fi +i Ni
(45)
NPTEL, 2010
59 / 74
fi
ni
i
i+1
fi+1 +i Fi
i+1 [R]
i
i+1
ni+1 +i pi+1 ii+1 [R]i+1 fi+1 +i
i+1 [R]
i
i
ni i Z
pCi i Fi +i Ni
(45)
NPTEL, 2010
59 / 74
Very easily adapted for any serial manipulators with rotary (R),
prismatic (P) or any other joint.
if
i
NPTEL, 2010
60 / 74
Very easily adapted for any serial manipulators with rotary (R),
prismatic (P) or any other joint.
if
i
NPTEL, 2010
60 / 74
Very easily adapted for any serial manipulators with rotary (R),
prismatic (P) or any other joint.
if
i
NPTEL, 2010
60 / 74
Very easily adapted for any serial manipulators with rotary (R),
prismatic (P) or any other joint.
if
i
NPTEL, 2010
60 / 74
Very easily adapted for any serial manipulators with rotary (R),
prismatic (P) or any other joint.
if
i
NPTEL, 2010
60 / 74
Integrate q
and q(t)
[M(q)]
q = [C(q, q)]
by inverting [M(q)] O(N 3 ) steps using Gauss Elimination.
Obtain q
Although O(N 3 ), coefficient of N 3 is small (Walker and Orin, 1982)
and hence efficient for serial manipulators with N 6.
O(N 3 ) not very useful when N is large (as in protein chains with N
between 50 and 500).
.
NPTEL, 2010
61 / 74
Integrate q
and q(t)
[M(q)]
q = [C(q, q)]
by inverting [M(q)] O(N 3 ) steps using Gauss Elimination.
Obtain q
Although O(N 3 ), coefficient of N 3 is small (Walker and Orin, 1982)
and hence efficient for serial manipulators with N 6.
O(N 3 ) not very useful when N is large (as in protein chains with N
between 50 and 500).
.
NPTEL, 2010
61 / 74
Integrate q
and q(t)
[M(q)]
q = [C(q, q)]
by inverting [M(q)] O(N 3 ) steps using Gauss Elimination.
Obtain q
Although O(N 3 ), coefficient of N 3 is small (Walker and Orin, 1982)
and hence efficient for serial manipulators with N 6.
O(N 3 ) not very useful when N is large (as in protein chains with N
between 50 and 500).
.
NPTEL, 2010
61 / 74
Integrate q
and q(t)
[M(q)]
q = [C(q, q)]
by inverting [M(q)] O(N 3 ) steps using Gauss Elimination.
Obtain q
Although O(N 3 ), coefficient of N 3 is small (Walker and Orin, 1982)
and hence efficient for serial manipulators with N 6.
O(N 3 ) not very useful when N is large (as in protein chains with N
between 50 and 500).
.
NPTEL, 2010
61 / 74
Integrate q
and q(t)
[M(q)]
q = [C(q, q)]
by inverting [M(q)] O(N 3 ) steps using Gauss Elimination.
Obtain q
Although O(N 3 ), coefficient of N 3 is small (Walker and Orin, 1982)
and hence efficient for serial manipulators with N 6.
O(N 3 ) not very useful when N is large (as in protein chains with N
between 50 and 500).
.
NPTEL, 2010
61 / 74
Rigid-body
1
Motion of prismatic
joint 2
Y2
No rotations of bodies
X , Y coordinates enough
to describe two bodies!
X2
Rigid-body
2
X1
Constraints y1 = 0 &
x2 x1 = 0
.
NPTEL, 2010
62 / 74
2
0 m1
y1
fy1
0
1
[
]
x1
[0 1]
= 0
y1
Equations of motion and algebraic constraints for body 2
[
](
)
( )
(
)
1
m2 0
x2
fx2
+
2 =
0 m2
y2
0
fy2
[
]
[
]
x2
x1
[1 0]
= 0 [1 0]
y2
y1
fxi , fyi external forces for yi , yi .
.
NPTEL, 2010
63 / 74
0 m1
y1
fy1
0
1
[
]
x1
[0 1]
= 0
y1
Equations of motion and algebraic constraints for body 2
](
)
( )
[
(
)
m2 0
x2
1
fx2
+
2 =
0
0 m2
y2
fy2
[
]
[
]
x2
x1
[1 0]
= 0 [1 0]
y2
y1
fxi , fyi external forces for yi , yi .
.
NPTEL, 2010
63 / 74
0 m1
y1
fy1
0
1
[
]
x1
[0 1]
= 0
y1
Equations of motion and algebraic constraints for body 2
](
)
( )
[
(
)
m2 0
x2
1
fx2
+
2 =
0
0 m2
y2
fy2
[
]
[
]
x2
x1
[1 0]
= 0 [1 0]
y2
y1
fxi , fyi external forces for yi , yi .
.
NPTEL, 2010
63 / 74
NPTEL, 2010
64 / 74
NPTEL, 2010
64 / 74
NPTEL, 2010
64 / 74
NPTEL, 2010
64 / 74
NPTEL, 2010
64 / 74
[I ]
[
]
F
m [U] [0]
FC =
=
AC
C [I ]
[0]
NC
[U]: 3 3 identity matrix,
FC : 6 1 entity of external force and moment (see Module 5, Lecture
5).
.
.
.
.
.
.
AC : 6 1 entity of linear and angular acceleration.
A SHITAVA G HOSAL (IIS C )
NPTEL, 2010
65 / 74
[I ]
[
]
F
m [U] [0]
FC =
=
AC
C [I ]
[0]
NC
[U]: 3 3 identity matrix,
FC : 6 1 entity of external force and moment (see Module 5, Lecture
5).
.
.
.
.
.
.
AC : 6 1 entity of linear and angular acceleration.
A SHITAVA G HOSAL (IIS C )
NPTEL, 2010
65 / 74
[I ]
[
]
F
m [U] [0]
FC =
=
AC
C [I ]
[0]
NC
[U]: 3 3 identity matrix,
FC : 6 1 entity of external force and moment (see Module 5, Lecture
5).
.
.
.
.
.
.
AC : 6 1 entity of linear and angular acceleration.
A SHITAVA G HOSAL (IIS C )
NPTEL, 2010
65 / 74
0
rCz
0
[rC ] = m rCz
rCy
rCx
rCy
rCx [U]
0
NPTEL, 2010
66 / 74
0
rCz
0
[rC ] = m rCz
rCy
rCx
rCy
rCx [U]
0
NPTEL, 2010
66 / 74
0
rCz
0
[rC ] = m rCz
rCy
rCx
rCy
rCx [U]
0
NPTEL, 2010
66 / 74
(46)
T
A
[I ]A
i+1 Si+1 Si+1 [I ]i+1
T [I ]A S
Si+1
i+1 i+1
T
A
[I ]A
i+1 Si+1 (Qi+1 Si+1 Pi+1 )
T [I ]A
Si+1
i+1 Si+1
, [I ]A
N = [I ]N
, PNA = 0
(47)
NPTEL, 2010
67 / 74
(46)
T
A
[I ]A
i+1 Si+1 Si+1 [I ]i+1
T [I ]A S
Si+1
i+1 i+1
T
A
[I ]A
i+1 Si+1 (Qi+1 Si+1 Pi+1 )
T [I ]A
Si+1
i+1 Si+1
, [I ]A
N = [I ]N
, PNA = 0
(47)
NPTEL, 2010
67 / 74
(46)
T
A
[I ]A
i+1 Si+1 Si+1 [I ]i+1
T [I ]A S
Si+1
i+1 i+1
T
A
[I ]A
i+1 Si+1 (Qi+1 Si+1 Pi+1 )
T [I ]A
Si+1
i+1 Si+1
, [I ]A
N = [I ]N
, PNA = 0
(47)
NPTEL, 2010
67 / 74
Articulated-body inertia and the bias term for the end-effector (link
N) is known (see the planar 2P example).
[I ]A
N = [I ]N , and
PNA = 0.
A
Start with i = N 1 and compute [I ]A
i and Pi for each i O(N)
algorithm.
A
i for each i as
From [I ]A
i and Pi , obtain q
Ai = Ai 1 + Si qi , A0 = 0
(48)
(49)
A
T
Qi SiT [I ]A
i Ai 1 Si Pi
A
T
Si [I ]i Si
.
(50)
.
NPTEL, 2010
68 / 74
Articulated-body inertia and the bias term for the end-effector (link
N) is known (see the planar 2P example).
[I ]A
N = [I ]N , and
PNA = 0.
A
Start with i = N 1 and compute [I ]A
i and Pi for each i O(N)
algorithm.
A
i for each i as
From [I ]A
i and Pi , obtain q
Ai = Ai 1 + Si qi , A0 = 0
(48)
(49)
A
T
Qi SiT [I ]A
i Ai 1 Si Pi
A
T
Si [I ]i Si
.
(50)
.
NPTEL, 2010
68 / 74
Articulated-body inertia and the bias term for the end-effector (link
N) is known (see the planar 2P example).
[I ]A
N = [I ]N , and
PNA = 0.
A
Start with i = N 1 and compute [I ]A
i and Pi for each i O(N)
algorithm.
A
i for each i as
From [I ]A
i and Pi , obtain q
Ai = Ai 1 + Si qi , A0 = 0
(48)
(49)
A
T
Qi SiT [I ]A
i Ai 1 Si Pi
A
T
Si [I ]i Si
.
(50)
.
NPTEL, 2010
68 / 74
1
2
3
4
5
7
8
9
11
Leaves (End-effector)
10
12
NPTEL, 2010
69 / 74
q
[M] []T
=
q
[] [0]
[]
n + m equations in n qi s and m i s.
using Gaussian elimination O((n + m)3 )
Solve for and q
complexity.
.
NPTEL, 2010
70 / 74
q
[M] []T
=
q
[] [0]
[]
n + m equations in n qi s and m i s.
using Gaussian elimination O((n + m)3 )
Solve for and q
complexity.
.
NPTEL, 2010
70 / 74
q
[M] []T
=
q
[] [0]
[]
n + m equations in n qi s and m i s.
using Gaussian elimination O((n + m)3 )
Solve for and q
complexity.
NPTEL, 2010
70 / 74
q
[M] []T
=
q
[] [0]
[]
n + m equations in n qi s and m i s.
using Gaussian elimination O((n + m)3 )
Solve for and q
complexity.
NPTEL, 2010
70 / 74
q
[M] []T
=
q
[] [0]
[]
n + m equations in n qi s and m i s.
using Gaussian elimination O((n + m)3 )
Solve for and q
complexity.
NPTEL, 2010
70 / 74
NPTEL, 2010
71 / 74
NPTEL, 2010
71 / 74
NPTEL, 2010
71 / 74
NPTEL, 2010
71 / 74
NPTEL, 2010
71 / 74
NPTEL, 2010
71 / 74
NPTEL, 2010
72 / 74
NPTEL, 2010
72 / 74
NPTEL, 2010
72 / 74
NPTEL, 2010
72 / 74
O UTLINE
.
. .1 C ONTENTS
.
. .2 L ECTURE 1
Introduction
Lagrangian formulation
.
. .3 L ECTURE 2
Examples of Equations of Motion
.
. .4 L ECTURE 3
Inverse Dynamics & Simulation of Equations of Motion
.
. .5 L ECTURE 4
Recursive Formulations of Dynamics of Manipulators
.
. .6 M ODULE 6 A DDITIONAL M ATERIAL
Maple Tutorial, ADAMS Tutorial, Problems, References and
Suggested Reading
.
NPTEL, 2010
73 / 74
NPTEL, 2010
74 / 74