Professional Documents
Culture Documents
&
A NALYSIS
M ODULE 6 – DYNAMICS OF S ERIAL AND PARALLEL
ROBOTS
Ashitava Ghosal1
1 Department of Mechanical Engineering
&
Centre for Product Design and Manufacture
Indian Institute of Science
Bangalore 560 012, India
Email: asitava@mecheng.iisc.ernet.in
NPTEL, 2010
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 1 / 77
.
. .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 A DDITIONAL M ATERIAL
MAPLE⃝ R
Tutorial, ADAMS⃝ R
Tutorial, Problems,
References and Suggested Reading
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 2 / 77
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 A DDITIONAL M ATERIAL
MAPLE⃝ R
Tutorial, ADAMS⃝ R
Tutorial, Problems,
References and Suggested Reading
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 3 / 77
OVERVIEW
Kinematics → Cause of motion not considered.
Dynamics → Motion of links of a robot due to external
forces and/or moments.
Main assumption: All links are rigid – No deformation.
Motion of links described by ordinary differential equations
(ODEs), also called equations of motion.
Several methods to derive the equations of motion –
Newton-Euler, Lagrangian and Kane’s methods.
Newton-Euler – Obtain linear and angular velocities and
accelerations of each link, free-body diagrams, and
Newton’s law and Euler equations.
Lagrangian formulation – Obtain kinetic and potential
energy of each link, obtain the scalar Lagrangian, and take
partial and ordinary derivatives.
Kane’s formulation – Choose generalised coordinates and
speeds, obtain generalised active and inertia forces, and
equate the active and inertia forces.
Each formulation has its advantages and
.
disadvantages.
. . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 4 / 77
OVERVIEW
Two main problems in robot dynamics:
Direct problem – Obtain motion of links given the applied
external forces/moments.
Inverse problem – Obtain joint torques/forces required for
a desired motion of links.
Direct problem involves solution of ODE’s → Simulation.
Inverse dynamics → For sizing of actuators and other
components, and for advanced model based control
schemes (see Module 7, Lecture 3).
Computational efficiency is of interest.
Aim is to develop efficient O(N) or O(logN) – N is the
number of links (for parallel computing) algorithms for use
in protein folding and in computational biology (see Klepeis
et al. 2002).
Dynamics of parallel manipulators complicated by presence
of closed-loops → Typically give rise to differential-algebraic
equations (DAEs) → More difficult to solve.
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 5 / 77
M ASS AND I NERTIA OF A L INK
Ẑ0
Mass m of ∫the rigid body
{0} is given by V ρ dV , ρ is
dV density.
Inertia of a rigid body →
0
p Distribution of mass.
Inertia tensor 0 [I ] in {0}
Ŷ0
Ixx Ixy Ixz
0
[I ] = Ixy Iyy Iyz
Rigid Body Ixz Iyz Izz
X̂0
Figure 1: Mass and inertia of a rigid
body
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 6 / 77
M ASS AND I NERTIA OF A L INK
Elements
∫
of the inertia tensor ∫
Ixx∫= V (y 2 + z 2 ) ρ∫dV , Ixy = − V xy ρ dV , Ixz =
− ∫V xz ρ dV Iyy = ∫V (x 2 + z 2 ) ρ dV , Iyz =
− V yz ρ dV , Izz = V (x 2 + y 2 ) ρ dV
The inertia tensor is symmeteric and positive definite →
Eigenvalues of 0 [I ] are real and positive.
Three eigenvalues are the principal moments of inertia and
the associated eigenvectors are the principal axes.
The inertia tensor in {A}, with OA coincident O0 , is given
T
by A [I ] = A 0 A
0 [R] [I ]0 [R] .
To obtain inertia tensor for a link i,
Coordinate system, {Ci }, is chosen at the centre of mass of
the link.
{Ci } is parallel {i} (see Module 2, Lecture 2, Slide # 39).
Sub-divide complex link into simple shapes and use parallel
axis theorem.
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 7 / 77
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 A DDITIONAL M ATERIAL
MAPLE⃝ R
Tutorial, ADAMS⃝ R
Tutorial, Problems,
References and Suggested Reading
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 8 / 77
L AGRANGIAN FORMULATION :
K INETIC ENERGY
Energy base formulation involving kinetic and potential
energy
The kinetic energy of link i with mass mi and inertia 0 [I ]i
1 1
KEi = mi 0 VCi ·0 VCi + 0 ω i ·0 [I ]i 0 ω i
2 2
˙ 0 [R]T , d 0
0
ω i = 0i [R]i
0
VCi = ( pCi ) (2)
dt
0p is the position vector of the centre of mass of link i.
Ci
1 In
closed-loop mechanisms or parallel manipulators, one can judiciously
use the propagation formulas for the serial portions.
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 10 / 77
L AGRANGIAN FORMULATION :
P OTENTIAL ENERGY
2 For
springs or other energy storage devices, appropriate modification to
the expression of the potential energy of the link are done. For example, if
torsional springs are present at joint i, add a term 21 ki θi 2 to the expression
for the potential energy. . . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 11 / 77
L AGRANGIAN FORMULATION :
E QUATIONS OF MOTION
From the kinetic and potential energy, define the scalar
Lagrangian
N
L (q, q̇) = ∑(KEi − PEi ) (4)
i
N is the number of links excluding the fixed link.
In serial manipulators, with R or P joints dim(q) = n = N
The equations of motion3 , are
( )
d ∂L ∂L
− = Qi i = 1, 2, ..., n (5)
dt ∂ q̇i ∂ qi
Qi ’s are the externally applied generalised forces → When
only joint torques or forces are present
Qi = τi , i = 1, ..., n (6)
3 The
Lagrangian formulation is equivalent to Newton’s laws and Euler’s
equations from calculus of variation(see Goldstein .1980).. . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 12 / 77
E QUATIONS OF MOTION (C ONTD .)
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 21 / 77
E QUATIONS OF M OTION IN
C ARTESIAN S PACE (C ONTD .)
[MX (q)], CX (q, q̇), and GX (q) – Analogous to mass
matrix, Coriolis/centripetal and gravity term, respectively.
Relationships between Cartesian and joint space terms
τ = [J(q)]T F
[MX (q)] = [J(q)]−T [M(q)][J(q)]−1
CX (q, q̇) = [J(q)]−T (C(q, q̇) − [M(q)][J(q)]−1 [J(q)]
˙ q̇)
GX (q) = [J(q)]−T G(q) (23)
Figure 2: A 2R manipulator
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 24 / 77
P LANAR 2R M ANIPULATOR
Velocity propagation to find linear and angular velocities
{0} fixed → 0 ω 0 =0 V0 = 0.
i=1
1
ω 1 = (0 0 θ̇1 )T
1
V1 = 0
1
VC1 = 0 + (0 0 θ̇1 )T × (r1 0 0)T = (0 r1 θ̇1 0)T
i=2
2
ω 2 = (0 0 θ̇1 + θ̇2 )T
c2 s 2 0 0 l1 s2 θ̇1
2
V2 = −s2 c2 0 l1 θ̇1 = l1 c2 θ̇1
0 0 1 0 0
2
VC2 = 2
V2 +2 ω 2 × (r2 0 0)T
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 25 / 77
P LANAR 2R M ANIPULATOR
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 26 / 77
P LANAR 2R M ANIPULATOR
∂L
= −m1 gr1 c1 − m2 g (l1 c1 + r2 c12 )
∂ θ1
∂L
= −m2 l1 r2 s2 θ̇1 (θ̇1 + θ̇2 ) − m2 gr2 c12
∂ θ2
∂L
= (I1 + I2 + m1 r12 + m2 l12 + m2 r22 + 2m2 l1 r2 c2 )θ̇1
∂ θ̇1
+(I2 + m2 r22 + m2 l1 r2 c2 )θ̇2
∂L
= (I2 + m2 r22 + m2 l1 r2 c2 )θ̇1 + (I2 + m2 r22 )θ̇2
∂ θ̇2
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 27 / 77
P LANAR 2R M ANIPULATOR
∂L
Derivatives of ∂ θ̇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 (2θ̇1 + θ̇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 = θ̈1 (I1 + I2 + m2 l12 + m1 r12 + m2 r22 + 2m2 l1 r2 c2 )
+θ̈2 (I2 + m2 r22 + m2 l1 r2 c2 )
−m2 l1 r2 s2 (2θ̇1 + θ̇2 )θ̇2 + m2 g (l1 c1 + r2 c12 ) + m1 gr1 c1
τ2 = θ̈1 (I2 + m2 r22 + m2 l1 r2 c2 ) + θ̈2 (I2 + m2 r22 )
+m2 l1 r2 s2 θ̇12 + m2 r2 gc12
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 28 / 77
P LANAR 2R M ANIPULATOR –
E QUATIONS OF M OTION
Equations of motion are two nonlinear ODEs – In standard form
( )
τ1
=
τ2
[ ]( )
I1 + I2 + m2 l12 + m1 r12 + m2 r22 + 2m2 l1 r2 c2 I2 + m2 r22 + m2 l1 r2 c2 θ̈1
I2 + m2 r22 + m2 l1 r2 c2 I2 + m2 r22 θ̈2
( ) ( )
−m2 l1 r2 s2 (2θ̇1 + θ̇2 )θ̇2 m2 g (l1 c1 + r2 c12 ) + m1 gr1 c1
+ + (27)
m2 l1 r2 s2 θ̇12 m2 r2 gc12
O2 Link 2
(m2 , l2 , r2 , I2 ) Geometry and inertial
O3
parameters of links –
Link 3
PE = m1 gr1 sin(θ1 )+m2 g (l1 sin(θ1 )+r2 sin(θ1 + ϕ2 ))+m3 gr3 sin(ϕ1 )
(29)
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 31 / 77
P LANAR FOUR - BAR M ECHANISM –
E QUATIONS OF M OTION
Lagrangian for the planar 2R + planar 1R mechanisms
L (q, q̇) =
1 2 1 1 1 1
I1 θ̇1 + I2 (θ̇1 + ϕ̇2 )2 + I3 ϕ̇12 + m1 r12 θ̇12 + m3 r32 ϕ̇12
2 2 2 2 2
1
m2 (l1 θ̇1 + r2 (θ̇1 + ϕ̇2 ) + 2l1 r2 cos(ϕ2 )θ̇1 (θ̇1 + ϕ̇2 ))
2 2 2 2
2
−m1 gr1 sin(θ1 ) − m2 g (l1 sin(θ1 + r2 sin(θ1 + ϕ2 ))
−m3 gr3 sin(ϕ1 ) (30)
Constraint equations of 4-bar ( Module 4, Lecture 1, Slide
# 20)
l1 cos(θ1 ) + l2 cos(θ1 + ϕ2 ) = l0 + l3 cos(ϕ1 )
l1 sin(θ1 ) + l2 sin(θ1 + ϕ2 ) = l3 sin(ϕ1 ) (31)
Perform partial derivatives with respect to q and q̇ and
time derivatives (see Lagrangian formulation).
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 32 / 77
P LANAR FOUR - BAR M ECHANISM –
E QUATIONS OF M OTION
3 × 3 mass matrix [M(q)]
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 + m2 l1 r2 cos(ϕ2 ) , I2 + m2 r2 , 0
2 2
0 , 0 , m3 r3 2 + I3
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 33 / 77
P LANAR FOUR - BAR M ECHANISM –
E QUATIONS OF M OTION
Equations of motion of the planar 2R + 1R mechanisms
where f = (τ − [C]
A SHITAVA G HOSAL (IIS C ) q̇ −: G)
ROBOTICS A DVANCED q = (θ& A,NALYSIS
andCONCEPTS ϕ , ϕ )T . NPTEL, 2010 35 / 77
S UMMARY
6 See
Known Bugs in Module 10, Slide # 10 for viewing links.
To view link, Copy and paste in a New Window/Tab using right click.
Close New Window/Tab after viewing. . . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 36 / 77
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 A DDITIONAL M ATERIAL
MAPLE⃝ R
Tutorial, ADAMS⃝ R
Tutorial, Problems,
References and Suggested Reading
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 37 / 77
I NTRODUCTION
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 38 / 77
I NVERSE DYNAMICS OF ROBOTS
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 39 / 77
P LANAR 2R E XAMPLE
Lo cation of cg of Link 2
g Link 2
Ŷ 0 Lo cation of cg of Link 1 (m2 , l 2 , r2 , I 2 )
O2
{ 0} θ2
Link 1
τ1 (m1 , l 1 , r 1 , I 1 )
τ2
θ1 X̂ 0
Link Length Mass C.G. Inertia
O1 (m) (kg) (m) (kg m2 )
Figure 4: A 2R manipulator
1 1.0 12.456 0.773 1.042
2 1.0 12.456 0.583 1.042
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 40 / 77
P LANAR 2R E XAMPLE
1.4
0.6
x = a + r cos(ϕ )
y = b + r sin(ϕ )
0.4
l 1 =1
r = 0.2, a = 1.2,
0.2
b = 1.2
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 0 ≤ ϕ ≤ 2π in 10
Figure 5: A 2R manipulator executing circular seconds
trajectory
1.5 θ1
1
Angle(rad)
0.5
−0.5
−1
θ2
−1.5
0 1 2 3 4 5 6 7 8 9 10
Time(Seconds)
0.2
0.1
Angular Vel.(rad/sec 2)
−0.1
−0.2
θ˙ 1
θ̇2
−0.3
−0.4
0 1 2 3 4 5 6 7 8 9 10
Time(Seconds)
0.3
0.2
θ̈ 2
Angular Acc.(rad/sec 2 )
0.1
0
θ̈1
−0.1
−0.2
−0.3
−0.4
0 1 2 3 4 5 6 7 8 9 10
Time(seconds)
160
τ1
Torque(Nm)
140
120
100
80
τ2
60
0 1 2 3 4 5 6 7 8 9 10
Time(Seconds)
f denotes (τ − C − G − F).
Obtain the 2(n + m) first-order state equations as
Ẋ1 = Xn+m+1 , Ẋ2 = Xn+m+2 , ..., Ẋn+m = X2(n+m)
Ẋn+m+1
.
= [M]−1 (f − [Ψ]T ([Ψ][M]−1 [Ψ]T )−1 {[Ψ][M]−1 f
.
Ẋ2(n+m)
˙ Ẋ1 , ..., Ẋn+m )T })
+[Ψ]( (36)
f denotes (τ − C − G − F).
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 46 / 77
S IMULATION OF E QUATIONS OF
M OTION : PARALLEL MANIPULATORS
The nature of ODEs in equations (36) are different than
ODEs obtained for serial manipulators.
m loop-closure (holonomic) constraints must be satisfied
→ Differential-algebraic equations or DAEs.
DAEs are inherently stiff7 → Use stiff-solvers such as
ODE15S or ODE23S in MATLAB⃝ R
.
Stiff solvers use implicit schemes and are slower than
non-stiff solvers.
For simple problems (such as a 4-bar mechanism), ODE45
is good enough.
7 A system of ODEs is said to be stiff if the time constants of the
individual ODE’s are orders of magnitude different – More than 1000:1. For
stiff ODEs, the time step in integration is determined by the smallest time
constants and hence a set of stiff ODEs can take very long to integrate.
DAEs can be thought of as infinitely stiff since the algebraic constraints
have zero time constant. . . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 47 / 77
PARALLEL MANIPULATORS
Equations of motion involve second derivative of m
constraint equations η (q, t) = 0.
Small numerical errors in acceleration (q̈) due to
integration results in increasing errors in q̇ and q.
Baumgarte stabilization (Baumgarte 1983) – Replace
second derivative constraint equation
[Ψ(q)]q̈ + [Ψ̇(q)]q̇ + Φ̇(t) = 0 with
˙ q̇ + Φ̇(t)) + 2α (Φ(t) + [Ψ(q)]q̇) + β 2 η (q, t) = 0
([Ψ]q̈ + [Ψ]
g Link 2
Ŷ 0 Lo cation of cg of Link 1 (m2 , l 2 , r2 , I 2 )
O2
{ 0} θ2
Link 1
τ1 (m1 , l 1 , r 1 , I 1 )
τ2
−70 −1.65
theta1 in degrees
−80
−1.7
−90
−100
−1.75
−110
−120
0 1 2 3 4 5 6 7 8 9 10
Y Coordinate
−1.8
50
−1.85
theta2 in degrees
−1.9
0
−1.95
−50
0 1 2 3 4 5 6 7 8 9 10 −2
−0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8
Time t in seconds
X coordinate
Figure 11: Plot of θ1 and θ2 Vs time Figure 12: Path traced by the tip
l3 τ = τ0 − k θ 1
l1
θ1
l0
X̂0
Initial (pre-loaded) torque
τ0 = 1.96 N-m and the
Figure b spring constant is given as
Figure 13: A four-bar mechanism in k = 0.1 N − m/rad.
two configurations
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 51 / 77
S IMULATIONS OF A 4- BAR
M ECHANISM
The mass, length, location of centre of mass and Izz
component of inertia
Link Length Mass C.G. Inertia
(m) (kg) (m) (kgm2 )
0 1.241 – – –
1 1.241 20.15 1.2 9.6
2 1.2 8.25 0.6 0.06
3 1.2 8.25 0.6 0.06
As spring unwinds, link 1 rotates counter-clockwise.
Link lengths chosen such that θ1 cannot rotate beyond a
certain angle.
Links 2 and 3 lock when they align & 4-bar becomes a
structure!
For θ1 = 0.01 radians, ϕ1 = 0.0102, 6.2698 radians
(obtained from the solution of 4-bar direct kinematics) –
Choose initial ϕ1 = 0.0102 radians. . . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 52 / 77
S IMULATIONS OF A 4- BAR
M ECHANISM
400
500
lambda1
lambda2
350
400
300
300
250
200
200
150 100
100 0
theta1
50 phi2
phi1 −100
0
0 2 4 6 8 10 12 14
−200
time in sec 0 2 4 6 8 10 12 14
time in sec
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 54 / 77
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 A DDITIONAL M ATERIAL
MAPLE⃝ R
Tutorial, ADAMS⃝ R
Tutorial, Problems,
References and Suggested Reading
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 55 / 77
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
Figure 16: Amino acid chain in a
protein
1000 ‘joint’ variables!
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 56 / 77
R ECURSIVE INVERSE DYNAMICS OF
SERIAL MANIPULATORS
Inverse dynamics → Given q(t), q̇(t) & q̈(t) find τ (t).
Newton-Euler formulation – Newton’s Law and Euler
Equation for each link {i}
F = mi 0 V̇Ci
N = Ci
[Ii ]0 ω̇ i + 0 ω i × Ci [Ii ]0 ω i (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 i−1 i [T ] (see Module
2, Lecture 1, Slide # 22)
Linear and angular velocities can be computed using
propagation formulas (see Module 5, Lecture 1, Slide #’s
16 – 18).
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 57 / 77
P ROPAGATION OF VELOCITY AND
ACCELERATION
For rotary (R) joint
i
ωi = i
i−1 [R]
i−1
ω i−1 + θ̇i (0 0 1)T
i
Vi = i
i−1 [R](
i−1
Vi−1 +i−1 ω i−1 ×i−1 Oi ) (38)
For prismatic (P) joint
i
ωi = i
i−1 [R]
i−1
ω i−1 (39)
i
Vi = i
i−1 [R](
i−1
Vi−1 +i−1 ω i−1 ×i−1 Oi ) + ḋi (0 0 1)T
Acceleration of an arbitrary point p on rigid body {i}→
Differentiate velocity with time
0
V̇p = 0
V̇Oi + 0i [R]i V̇p + 2 0 ω i × 0i [R]i Vp + 0 ω̇ i × 0i [R]i p
+0 ω i × (0 ω i × 0i [R]i p)
When i p is constant, i Vp = i V̇p = 0.
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 58 / 77
P ROPAGATION OF VELOCITY AND
ACCELERATION
When joint i + 1 is rotary (R)
i+1
V̇i+1 = i+1
i [R][i V̇i + i ω̇ i ×i pi+1 + i ω i × (i ω i ×i pi+1 )] (40)
i+1
ω̇ i+1 = i+1
i [R]i ω̇ i + i+1
i [R]i ω i × θ̇i+1 i+1 Ẑi+1 + θ̈i+1 i+1 Ẑi+1
When joint i + 1 is prismatic (P)
i+1
V̇i+1 = i+1
i [R][i V̇i + i ω̇ i ×i pi+1 + i ω i × (i ω i ×i pi+1 )]
+2i+1 ω i+1 × ḋi+1 i+1 Ẑi+1 + d̈i+1 i+1 Ẑi+1
i+1
ω̇ i+1 = i+1
i [R]i ω̇ i (41)
The acceleration of the centre of mass of link i is
i
V̇Ci = i V̇i + i ω̇ i ×i pCi + i ω i × (i ω i ×i pCi ) (42)
ip is the position vector of the centre of mass of link i
Ci
with respect to origin Oi .
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 59 / 77
R ECURSIVE N EWTON -E ULER
F ORMULATION
Use propagation formulas for position/orientation of links.
Outward iterations for velocities and accelerations
i : 0 → N−1
i+1
ω i+1 = i+1
i [R]i ω i + θ̇i+1 (0 0 1)T
i+1
ω̇ i+1 = i+1
i [R]i ω̇ i + i+1
i [R]i ω i × θ̇i+1 (0 0 1)T + θ̈i+1 (0 0 1)T
i+1
V̇i+1 = i+1
i [R](i V̇i + i ω̇ i ×i pi+1 + i ω i × (i ω i ×i pi+1 )) (43)
i+1
V̇Ci +1 = i+1
V̇i+1 + i+1 ω̇ i+1 ×i+1 pCi +1
+i+1 ω i+1 × (i+1 ω i+1 ×i+1 pCi +1 )
No rotations of bodies
Motion of prismatic
Rigid-body X2
2 → X , Y coordinates
joint 2
[I ]A
N = [I ]N , and
PNA = 0.
Start with i = N − 1 and compute [I ]A i and Pi for each i
A
– O(N) algorithm.
From [I ]Ai and Pi , obtain q̈i for each i as
A
i Ai −1 − Si Pi
Qi − SiT [I ]A T A
q̈i = (50)
Si [I ]i Si
T A
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 70 / 77
A RTICULATED - BODY ALGORITHM
Fixed base A0 = 0, compute q̈1 from [I ]A 1 , P1 and for a
A
given Q1 .
Iterate for i = 1 to N to obtain all q̈i ’s.
Overall algorithm is O(N) since all sub-parts are O(N)
(Featherstone 1983, 1987).
Root Node (Fixed) 0
1
2
Can be used for multi-body
3
system in a tree structure.
4
5
0 is the root node (fixed
6
base).
7
10, 11 etc. are leaf nodes
8 9
11 10
(end-effectors)
Leaves (End-effector) 12
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 73 / 77
F ORWARD DYNAMICS OF PARALLEL
MANIPULATORS
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 74 / 77
S UMMARY
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 75 / 77
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 A DDITIONAL M ATERIAL
MAPLE⃝ R
Tutorial, ADAMS⃝ R
Tutorial, Problems,
References and Suggested Reading
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 76 / 77
A DDITIONAL M ATERIAL
Exercise Problems
References & Suggested Reading
. . . . . .
A SHITAVA G HOSAL (IIS C ) ROBOTICS : A DVANCED C ONCEPTS & A NALYSIS NPTEL, 2010 77 / 77