Chapter3 PDF
Chapter3 PDF
1 Dynamics
Euler-Lagrange
Kinetic Energy
Inertia Tensor Matrix
Potential Energy
Newton-Euler
2 Trajectory Planning
Trajectories for Point to Point Motion
Cubic Polynomial Trajectories
Quintic Polynomial Trajectories
Linear Segments with Parabolic Blends (LSPB)
Minimum Time (BangBang) Trajectories
3 Control Algorithm
Dynamics
Dynamics
Robot Dynamics is the study of the relation between the applied
forces/torques and the resulting motion.
Euler-Lagrange
L=T −U
where T and U denote the total kinetic energy and potential energy
of the system, respectively.
d ∂L ∂L
− = τi i = 1, ..., n
dt ∂ q̇i ∂qi
where n is the number of joints and τi is the generalized force asso-
ciated with the generalized coordinate qi
Dynamics
Euler-Lagrange
Kinetic Energy
The kinetic energy of a rigid object is the sum of two terms:
1 Translational kinetic energy: obtained by concentrating the
entire mass of the object at the center of mass
2 Rotational kinetic energy of the body about the center of
mass.
For example, for a point mass the kinetic energy is given as
1 1
T = mv 2 + Iω 2
2 2
where v = r ω and r is the distance between the center of rotation
and point mass
Inertia Tensor
Moment of inertia, usually denoted by I, measures the extent to
which an object resists rotational acceleration about a particular
axis
Let T
i
r= x y z 1
be the coordinates in frame i of the infinitesimal mass dm.
xzdm yzdm z 2 dm
R R R T
The vector xdm ydm zdm is first moments which
R is the
product of mass and the position of center of mass, and dm is the
mass of the link
If the axes of Link i frame coincide with the central axes of inertia,
then the inertia products are null and the inertia tensor relative to
the centre of mass is a diagonal matrix.
ZM
I = x 2 dm
0
Dynamics
Euler-Lagrange
As shown from the figure above, a thin uniform rod of mass M and
length L is mounted on an axis passing through the end of the rod,
and perpendicular to the plane of the rod.
Choose the origin at the end of the rod and the x-axis oriented along
the rod, positive to the right in the figure. Denote the length of a
small element of the rod by
dl = dx
Since the rod is uniform, the mass per unit length is a constant
dm M
=
dl L
Therefore the mass in the infinitesimal length is given by
M
dm = dx
L
Dynamics
Euler-Lagrange
Potential Energy
In the case of rigid dynamics, the only source of potential energy is
gravity.
0 0 0 0
Dynamics
Euler-Lagrange
The total potential energy applied by the actuator to resist the grav-
itational potential energy of the n-link robot is given by
n
X
U =− Ui
i=1
In the case that the robot contains elasticity, for example, flexible
joints, then the potential energy will include terms containing the
energy stored in the elastic elements.
U1 = Hg 1 J10
Similarly, for link-2 the Inertia tensor with respect to frame-2 is given
by 1 2 0 0 − 21 m2 L2
3 m2 L2
0 0 0 0
J2 =
0 0 0 0
1
− 2 m2 L2 0 0 m2
For lumped mass located at center of gravity, the Inertia is given by
1
I = m2 L22
4
The Inertia tensor with respect to frame-0 is given by
U2 = Hg 2 J20
Newton-Euler
Reading Assignment
Trajectory Planning
Trajectory Planning
Path and trajectory planning means the way that a robot is moved
from one location to another in a controlled manner.
q(t) = a0 + a1 t + a2 t 2 + a3 t 3
Combining the above two equations with the four constraints yields
four equations and four unknowns at the initial and final configura-
tions
q0 = a0 + a1 t0 + a2 t02 + a3 t03
v0 = a1 + 2a2 t0 + 3a3 t02
qf = a0 + a1 tf + a2 tf2 + a3 tf3
vf = a1 + 2a2 tf + 3a3 tf2
These four equations can be combined into a single matrix equation
1 t0 t02 t03
a0 q0
0 1 2t0 3t 2 a1 v0
0
1 tf t 2 t 3 a2 = qf
f f
0 1 2tf 3tf2 a3 vf
The determinant of the coefficient matrix is (tf −t0 )4 and the above
equation always has a unique solution if a nonzero time interval is
allowed for the execution of the trajectory.
Trajectory Planning
Trajectories for Point to Point Motion
Example
It is desired to have the first joint of a two link robot moves from
initial angle of 30o to a final angle of 75o in 5 seconds. Using a
third-order polynomial, calculate the joint angle at 1, 2 3, and 4
seconds.
Trajectory Planning
Trajectories for Point to Point Motion
q(t) = a0 + a1 t + a2 t 2 + a3 t 3 + a4 t 4 + a5 t 5
Trajectory Planning
Trajectories for Point to Point Motion
q(t) = a0 + a1 t = a0 + vt
Since, by symmetry,
tf q0 + qf
q( )=
2 2
we have
q0 + qf tf
= a0 + v
2 2
which implies that
q0 + qf − vtf
a0 =
2
Since the two segments must blend at time tb
v q0 + qf − vtf
q0 + tb = + vtb
2 2
Trajectory Planning
Trajectories for Point to Point Motion
We assume that the trajectory begins and ends at rest, that is,
with zero initial and final velocities, symmetry considerations would
suggest that the switching time ts is just t2f .
Trajectory Planning
Trajectories for Point to Point Motion
Vs = αts
and also
q0 − qf + vs tf
ts =
vs
tf
the symmetry condition ts = 2 implies that
qf − q0
vs =
ts
Combining these two we have the conditions
qf − q0
= αts
ts
which implies that r
qf − q0
ts =
α
Control Algorithm
Control Algorithm
The dynamic equations of a serial rigid manipulator is given as:
M(q)q̈ + C (q, q̇)q̇ + G (q) = τ
where, M(q) is an nxn inertia matrix of a manipulator, C (q, q̇) is a
nxn matrix related to the centrifugal and Coriolis terms, G (q) is an
nx1 vector related to gravitational force and τ is the joint generalized
force.
The above equation shows how the tracking error evolves over time
with respect to the control input u. The equation is linear and
time-invariant system.
ẋ = Ax + Bu,
T
where x = e ė are the states
To stabilize the system we have to choose a control input
u = −Kx = − Kp Kd x = −Kp e − Kd ė