Chapter - Acceleration Feedback in Dynamic Positioning
Chapter - Acceleration Feedback in Dynamic Positioning
Inertial Measurements
3.1 Introduction
Over the years a variety of solutions and control strategies has been proposed to
the DP control problem. A signicant industrial contribution was the application
of Kalman lters and optimal control (Balchen et al. 1976, Grimble et al. 1980,
Balchen et al. 1980). These model based strategies separated the rapid, purely
oscillatory (zero mean) motion caused by the rst order, linear (i.e. proportional to
the instantaneous wave height and with a frequency content equal to the incoming
waves) wave loads, from the more slowly varying forces due to nonlinear wave
eects, so called wave drift forces, wind and ocean currents. The applied thrust was
then calculated from the estimated low-frequency motion thus reducing thruster
modulation and wear and tear.
The objective of the DP system is therefore to counteract constant and the slowly-
varying disturbances due to:
• Ocean currents.
All these three components have stationary contributions, and some form of in-
tegral action will be required. Furthermore, the vessel’s desired heading angle
should be selected such that the power required to reject the constant force com-
ponents is minimized. This can be achieved automatically by controlling the x-
and y-positions provided that the vessel’s reference point is located at a minimum
distance fore of the centre of gravity (Pinkster and Nienhuis 1986). A more versa-
tile and sophisticated concept called weather optimal positioning control (WOPC)
was introduced by Fossen and Strand (2001).
28 Inertial Measurements
• The sensor and engineering cost will be much lower. High-precision commer-
cial inertial measurement units (IMUs) are becoming increasingly aordable
and can be easily interfaced with existing control systems.
• All kinds of slowly varying disturbances, not only wave drift, will be atten-
uated.
divided by the mass (and thereby the model itself) is actually being measured.
Consequently, it seems plausible to expect improved robustness, tracking perfor-
mance and disturbance rejection when AFB is constructively applied.
Using the acceleration in a feedback loop has been referred to as a direct approach
(de Jager 1994) as opposed to indirect where the acceleration signal is used in an
observer to improve the state estimates. de Jager (1994) recommended to consider
using measured acceleration either directly or indirectly, but not in combination,
and he reported increased tracking performance by counteracting uncertainty in
the inertia matrix of a 2D Cartesian manipulator.
For rigid robots, Luo and Saridis (1985) suggested using a decentralized (diagonal)
static linear controller for rigid robots assuming that joint positions, velocities and
accelerations were available. Stability in the sense of Lyapunov and performance
of this controller was later studied by Studenny and Bélanger (1984). In Kosuge
et al. (1989) the authors suggest using low-pass ltered acceleration to improve
the performance and robustness of a feedback linearization design of a two-link
planar robot. The “disturbance” due to inaccurate model parameters introduced
in the linearization was reduced in addition to the environmental disturbances.
Complete disturbance cancellation can only be achieved as the acceleration gain
tends towards innity, and due to unmodeled dynamics, time delays, imperfect
measurements, and other practical limitations, there will be an upper bound on
the acceleration gain.
In low speed ship control, such as DP, a combined approach after de Jager’s de-
nition is almost inevitable due to the heavy notch ltering the observer has to
perform. First order wave loads dominate the measured acceleration signal and
direct application leads to thruster modulation and unbearable wear on the equip-
ment. We let the notch ltered acceleration signal update both the state estimates
and the control law. This particular combined approach proved to be successful.
30 Inertial Measurements
where x and v = x are the states describing position and velocity,. u is the control
and w is a disturbance. Isolating the velocity equation and dening Tm = m/d we
get the transfer function
v 1 1
h(s) = (s) = (3.3)
w d (1 + Tm s)
The idea is now to incorporate an acceleration term in the control u, that is let u
be the sum
u = ha (s)v + uP ID (3.4)
where uP ID is to be designed later and ha (s) is some dynamic system. The eect
of the negative acceleration term ha (s)v is increased mass, the system’s virtual
mass becomes ma (s) = m + ha (s).
For attenuation of low-frequency disturbances, a suitable ha (s) could be a low-pass
lter with a gain specied as a fraction of the original mass m
m
ha (s) = (3.5)
1 + Tf s
For positive ’s the mass increases to (1 + ) m for frequencies below f = 1/Tf
thus making the system virtually heavier and less inuenced by varying distur-
bances. For high frequencies the mass is left unaltered because |ha (j)| 0 for
À f . The resulting transfer function for the velocity dynamics becomes
v v 1 1 + Tf s
(s) = (s) = (3.6)
uP ID w d (1 + Tm s) (1 + Tf s) + Tm s
a e 1 + Tf s
(3.7)
d (s + a ) (s + e )
where
1 1 1+
a = , e = (3.8)
Tm 1 + Tf
The asymptotic Bode plots from force to velocity (Figure 3.1) with and without
acceleration feedback show that, because the mechanical time constant has been
increased by feedback, the magnitude decreases for frequencies a < < e .
The “power”, as given by the L2 -induced norm, of the velocity v has been reduced
for disturbances w in the frequency range a < < e . For frequencies lower
than a , no reduction can be expected.
3.2 Inertial Measurements 31
0
Gain [dB]
ω 1/T
m
1/T
f
ω
a e
m(1+α)
mass [kg]
ω 1/T
m
1/T
f
ω
a e
Frequency ω [rad/s]
Figure 3.1: Top: Bode plot of wv (s) with (solid) and without (dashed) acceleration
feedback. Bottom: The magnitude of virtual mass ma (s) = m + ha (s).
The second component can be ignored for marine applications, while the rst can
be ignored if it is below the gyro noise level which means that for high-precision
gyros $bie must be taken into consideration.
If the n-frame is xed relative to the Earth, or as mentioned slowly-varying as in
32 Inertial Measurements
Consider now the n-frame as the inertial frame. Suppose the IMU is located at
the distance pbbI from the origin of the body-xed frame. In the inertial frame,
the position of the IMU is then
decomposed in the b-frame, the assumed error free acceleration measurement fimu b
Here gn = [0, 0, g]T is the contribution from gravity. Notice the Coriolis eect
S($ bnb )vnb
b
caused by the rotation of the b-frame relative to the inertial n-frame.
Observe that the gravity term could have been expressed using the vessel-parallell
p-frame such that on component form
sin
gb = Rbn gn = Rbp gp = sin cos g (3.17)
cos cos
because gp = gn .
In terms of the -vector, the error-free measured acceleration can be written as
fimu
b
= 1 + S( 2 ) 1 gb = 1 + 2 × 1 gb (3.18)
3.3 Compensators 33
3.3 Compensators
The error-free measured acceleration (3.16) demonstrates that yacc b
6= 1 = v nb
b
.
In order to construct a “measured” 1 some kind of compensator has to be imple-
mented:
y 1 = fimu
b
S($̂ bnb )v̂nb
b
+ R(ˆ
pb )gp 1 (3.19)
Even small roll and pitch angles will lead to gravity components in the acceleration
measurements along the surge and sway axes. Those components will, because
gravity is the dominating force acting upon the vessel, dominate. Consequently,
accurate measurements of surge and sway acceleration require good roll and pitch
measurements. An integrated navigation system estimates the position pnnb , the
orientation nb and the velocities vnb
b
and $ bnb . The compensator (3.19) can thus
be realized using such systems.
An integrated navigation system is, however, not strictly required for gravity com-
pensation. Below two dierent types of g-compensation are proposed and dis-
cussed, one static and one dynamic. The static compensator uses only accelera-
tion measurements to remove the gravity forces, while the dynamic approach is
an attitude observer also utilizing gyro measurements. However, neither the static
nor the dynamic g-compensator is able to cancel the Coriolis component in
abnb = 1 + 2 × 1 (3.20)
which means that unless the navigation system is able to accurately estimate
1 = vnb
b
, this Coriolis eect cannot be removed and therefore isolating 1 is
generally speaking impossible and care must be taken when using the gravity
compensated acceleration measurement in the control design.
Still, in positioning operations at sea, the need for such integrated systems can be
relaxed as explained below.
fimu
b
v nb
b
Rbp gp (3.21)
fimu
b
= Rbp gp (3.22)
from which can solve for the roll and pitch angles as follows
μ ¶
fy
= arctan , fz > 0 (3.23)
fz
f
= arctan q
x
(3.24)
fz2 + fy2
34 Inertial Measurements
fimu
b
= ab Rbp gp (3.27)
yacc
b
= fimu
b
+ acc (3.28)
From the latter we can estimate ab using the estimated roll and pitch angles
ˆpb = [,
ˆ ˆ, 0]T
âb = yacc
b
+ R̂bp gp (3.29)
The error ãb = ab âb is thus
³ ´
ãb = fimu
b
+ Rbp gp fimu
b
+ acc + R̂bp gp
³ ³ ´´
ˆpb ) gp acc
I S(pb ) I S(
˜pb acc
= S(gp ) (3.30)
The linear approximations of the rotation matrices are valid for small inclinations.
Taylor expansions of the roll and pitch components of the attitude error ˜pb =
ˆpb are
pb
˜ fy
g
˜ fx
g
Consequently, by inserting these errors into (3.30), we see that a g-compensator
not only cancels out the gravity components but also removes the accelerometer
error acc on the x and y-axis
£ ¤T
ãb 0 0 fz (3.31)
3.3 Compensators 35
$ imu R3 is the angular velocity vector measured by the gyros, b̂gyro R3 is the
gyro bias, and $ nin = $ nie + $ nen where $nie is the earth rate vector and $ nen is the
angular velocity due to the movement of the ship over the Earth. Computation of
$ nie requires knowledge of true north. Tgyro R3×3 is a diagonal time constant
matrix, and K1 R3×3 and K2 R3×3 are diagonal matrices. Finally,
· ¸
%̂Tq
Tq̂ (q̂) = (3.35)
ˆq I + S(%̂q )
· ¸
%̂Tq
(q̂) = (3.36)
ˆq I S(%̂q )
%̃q and ˜q are components of the quaternion error q̃, which is computed from the es-
timated quaternion and a measurement quaternion derived from the accelerometer
based attitude measurements (3.23)-(3.24). Since the accelerometer attitude mea-
surement only needs to prevent the integrated gyro signal from drifting, the gains
are usually chosen very small. The low gain means that horizontal accelerations
have little inuence on the roll and pitch measurements. Thus, these measurements
can be used to compensate for the g-vector in the surge and sway acceleration mea-
surements. Moreover, since the accelerometers are used for attitude computation,
accelerometer bias will not inuence the surge and sway measurements.
DGC is then carried out after (3.29), that is
âb = yacc
b
+ R̂bp gp
where R̂bp now reects it is being calculated based on the VRU’s attitude estimates
q̂.
36 Inertial Measurements
Figure 3.2 shows the measured and g-compensated acceleration in a static test
using the Litton LN-200.
Surge acceleration [m/s ]
2
0.04
0.02
-0.02
-0.04
0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000
Sway acceleration [m/s ]
2
0.3
0.2
0.1
-0.1
0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000
Heave acceleration [m/s ]
2
-5
-10
500 1000 1500 2000 2500 3000 3500 4000 4500 5000
Time [s]
Figure 3.2: Measured and g-compensated accelerations. The noise level is about
120 μg (1), and the oset after compensation is a few μg on all three axes.
where the subscripts now identify the low-frequency and and wave frequency parts
instead of relative motion. The error-free acceleration measurement (3.16) can be
written as
b ¡ b ¢
fimu
b
= v LF
b
+ v W
b
F + S($ LF + $ W F ) vLF + vW F Rp g
b b b p
= v LF
b
+ S($bLF )vLF
b
Rbp gp + zbW F (3.39)
3.5 Conclusions 37
A1 The Coriolis terms from the low-frequency motion can be neglected, that is
yacc
b
v LF
b
Rbp gp + zbW F + acc (3.42)
which is the sum of the low-frequency acceleration, gravity contributions and some
signal zbW F of a signicantly higher frequency content than v LF
b
. Therefore, using
a dynamic gravity compensator to remove g and acc together with a wave
b
lter (or observer) to remove the wave frequency components zbW F as depicted
in Figure 3.3, it is at least in a positioning operation possible to isolate v LF
b
=
1 . Consequently, using 1 in a low-speed control design is possible also without
3.5 Conclusions
The active use of negative acceleration feedback has been briey introduced by
regarding it as a change of the system’s mass. In order to utilize measured lin-
ear accelerations on surface vessels, some kind of dynamic compensation or pre-
processing has to be performed in order to relate the measurement to the b-frame.
By separating the low freqency motion from the wave induced motion (of relative
high freqency content), it was demonstrated that a particular VRU with gravity
compensation serves this purpose well as long as the vessel itself operates at low
speed.
38 Inertial Measurements
Chapter 4
Observer Design
4.1 Introduction
An observer lters available measurements to provide online estimates of the mea-
sured and unmeasured states within a system. In ship control, the most commonly
needed states are the low-frequency (LF) parts of the positions, the heading, the
velocities and stationary (or slowly varying) disturbances due to wind, ocean cur-
rent and nonlinear wave eects. Based on those estimated states, the controller
calculates its thrust demand. The three main objectives for the observer are:
• State estimation: To produce the state estimates from which the controller
calculates its desired propeller thrust forces and moments.
• Wave ltering: The estimator should attenuate the fast, oscillatory motion
due to rst-order wave loads. It is useless trying to compensate this sinu-
soidal (zero mean) behavior, and doing so will only lead to excessive thruster
system wear.
The third objective implies that some kind of model based lter must be imple-
mented.
Classic solutions to the DP problem of surface vessels are output-feedback de-
signs using a state-estimator to lter out 1st-order wave induced motion from the
LF positions while reconstructing LF velocities (Balchen et al. 1976, Balchen et
al. 1980, Sælid et al. 1983, Grimble et al. 1980, Fung and Grimble 1983, Sørensen et
al. 1996). All these were realized using linear stochastic theory (Kalman Filters),
40 Observer Design
but also H -solutions been proposed (Katebi et al. 1997). Unfortunately, the lin-
earization of the nonlinear kinematics implies that the results are only valid locally.
However, if the nonlinearities satisfy a global Lipschitz-condition, a modication
(Reif et al. 1999) of the extended Kalman lter ensures global exponential stability.
Another approach with comparable performance is to utilize the model structure
and let the observer “linearize” itself about the measured compass heading. As
opposed to traditional extended Kalman-lters, the on-line explicit linearization
is avoided, and global stability properties are more easily established since the
nonlinear kinematics can be treated as a known time-varying block. Examples
are the passivation designs (Fossen and Strand 1999, Strand and Fossen 1999),
further extensions to higher order monotonic damping terms (Aamo et al. 2001),
and non-dissipative linear damping terms (Lindegaard and Fossen 2001b).
As discussed previously, using the measured accelerations, we are able to better
keep up with unmodeled disturbances like slowly varying wave forces which must
be counteracted by the control system. Slowly varying wave induced forces is a
phenomenon well known from nonlinear hydrodynamic theory (Faltinsen 1990),
yet they are dicult to express in a form suited for controller design. However,
feeding the measured accelerations uncritically into the closed loop system is not
recommended due to the high-frequency, large amplitude oscillations caused by
1st-order wave loads. Therefore, some kind of notch ltering of the measured
accelerations is required in order to remove the wave frequency components.
In this chapter we focus on extending the proven observer structure from Fossen
and Strand (1999). More specically, the contributions are:
Common for all previously mentioned designs is that they are derived under the
assumption that only the positions and compass heading were available for feed-
back. Today high performance inertial measurement units (IMU) are becoming
increasingly aordable, and integrated navigation systems (INS) integrating IMU
and GPS reproduce not only positions but also velocities and linear accelerations
with great accuracy to a reasonable price. This development in sensor technology
is reected in the proposed designs.
Two dierent observers will be analyzed:
4.2 Common Model Description 41
1. The rst observer (Lindegaard and Fossen 2001a, Lindegaard and Fossen
2001b) contains one single wave model generating accelerations, velocities
and positions. It requires position measurements, and the structure allows
the inclusion of velocity and acceleration. Without acceleration measure-
ments the resulting error dynamics is shown to be UGES provided that the
wave model and selected observer gains satisfy the structural properties.
With accelerations, a specic bound on the yaw rate must be imposed and
uniform semi-global exponential stability (USGES) can be guaranteed.
2. In the second observer (Lindegaard et al. 2002) the wave models for ac-
celeration, velocity and position and treated as separate phenomena. This
facilitates the tuning procedure signicantly, and a particular tuning proce-
dure based on pole placement is proposed. A similar structural constraint
as for the rst observer must also be assumed in this case, and USGES of
the error dynamics is shown.
4 d
and its time-derivative is R() =dt (R()) = SR()
where the skew-symmetric
matrix S = ST is given by
0 1 0
S= 1 0 0 (4.2)
0 0 0
Let = [x, y, ]T be the LF position vector where x and y are the North and East
positions respectively, and being the LF heading. = [u, v, r]T contains the LF
body-xed velocities, i.e. surge, sway, and yaw. The LF ship model is assumed to
satisfy:
A1 The orientation angle between the Earth-xed and body-xed frame is the
42 Observer Design
= R( y )
b = T1
b b + Eb wb (4.3)
M = GRT ( y ) D + + RT ( y )b
Property 4.1 A matrix A R3×3 is said to commute with the rotation R() if
The LF model is described by (4.3). Now, let xw R3nw describe the rst order
wave-induced motion where nw denotes the number of states used to describe
the wave frequency motion in each degree of freedom (DOF). Here we let the
4.3 Observer With Consistent Wave Model 43
x w = Aw xw + Ew ww (4.7)
Note in Assumption A2a that there are no restrictions on neither d23 , d32 nor d33 .
A2a is thus less restrictive than assuming D + DT > 0 (Fossen and Strand 1999)
and its interpretation is that separate surge and sway motions are dissipative.
It does, however, include cases with potentially unstable sway/yaw dynamics
(Robertsson and Johansson 1998). The last assumption, A3a, implies that the
mean wave motion period, relative damping, and bias time constants in the North
and East directions are identical. It should be emphasized that this is not as re-
strictive as it may sound since the dominating frequency of the rst order wave
induced motions will be approximately the same in surge and sway.
in each of the 3 DOF. The motivation for using a function of fourth order instead
of other approximations, is that this choice ensures that the transfer functions
between the excitation and positions, velocities as well as accelerations, will be
strictly proper.
A minimal realization with xw R12 can in state-space be described by
x w = Aw xw + Ew ww (4.9)
0 I 0 0 0
0 I 0
Aw = , Ew =
0 0 0 I 0
0 0 diag (kw )
where and are diagonal matrices holding the the wave motion resonance
frequencies oi and relative damping factors i , i = 1, · · · , 3 for the North, East
44 Observer Design
and kw = [kw1 , kw2 , kw3 ]T is a gain vector. Assumption A3 requires 01 = 02
and 1 = 2 . The Earth-xed wave induced position, velocity and acceleration
can be extracted from xw as follows
pw = Cp xw , vw = Cv xw , aw = Ca xw (4.12)
where Cp , Cv , Ca R3×12
£ ¤
Cp = I 0 0 0 (4.13)
£ ¤
Cv = 0 I 0 0 (4.14)
£ ¤
Ca = 0 I (4.15)
¡ T ¢ ¡ T¢
d
Since dt R vw = dt d
R vw + RT v w = y RT Svw + RT aw , the experienced
wave induced velocities and accelerations will in the body frame be given as
vw
b
= RT ( = RT ( y )Cv xw
y )vw (4.16)
³ ´
abw = RT ( y ) Ca y SCv xw (4.17)
Measurements
Compactly written
y = Cy ( y,
y )x + Dy (4.28)
where
Cp I
Cy ( y,
y) = 2 Cv RT ( y ) 0
1
3 (Ca y SCv )RT ( y ) 3 M GR (
T
y)
0 0
0 2
3 M1 RT ( y ) 3 M 1
D
£ ¤T
Dy = 0 0 MT T3 (4.30)
When only positions are available, ny2 = ny3 = 0, the model is reduced to the
traditional DP observer problem.
In the stability analysis below it will be convenient to make an assumption on how
the velocity and acceleration feedback is congured:
A4a Let i = Ti i R3×3 , i = 2, 3. Valid congurations are those which allow
i to commute with R(), that is R()i = i R() for all R.
46 Observer Design
Objective
For the model (4.21) with output (4.28)-(4.30), under Assumptions A1, A2a, and
A3a, we seek a deterministic, model based observer that is exponentially stable
for all possible sensor combinations satisfying Assumption A4a.
ŷ = Cy ( y,
y )x̂ + Dy (4.32)
ỹ = y ŷ = Cy ( y,
y )x̃ (4.33)
Although it somewhat restricts the exibility, we suggest not to update the Earth-
xed estimates from the acceleration error ỹ3 at this stage, because this would in-
troduce transmission zeros. Therefore, this particular observer gain matrix K( y )
with constant K1i R12×3 , K2i R3×3 , K3i R3×3 and K4i R3×3 is suggested
K11 K12 R( y )T2 0
K21 K22 R( y )T2 0
K( y ) = (4.34)
K31 K32 R( y )T2 0
K41 R ( y )
T
K42 2T
K43 3T
This implies that the gains in North and East must be identical. The body-xed
gain matrices K4i , 1 i 3 can, however, be selected freely.
Error Dynamics
Assumptions A3a, A4a, and A5 are sucient requirements for this. Moreover, it
can be shown that the resulting Ao can be written as
Ao ( y ) = A0 + y A1 (4.37)
· ¸ · ¸
A0,11 A0,12 0 0
A0 = A1 = (4.38)
A0,21 A0,22 A1,21 0
where A0,11 R18×18 , A0,12 R18×3 , A0,21 R3×18 , A0,22 R3×3 and A1,21
R3×18 . Denote K̄43 = I K43 3 such that K43 3 = I K̄43 . Then:
Aw K11 Cp K12 2 Cv K11 0
A0,11 = K21 Cp K22 2 Cv K21 0 (4.39)
K31 Cp K32 2 Cv K31 T1 b
K12 2
A0,12 = I K22 2 (4.40)
K32 2
¡ ¡ ¢ ¢T T
K41 Cp + K42 2 Cv + I K̄43 Ca
¡ ¢T
A0,21 = K41 + K̄43 M1 G (4.41)
¡ ¢T
K̄43 M1
£ ¤
A0,22 = K42 2 K̄43 M1 D (4.42)
¡ ¢
A1,21 = I K̄43 SCv (4.43)
Stability Analysis
The form of the observer error dynamics (4.36) is very attractive because the known
transformation T( y ) can be eliminated from the analysis when Assumptions A3-
A5 are employed. Although the eigenvalues of TT Ao ( y )T are identical to the
ones of Ao ( y ) since TT (s) = T1 (s) for all s, Re( i (TT Ao T)) < 0 y if and
only if Ao is Hurwitz. In general, an eigenvalue analysis of a linear time-varying
system will not be sucient to prove stability (Khalil 1996). We have to nd a
Lyapunov function candidate to conclude on that.
The idea is to analyze the error-dynamics in the vessel-xed coordinate system and
selecting a quadratic Lyapunov function candidate V = zT Pz where the P-matrix
also satises some structural constraints. The following lemma will be useful in
that respect (Lindegaard and Fossen 2001b).
such that
PĀ + ĀT P Q (4.47)
where Ā is the system matrix
· ¸
Ā11 Ā12
Ā = (4.48)
Ā21 Ā22
The structural constraints on P imply that the last term is zero and thus UGES
is proven.
Even though this lemma indeed provides sucient conditions for the elimination
of the kinematics term and the dependence on the varying signal y , we still have
to deal with the time-varying signal y . Physically y describes the yaw rate
of the vessel, and intuitively this quantity will be bounded even when exposed
to incoming waves provided that the applied control is appropriate. Therefore,
if a set of simultaneous Lyapunov inequalities are satised at the minimum and
maximum of y , the error dynamics (4.36) will be ULES. This is summarized in
the following theorem.
4.3 Observer With Consistent Wave Model 49
Theorem 4.1 Consider the observer (4.3)-(4.34) and let the Earth-xed ob-
server gains be selected according to Assumption A5. Assume that:
and an > 0 such that for = mint ( y ) and ¯ = maxt ( y ) the simultaneous
Lyapunov inequalities are satised
Remark 4.1 For congurations where only position and/or velocity feedback are
used, A1 = 0 and the assumption of y being bounded is removed. The problem is
thus reduced to nding a suitable P = PT > 0 such that PA0 + AT0 P I. In
those cases, the observer is UGES.
1. The tuning procedure is much more complicated when velocity and/or accel-
eration measurements are included compared to the pole placement strategy
used for position measurements. This is due to the fact that in the general
case the observer gains enter non-anely in the expressions describing the
eigenvalue of the observer error-dynamics. One solution is to solve an alge-
braic Riccati equation (Kalman gains or H -ltering techniques) either a
priori or on-line, but having complete control of the notch-eects is almost
impossible. As a consequence, it is very likely that the time spent tuning
the DP system during sea-trials will increase.
2. A common wave model for all state derivatives could be fatal for the stability
of the combined wave motion model if the individual measurements are out
of synchronization with respect to each other. This occurs e.g. if the time-
delays from the sensor system components are dierent.
Here we propose a model based observer where the wave models for position,
velocity, and acceleration measurements are considered separately. The main idea
is that wave induced acceleration is “uncorrelated” with the induced velocity, an
assumption that is motivated more from engineering experience rather than from
physics. Global exponential stability of the error dynamics may still be guaranteed
using a structured P matrix. Still, we chose to trade global results in order to relax
Assumption A2a and the need of a positive denite Tb . With a bounded yaw rate
the stability results will be valid only in a semi-global sense.
4.4 Simplied Observer 51
where the order of each wave model number is arbitrary, but it is recommended
to keep the order fairly low. Second or fourth order linear models are sucient.
Let mp , mv , ma denote the order of the position, velocity and acceleration wave
models respectively. Then pw R3mp ,vw Rny2 ·mv , aw Rny3 ·ma describe
the rst order wave-induced positions, velocities and accelerations respectively.
Apw R3mp ×3mp , Avw Rny2 ·mv ×ny2 ·mv , Aaw Rny3 ·ma ×ny3 ·ma are assumed
Hurwitz and describes the rst order wave induced motion. The wave and bias
models are driven by disturbances of appropriate dimensions.
In order to make use of the commutation properties, we have to assume
A2b The bias time constant matrix Tb and each 3 × 3 sub-block of Apw satisfy
Property 4.1.
Now, collect all the Earth-xed states in x1 R6+3mp and stack the body-xed
ones into x2 R3+ny2 ·mv +ny3 ·ma
£ T ¤T
x1 = pw T bT (4.64)
£ T ¤
T T
x2 = vw aw
T
(4.65)
Let n denote the dimension of x = [xT1 , xT2 ]T and dene the block diagonal trans-
formation matrix T : R Rn×n
x = TT ( y )AT( y )x + B + Ew (4.67)
where the parameters A have been separated from the rotation R( y ). The model
parameters in (4.67) are
Apw 0 0 0 0 0
0 0 0 0 0 I
0 0 T1 0 0 0
A= b (4.68)
0 0 0 Avw 0 0
0 0 0 0 Aaw 0
0 M1 G M1 0 0 M1 D
52 Observer Design
0 Epw 0 0 0
0 0 0 0 0
0 0 Eb 0 0
B= , E= (4.69)
0 0 0 Evw 0
0 0 0 0 Eaw
M1 0 0 0 0
Measurements
Position and heading measurements are always required, and the number of ve-
locity and acceleration measurements available are denoted 0 ny2 3 and
0 ny3 3, respectively. Let y1 R3 , y2 Rny2 and y3 Rny3 describe the
position, velocity and acceleration measurement vectors. We dene the measure-
ments as
y1 = + Cpw pw (4.70)
y2 = 2 + Cvw vw (4.71)
y3 = 3 + Caw aw (4.72)
where, 2 and 3 are projections isolating the components of the LF-model that
are actually measured. Written compactly,
y = Cy ( y )x + Dy (4.73)
where
Cpw I
Cy ( y) = 2 Cv RT ( y) 0
0 3 M1 GRT ( y)
0 0 0 0
0 2 Cvw 0
3 M1 RT ( y ) 3 M1 D 0 Caw
£ ¤T
Dy = 0 0 MT T3 (4.74)
Physically, however, it should be pointed out that the LF linear accelerations that
are being measured is not as claimed in (4.72) since
¨ 6= when the Earth-xed
frame is considered as being the inertial frame. More specically, considering the
LF dynamics
y3,LF = ¨ = y SR( y ) + R( y ) (4.75)
which means that (4.72) is approximately correct for small angular rates. For large
angular rates, however, an auxiliary pre-processor should be used to compensate
for the Coriolis eect y SR( y ). The need for an external processing unit will
in fact always be there as discussed Section 3.3.
4.4 Simplied Observer 53
ŷ = Cy ( y )x̂ + Dy (4.78)
and hence when the estimation error is x̃ = xx̂, the output error is ỹ = Cy ( y )x̃.
A3b Each and every 3 × 3 block of K11 , K21 and K31 commute with the rotation
R( y ) (Property 4.1).
Stability Analysis
When Assumption A2b and A3b are satised, the rotations can be separated
from the parameters. The observer error-dynamics can hence be rewritten on the
compact form
Figure 4.1: Observer with rst order cut-o lter for acceleration. Bias estimation
is not shown.
Apw K11 Cpw K11 0
A11 = K21 Cpw K21 0 (4.84)
1
K31 Cpw K31 Tb
0 0 0
A12 = 0 0 I (4.85)
0 0 0
0 0 0
A21 = 0 0 0 (4.86)
K61 Cpw M G K61 M1
1
Avw K42 Cvw 0 K42 2
A22 = 0 Aaw K53 Caw K53 3 (4.87)
K62 Cvw 0 M1 D K62 2
£ ¤
C3 = 0 3 M1 G 3 M1 3 M1 D 0 Caw (4.88)
We now state a robustness-like theorem for the stability of this lter. The limiting
factor is the yaw rate y = ry , and we could just as well repeat using a P-matrix of
4.4 Simplied Observer 55
4 d ¡ ¢
z =
T Tz ( y) = y Sz Tz ( y) = y Tz ( y )Sz (4.91)
dt
In our case Sz = Diag(ST , ..., ST , 0nz 12xnz 12 ) where S is given by (4.2).
Theorem 4.2 The observer error dynamics (4.89) is exponentially stable for small
|ry (t)| < rmax (ULES) if and only if Az is Hurwitz. Suppose an rmax > 0 is explic-
itly given, then (4.89) is uniformly globally exponentially stable (UGES) if there
exists a matrix P = PT > 0 such that the following two LMIs are feasible for some
>0 ¡ ¢
PAz + ATz P + I rmax ¡PSz + STz P¢
(4.92)
PAz + ATz P + I rmax PSz + STz P
Notice that stability can be characterized without dealing with the rotations
Tz ( y ). However, there is a bound on the rotation rate rmax making the observer
USGES due to observability.
Proof. Use the non-singular rotation Tz ( y) as a mapping = Tz z. Then,
z z + Tz z
= T
= y Sz Tz z + Tz TTz Az Tz z
³ ´
= Az + y Sz (4.93)
Since V is linear in y for xed P and it is also convex and it suces to verify
that V < 0 at the boundaries of y , namely ±rmax since rmax y rmax by
assumption. We therefore have to make sure that
¯
¯
V 1 = V ¯ <0 (4.95)
=rmax
¯ y
¯
V 2 = V ¯ <0 (4.96)
y =rmax
V k I (4.97)
56 Observer Design
For small enough rmax , there will always exist an > 0 if and only if Az is
Hurwitz.
This result could also be proven by the circle criterion, but the maximum allowable
rmax is likely to be smaller due to the required SPR-property.
Notice that stability can be proven also for the limiting case T1
b = 0. The
passive design (Fossen and Strand 1999) and our previous version (Lindegaard
and Fossen 2001a), on the other hand, require T1
b > 0.
In this section we suggest models for the rst order wave loads and then we suggest
tuning rules that based on those models generate the desired frequency response
between the measurements and the LF estimates.
For position, velocity, and acceleration measurements, i = p, v, a, a cascade of
second order linear systems
· ¸
0 I £ ¤
Aiw = , Ciw = 0 I (4.98)
i i
can be used to represent the wave induced motion whereby we obtain the desired
wave ltering capability. Treat each DOF separated from the others by setting
where i,k > 0 is the resonance frequency and i,k > 0 is the relative damping
factor which determines the width of the spectrum.
Depending on the number pi = mi /2, where i = p, v, a of second order models
in cascade, the desired transfer function between any measurement and the LF
estimate is
³ ´pi
s2 + 2 i,k i,k s + 2i,k
hdi (s) = c,k ³ ´pi i = p, v, a (4.101)
s2 + 2 i,k i,k i,k s + 2i,k ( c,k + s)
which is a notch-lter, with center frequency at i,k , the wave model resonance,
and notch “width” given by i,k 1, in series with a low-pass lter that guarantees
a certain roll-o for frequencies larger than c,k . In order to achieve good perfor-
mance, the roll-o frequency c,k should be larger than the resonance frequency
of the notch-lter, that is c,k i,k .
tuning rules from Fossen and Strand (1999) apply. However, due to the increasing
power of the wave frequency components in the velocity and acceleration signal,
we suggest using a fourth order wave model, at least for acceleration, in order to
achieve satisfactory wave ltering capabilities. We were in fact unable to get good
results for acceleration using second order models. Below, we therefore present
the extension of Fossen and Strand (1999) to fourth order models.
Consider the surge dynamics being updated from position measurements. We aim
to nd the elements to put in K11 and K31 in order to create the desired notch
and roll-o hdi (s) in (4.101)
ˆi
(s) = hdi (s) (4.102)
y1,i
This can be obtained one degree of freedom at the time by dening p,i = 2p,i > 0
and p,i = 2 p,i p,i > 0 and letting
0 1 0 0
p,i p,i 0 1
Apw,i = (4.103)
0 0 0 1
0 0 p,i p,i
£ ¤
C̄pw,i = 1 0 0 0 (4.104)
k11,i = L1
i ci (4.105)
k31,i = c,i (4.106)
where
1 0 0 0
2 p,i 1 0 0
Li = (4.107)
p,i + 2p,i p,i 0 1
p,i 1 1 0
¡ 2 ¢p,i ( p,i 1)
2 2
p,i p,i 1 + 2 p,i ( ¡p,i 1) ¢ c,i
ci = (4.108)
p,i p,i ( p,i 1) + 2p,i 2p,i 1 c,i
2 p,i ( p,i 1) c,i
ensures that the specied notch-eect and roll-o is indeed acquired. The gains
K31 and K61 , the gains from position innovation which update the bias and LF
velocity, can be selected freely as long as Az remains Hurwitz.
The very same approach can be applied to assign values to K42 , K62 in order to
obtain a notch-eect for the velocity measurements.
Acceleration Gains
The acceleration part of the lter possesses another feature as well. Measuring the
acceleration could be regarded as an alternative to using a model based observer
58 Observer Design
because the model actually estimates the acceleration while an accelerometer mea-
sures it. The gain Kf serves as a weight factor determining how much emphasis
we should put on the model. When Kf = 0 we choose not to utilize acceleration
feedback to update the lter at all and when Kf = 1, the LF model description is
completely disregarded for low frequencies.
The low-pass lter between acceleration innovation ỹ3 and ˆ takes care of the
roll-o. The lter constants Tf should therefore be selected as
T1
f = diag( c,1 , ..., c,ny3 ) (4.109)
Next, to obtain the desired notch-ltering around the resonance frequency, select
· ¸
0
K53 = (4.110)
diag( a,1 , ..., a,ny3 )
4.4.4 Experiments
The experiment was carried out with “Cybership II”, and the dynamic compen-
sator scheme presented in Chapter 2 was implemented.
Based on the principle of certainty of equivalence, an observer-feedback PID-like
tracking controller on the form
=
ˆ d (4.111)
= Ki RT ( ˆ ) Kp RT ( ˆ ) (ˆ
d )
d)
Kd (ˆ (4.112)
was used to keep the boat on the position d = [0.3, 0, 0]T , d = 0. The controller
and the thrust allocation algorithm is described and analyzed in Lindegaard and
Fossen (2003).
From t 20 seconds and onwards, the model ship was exposed to JONSWAP-
distributed irregular head waves. The peak period and signicant wave height
were set to Ts = 0.75 and H1/3 = 0.02 meters respectively.
Time series plots of the measured positions (dotted) and their respective LF esti-
mates are reproduced in Figure 4.2 together with the observer’s surge bias estimate.
Notice that the surge bias converges towards the controller’s I-term, that is the
mean of applied surge propeller force 1 . A large wave slammed into the vessel at
t 115 generating a temporary drift o in East and heading because the vessel
had a small oset angle at the time of the impact. The slow oscillations are due
to nonlinear wave eects and not to the rst order induced motion. Figure 4.3
shows g-compensated measurements of the surge and sway accelerations. Here,
the wave frequency motion (rst order wave loads) dominate the picture. But as
the empirical transfer functions (Figure 4.4) of the measured signals and the state
derivatives show, for low frequencies the estimated LF-accelerations are excellent,
because they follow the measured signals at frequencies below f = 0.1 Hz. As
required, frequency components around the wave frequency peak f = 1/Ts = 1.33
Hz have been successfully attenuated.
4.4 Simplied Observer 59
-0.26
0.04
-0.28
-0.3 0.02
[m]
[m]
-0.32 0
-0.34
-0.02
-0.36
-0.38 -0.04
0 50 100 150 0 50 100 150
Time [s] Time [s]
Heading ψ Surge/North bias and -mean( τ )
y 1
6 0.05
4
0
Force [N]
2
[deg]
-0.05
0
-0.1
-2
-4 -0.15
0 50 100 150 0 50 100 150
Time [s] Time [s]
Figure 4.2: Top left, measured (dotted) and LF estimated North position. Top
right, measured (dotted) and LF estimated East position. Bottom left, measured
(dotted) and LF estimated heading. Bottom right, estimated bias and mean of
applied thrust thrust 1 .
A simple model based state estimator for surface vessels with wave ltering capa-
bilities has been proposed and analyzed along with an intuitive tuning procedure.
For bounded yaw rate, the observer error dynamics was shown to be exponentially
stable. Inertial measurements, that is linear accelerations and yaw rate, were in-
cluded in the lter to improve performance. Due to the acceleration measurement
ambiguity, a g-compensation system had to be utilized in order to remove gravity
components from the linear acceleration terms.
Experimental results with a model ship performing a DP operation as it was
exposed to incoming irregular waves illustrated the performance of the lter. Em-
pirically calculated frequency responses between available measurements and esti-
mated low frequency positions, velocities and accelerations documented that the
desired notch ltering of rst order wave induced motion was achieved.
60 Observer Design
Surge accelerations
0.75
0.5
0.25
[m/s ]
2
-0.25
-0.5
-0.75
0 20 40 60 80 100 120 140
Time [s]
Sway accelerations
0.15
0.1
0.05
[m/s ]
2
-0.05
-0.1
-0.15
0 20 40 60 80 100 120 140
Time [s]
-40 -40
Gain [dB]
Gain [dB]
-80 -80
-120 -120
-2 -1 0 1 -2 -1 0 1
10 10 10 10 10 10 10 10
Freq. [Hz] Freq. [Hz]
-40 -40
Gain [dB]
Gain [dB]
-80 -80
-120 -120
-2 -1 0 1 -2 -1 0 1
10 10 10 10 10 10 10 10
Freq. [Hz] Freq. [Hz]
Figure 4.4: Top left, TF from measured North (solid) and East (dotted) position
to their respective LF estimates. Top right, TF from measured heading (solid) and
yaw rate (dotted) to LF estimates. Bottom left, TF from measured surge (solid)
and sway (acceleration) to LF estimates. Bottom left, TF from North position to
surge velocity (solid) and from East to sway (dotted).
62 Observer Design
Chapter 5
Controller Design
5.1 Introduction
Problems of motion control can be classied into three groups (Encarnação and
Pascoal 2001):
Lefeber (2001); the desired heading was dened as a function of the cross-track
error. A more exible alternative is the introduction of a Serret-Frenet frame to
represent the cross-track and heading error (Encarnação et al. 2000, Encarnação
and Pascoal 2000, Skjetne and Fossen 2001). The advantage is that the path can
be regarded as a more general smooth curve in the plane rather than consist of
straight lines.
Underactuated trajectory tracking and stabilization has received a lot of attention,
see Do et al. (2002) and references therein. A natural consequence of the ship being
underactuated is that geometric restrictions apply on the reference trajectory.
More specically, the desired yaw velocity must be persistently excitative.
A method combining trajectory tracking and path following was proposed in Hind-
man and Hauser (1996). Suppose a desired path d : R0 Rn is given and that
it is a continuous function of the path variable 0. The basic idea is to determine
by projecting the current state of the vehicle onto the reference trajectory. This
returns the appropriate trajectory “time” given the current state of the system.
Under some geometrical path conditions, it is shown that feeding d () instead
of d (t) into an already existing tracking controller guarantees convergence to the
path. This procedure, however, requires a path specication for the full state, and
it is applicable to feedback linearizable systems. An output maneuvering extension
to Hindman and Hauser (1996) was proposed in Encarnação and Pascoal (2001).
By employing backstepping (Krstić et al. 1995), the need for time derivatives of
d , the full path specication, was relaxed. This approach is well suited for me-
chanical systems such as ships, but it is less tted for systems of relative degree
higher than two due to the need of higher order derivatives of the path variable .
Recently, Skjetne et al. (2003) proposed a more general robust maneuvering design
for systems on strict feedback form which tackles the relative degree restriction.
Trajectory tracking is geometrically speaking relatively simple compared to path
following, and the above described methods unifying tracking and path following
promise increased exibility of the controllers derived in this chapter. We extend
existing DP designs (Strand 1999, Berge 1999) and provide ideas and suggestions
to improve and facilitate the design and implementation of observer feedback po-
sitioning control systems. Ships suited for traditional dynamic positioning opera-
tions are usually overactuated. This means that the desired thrust can almost
always be satised. In fact, due to propeller rate and thrust magnitude constraints,
there are indeed practical limits, but it is assumed that these issues can be disre-
garded or at least addressed elsewhere. The control laws will be derived assuming
full state feedback. Later substituting the state variables with their respective low
frequency estimates, the so called principle of certainty of equivalence, we show
that the combination of an observer and controller stabilizes the entire closed loop
system. Results from the study of nonlinear cascaded systems will be used in the
analysis.
These are the main objectives of this chapter:
1. Derive a simple yet exible framework for low speed trajectory tracking
of fully actuated surface vessels. First, a method separating the nonlinear
5.2 Trajectory Generation 65
Figure 5.1: Denition of the Earth-xed position of center of rotation rnnr and its
relation to the position of the vessel rnnb .
rnb
d n
= d rnnr R̄( b
d )rbr (5.1)
Frequently, it is dersirable to let the vessel rotate about some other point than
CG. For instance when deploying a device on the sea bed using a crane, the ship
should rotate about the crane head rather than CG. Consider Figure 5.2 where
a 180 deg change of heading instructs the DP controller to move the vessel on a
circular arc while turning rather than revolving about the center of the b-frame.
Figure 5.2: Change of heading 180 deg about the COR: The ship is moved from
rnnb (t0 ) towards rnnb (tf ) while turning.
The Earth-xed velocity and acceleration of the COR are denoted dr (t) = [(d r nnr (t))T , rd (t)]T
and
¨dr (t) = [(d r̈nnr (t))T , rd (t)]T respectively. Desired velocity and acceleration of
5.3 Commutating Control 67
+ rd2 R̄(
b
= r̈nr
d n
rd R̄( d )S̄rbr
b
d )rbr (5.4)
Here · ¸
0 1
S̄ = (5.5)
1 0
The desired speed and acceleration along the trajectory should not exceed neither
the physical nor the imposed limitations of the ship. Considering these limita-
tions in an Earth-xed setting is dicult, but the control will be regained when
expressing the trajectory in a reference parallell frame, the d-frame: When the
vessel tracks the desired trajectory perfectly, the velocities in the d-frame will be
exactly those of the vessel itself (b-frame). The desired velocity is
4
vnb
d d
= R̄T ( d) r nb
d n
b (5.6)
= R̄T ( d) r nr
d n
rd S̄rbr
The translation and rotation of the d-frame can thus be regarded as a virtual ship,
yet the motion does not need to be that of a numerical ship model.
To summarize, suppose the COR is located at rbbr = [xbbr , ybr b
, 0]T , and once a
smooth, Earth-xed reference trajectory for the COR is given, dr : R0 R3 ,
dr : R0 R3 , and
¨ dr : R0 R3 , the desired trajectory for the orgin of the
vessel will be given by
d = dr R( d )rbbr (5.8)
d = RT ( d ) dr rd Srbbr (5.9)
d = RT ( d )¨
dr rd RT ( d )S
dr rd Srbbr (5.10)
and still the adjustments made during a short sea trial have to perform well in
weather conditions ranging from calm sea to the more extreme. During the limited
time available personnel with limited theoretic background make decisions inu-
encing the vessel’s positioning performance for many years to come. Computer
simulations do provide an acceptable initial tuning, but some modications are
almost always needed. If a controller gain adjustment does result in a predictable
behavior of the vessel, it is likely that the engineer is condent that the tuning
is acceptable, the overall procedure takes less time, and the customer eventually
gets satised.
Here we elaborate on nonlinear PID-like tracking controllers simply because such
controllers are readily interpreted and analyzed. Low speed vessel tracking and
positioning control can be accomplished with relatively simple means, such as
PID-control, and in a critical situation where understanding of physics is needed
experimenting with other approaches may not be advisable. The price we pay
for concentrating on such straightforward controllers is that stability can only be
guaranteed for bounded yaw rates. However, the resulting upper bound rmax for
a well-behaving controller usually exceeds the physical limitations for the ship.
A denite advantage is that we can incorporate static or dynamic feedback from
acceleration directly within the derived framework. The derived controllers are
linear in the sense that their respective terms are bounded linearly in the error
variables. They are nonlinear in the sense that the kinematics is included.
The motivation for studying PID or even PD in detail is to show how dierent
linear design techniques can be applied in DP control. Similarly to the observer
design, it is possible to separate the kinematics from the design procedure and
later include these rotations again when implementing the controller. Finding the
controller’s gains themselves is a task which may be performed without considering
the kinematics at all.
The objective is to track a given smooth trajectory (d (t), d (t), d (t)). Let the
position error e be given in the Earth-xed n-frame and the velocity and accel-
eration error in the b-frame, that is
e = d (5.11)
e = RT ( e ) d (5.12)
e = e ST RT ( e ) d RT ( e )
d (5.13)
e = d
e =
e =
5.3 Commutating Control 69
= R( ) (5.14)
M + DL = + RT ( )w (5.15)
= e (5.16)
= Ki RT ( ) Kp RT ( ) e Kd e + r (5.17)
where e = d . Notice that the rst three terms form the PID feedback
control while the latter term r is the reference feed-forward given by
³ ´
r = DL RT ( e ) d + M e ST RT ( e ) d + RT ( e ) d (5.18)
Also note that the gains Ki and Kp have been put to the left of RT ( ) making
them body-xed gains. This makes more sense to an operator than having them on
the right of RT ( ) (Loría et al. 2000) because the compass heading (t) should not
inuence the convergence rates. The drawback of doing this is that energy-based
stability proofs can no longer be applied directly.
By inserting into (5.15) we get
³ ´
M e ST RT ( e ) d + RT ( e ) d =Ki RT ( )Kp RT ( ) e (Kd + DL ) e
Due to the pair (B, A) being controllable, we have complete control over the
eigenvalues of Ac by assigning appropriate gains Kp , Ki , and Kd . Similarly to
70 Controller Design
the observer design, the eigenvalues of TT ( )Ac T( ) are constant for all and
equal to the ones of Ac because TT ( ) = T1 ( ). The applied control is using
these denitions written as
Proof. The necessity of Ac being Hurwitz is well known. For proving suciency,
) we hereby mean d (T( )). Then,
dene z = T( )xe . By T( dt
V = z T Pz + zT Pz
¡ ¡ ¢¢
= zT ATc P + PAc + r PST + STT P z
2
zT Qz + 2rmax max (P) |z|
2
= ( min (Q) 2rmax max (P)) |xe | (5.27)
Corollary 5.1 For a given Ac , a yaw rate bound rmax > 0 that guarantees expo-
nential stability of (5.20) can be found be solving the following generalized eigen-
value problem in the decision variables P and
minimize
P = PT > 0, >0 ¡ ¢ (5.28)
subject to PST + STT P < ¡ATc P + PAc ¢
PST STT P < ATc P + PAc
where rmax = 1/ .
Yet another feature of the LMIs given by Corollary 5.1 is that it may be combined
by LMI based control synthesis methods in order to provide state-feedback con-
trollers rendering the closed loop globally exponentially stable for any specied
rmax . This section briey explores how LMI synthesis provides a state feedback
K resulting in a globally exponentially stable closed loop dynamics for any given
rmax .
First, we briey summarize three common and widely applicable kinds of LMI
control strategies that may be used separately or in combination, those being H ,
H2 , and pole-clustering. When applied together, we say that the resulting control
is multiobjective. Using the more general description of a linear plant
x = Ax + Bu + Ew
H z = C x + Dw w + Du u (5.29)
z2 = C2 x + D2u u
where z Rn and z2 Rn2 are the outputs used in the H and H2 cost
criteria, respectively. Let A Rn×n and B Rn×m be the nominal model,
and without any further discussion on model scaling, we assume that E Rn×p ,
C Rn ×n , Dw Rn ×p , Du Rn ×m , C2 Rn2 ×n , and D2u Rn ×m
are properly scaled. The control objective is to compute a state-feedback controller
u = Kx (5.30)
72 Controller Design
that fullls certain specications on the closed-loop behavior. These closed loop
design criteria can be cast as convex optimization problems satisfying certain LMIs.
The following summary is taken from a variety of sources (Boyd et al. 1994, Chilali
and Gahinet 1996, Scherer et al. 1997).
H -Control
Let Hwz (s) denote the closed loop realization between w and z . Minimization
of the H -gain from w to z can be cast as an LMI optimization problem in
the matrix variables X Rn×n and Y Rm×n (with X = XT > 0) and Y
while minimizing > 0 in the following LMI
AX + X AT + BY + YT BT E X CT + YT DTu
ET 2 I DTw < 0 (5.31)
C X + Du Y Dw I
This inequality is known as the bounded real lemma. Provided that (5.31) is
feasible, it is guaranteed that the H gain is below , that is kHwz (s)k < ,
when applying the state-feedback matrix
K = YX1
(5.32)
A prerequisite for this method to complete successfully is that the pair (A, B)
is controllable and (A, C ) is observable. This means that for the augmented
integral control to work, the augmented state must be reected in the output
matrix C . The H performance is convenient to enforce robustness to model
uncertainty, and it is a direct measure for the L2 gain from disturbance w L2 to
the respective output z L2 .
H2 -Control
Let Hwz2 (s) denote the closed loop realization between w and z2 . Then, kHwz2 (s)k2 <
if there exist X2 = XT2 < 0, Y Rm×n , and Z Rn×n2 such that the following
LMIs are feasible
· ¸
AX2 + X2 AT + BY + YT BT E
<0
ET · I ¸
X2 X2 C2 T
(5.33)
<0
C2 X2 Z
Trace(Z) < 2
Consequently, the state-feedback u = Kx, where K is dened similarly to (5.32)
as K = YX1 2 , guarantees that the H2 -gain from w to z is below .
Pole Clustering
Assigning closed loop poles of a linear system can be seen as a tool for specifying a
minimum decay rate. This technique may also be used to ensure a minimum closed
5.3 Commutating Control 73
loop damping factor or a maximum bandwidth in order to avoid fast dynamics and
high frequency gain in the controller.
In order to describe convex regions in the complex plane in which the poles are
supposed to be put, we follow the denitions of Chilali and Gahinet (1996):
Denition 5.1 A subset D of the complex plane C is called an LMI region if there
exist a symmetric matrix RnD ×nD and a matrix RnD ×nD such that
D = {z C : FD < 0} (5.34)
with
FD (z) = + z + z̄ T < 0 (5.35)
where z̄ is the complex conjugate of z.
An LMI region is convex and symmetric about the real axis. Furthermore, LMI
regions are invariant under set intersection: The intersection of two LMI regions
D1 and D2 is also an LMI region with the characteristic function
FD1 D2 (z) = Diag(FD1 (z), FD2 (z)) (5.36)
As a consequence, an arbitrary region consisting of the intersection of conic curves,
vertical strips, and/or horizontal strips can be expressed in terms of LMI regions.
We may now summarize this for control synthesis purposes by the following theo-
rem (Chilali and Gahinet 1996):
Theorem 5.2 Let RnD ×nD be a real symmetric matrix and RnD ×nD .
Then Acl = A BK has all its eigenvalues in the LMI region (5.35) if and only
if a real, symmetric, positive denite X Rn×n and a real Y Rm×n exist such
that the LMI
X + V + T VT < 0 (5.37)
where is the Kronecker product and
V = AX + BY (5.38)
K = YX1 (5.39)
is feasible.
Observe that this is a generalization of Lyapunov stability for linear systems, that
is the eigenvalues of Ac having negative real part (Hurwitz), because the left half
complex plane is described by = 0 and = 1. Then, Theorem 5.2 simply states
that
Ac X + XATc < 0 (5.40)
For more examples of various LMI regions and how to construct them, please refer
to Chilali and Gahinet (1996).
74 Controller Design
Let us now recast the results from Corollary 5.1 into a set of LMIs that can be
included with other LMIs in a state feedback synthesis procedure. For the sake of
clarity, this result is formulated as a Theorem.
is feasible, then the state feedback gain K = YX1 guarantees uniform (global)
exponential stability of xe .
First, let us consider the velocity and acceleration dynamics. Suppose that mea-
sured acceleration ya Rnya where 1 nya 3 is given in the b-frame and let
5.4 Acceleration Feedback 75
Next, we want to nd a PID-like control law PID for the system (5.46). As in
Section 5.3 integral action is obtained by integrating the position deviation and
assign gains Ki R3×3 , Kp R3×3 , Kd R3×3 . Applying the very same PID-
controller as in (5.16)-(5.17), that is
= e
(5.47)
PID = Ki RT ( ) Kp RT ( ) e Kd e + r
x e = Axe + Bu (5.55)
where
0 I 0 0
A= 0 0 I , B= 0 (5.56)
1
0 0 Ma D M1
a
the closed loop dynamics can be written as, remember that R3 is the position
vector, Z t
¨ + 2 + 2 + K̄i
(s)ds = w (5.58)
0
which we recognize as a second order dynamic system with integral action.
2 = M1
a (D + Kd ) (5.59)
2 = M1
a Kp (5.60)
K̄i = M1
a Ki (5.61)
5.4 Acceleration Feedback 77
If K̄i = 0 the matrices , R3×3 determine the natural frequency and rela-
tive damping respectively. In this study we de-coupled the individual degrees of
freedom by the following selection of gains
= diag(1 , 2 , 3 ) (5.62)
= diag( 1 , 2 , 3 ) (5.63)
K̄i = diag(ki1 , ki2 , ki3 ) (5.64)
This section discusses the extension of the state-feedback controller (5.44), (5.47)
to output-feedback by using an observer with wave ltering capabilities. Global
asymptotic stability of the complete system is established using Theorem A.2.
This analysis is valid for any commutating design following the algorithm outlined
in Section 5.3. For a more specic treatment of a simpler PID-controller please
see Lindegaard and Fossen (2003).
Observer review
x̃o = xo [ T , T , T ]T (5.66)
Observer-Feedback Control
ˆe =
ˆ d (5.68)
ˆe ˆ R ( ˆ e ) d
= T
(5.69)
³ ´
ˆ
e = ˆ
r̂e ST RT ( ˆ e ) d + RT ( ˆ e ) d
³ ´
= ˆ
(r̂ rd ) ST RT ( ˆ d ) d + RT ( ˆ d )
d (5.70)
=
ˆe
a f = Af af + Bf ˆ e (5.71)
ˆ = Ki RT ( ˆ ) Kp RT ( ˆ )ˆ
e Kd
ˆ e Ka af + ˆ r
Theorem 5.4 Consider the system (5.4)-(5.5) for which there exists an ob-
server whose errors x̃o (t) converge asymptotically to zero (5.67). The observer-
feedback control (5.7)-(5.72) will guarantee UGAS of xe = [T , Te , Te , aTf ]T pro-
vided that
2. Maximum yaw rate rmax calculated by Corollary 5. does not exceed the phys-
ical bound, |r(t)| rmax .
stability of the tracking error. A second objective is to show the similarities be-
tween controllers formulated in a reference parallel frame and our two-frame based
design. Using integrator backstepping (Krstić et al. 1995), we demonstrate that,
under some restrictions, reference parallel control (Strand 1999) is equal to body
xed control (Berge 1999). Furthermore, the derived tracking controller
• Implements “true” integral action in the sense that the position deviation
updates the controller’s integral action.
Consider a 3 DOF model with Coriolis C() = CT () and nonlinear damping
D() = DL + DN ()
= R( )
(5.73)
M = C() D() + + w
A smooth reference trajectory is assumed given in the reference parallel d-frame
according to (5.8)-(5.10).
two steps will be sucient. As a result, ”true” integral action, in the sense of it is
being updated by the position error alone, is achieved At the same time controller
complexity is reduced, at least when expressed in the z-variables, compared to a
three step method.
The objective is to follow the suciently smooth reference trajectory d , d , d :
R0 R3 where d = R( d ) d . Let the position error e be given in the d-frame
e = RT ( d ) ( d ) = RT ( d ) e (5.74)
such that
e = d SRT ( d ) e + RT ( d ) (R( ) R( d ) d )
= d Se + R( e ) e (5.75)
The matrix C11 R3×n is a projection used to isolate the components of e that
is subject to integral action. Rn ×n should be diagonal and contain the
inverse of some large time constants. The larger these constants are the closer we
get to true integral action in the sense that becomes an open integrator. For the
purpose of a simpler analysis we let be non-zero as this allows us to establish
exponential stability more easily.
£ ¤
Theorem 5.5 below conrms that the tracking error eT , Te where e =
RT ( e ) d is UGES. It also provides conditions on how the individual gain matri-
ces should be selected such that reference parallel (Strand 1999) control becomes
identical to body-xed control (Berge 1999).
Theorem 5.5 Assume that there exist symmetric and positive denite 1
Rn ×n , 2 R3×3 where 2 commutes with R( ) and C11 1 is selected such
that
R( )C11 1 = C11 1 CT11 R( )C11 (5.77)
Applying the controller
= + CT11 R( d )e
(5.78)
= Ki ()RT ( ) Kp (, )RT ( e )e Kd e + r
1 + T 1 > 0 (5.83)
2 C12 + CT12 2 > 0 (5.84)
D() + DT () + C2 + CT2 > 0 (5.85)
Considering now the low speed model (5.15) and C11 = I, the following gains
should be used
1 1 T
Ki (r) = (DL + C2 ) 1
2 1 M2 1 + rM2 S 1 (5.89)
1
Kp (r) = 2 + (DL + C2 ) C12 + M2 1 + rMC12 ST (5.90)
Kd = C2 + MC12 (5.91)
and the same reference feed-forward as for the commutating designs (5.18). From
(5.89)-(5.90) the missing yaw rate dependent terms needed for establishing UGES
are clearly visible. Since RT ( e )e = RT ( ) e and R( d )e = e , we immediately
recognize that (5.78) is the very same controller as (5.17) apart from that the gains
are selected according to a dierent strategy.
It is also worth emphasizing that the yaw rate dependendent gains, those are
M1 2 1 S and MC12 S in (5.89) and (5.90) respectively, can be kept small
T T
|r(t)| rmax , is indeed relaxed, but the price paid is signicant: The error in the
compass heading estimate ˜ in combination with the nonlinear terms of the pro-
portional and integral gains excludes employing the results on cascaded systems
in establishing asymptotic stability of the closed loop system. The interconnec-
tion term between the observer errors 2 and the tracking errors 1 is no longer
linearly bounded in the states of 1 .
In Aarset et al. (1998) the authors used observer backstepping to avoid using
˜ = 0, but this contradicts the separation principle in the sense that the resulting
controller tuning depends on the observer. Another approach is pursued for more
general Euler-Lagrange systems (Loría and Panteley 1999, Aamo et al. 2001) where
is assumed measured and available for feedback. Neglecting the linearly wave
induced motion and thus using y (the measured heading angle) in the derived
controller (5.78), this procedure would be globally asymptotically stable here as
well. In the following we are, however, going to analyze a certainty equivalence
design to point out the ˜ -dependency and then suppose ˜ = 0 to eliminate the
conicting terms.
Prerequisites
First we summarize some of the properties of the Coriolis and damping matrices
needed in the forthcoming analysis.
• The Coriolis and centripetal matrix is linear in its argument, that is for
a,b R3
C(a + b) = C(a) + C(b) (5.92)
As a consequence, it is bounded linearly in the argument as well: There exist
positive scalars cm ,cM > 0 such that
cm |a| kC(a)k cM |a| (5.93)
• The damping is linear plus quadratic throughout the entire velocity range
D() = DL + DN (). Then, for any a R3 there are bounds dm and dM
such that
dm |a| kDN (a)k dM |a| (5.94)
Assume furthermore that the error in DN dened as
Derr (a, b) = DN (a b) DN (a) (5.95)
is bounded linearly in b. More specically for some derr > 0 the following
holds
kDerr (a, b)k derr |b| (5.96)
Dene
then
) = N() + Nerr (,
N(ˆ ˜) (5.99)
From the assumptions above we see that
|Nerr (,
˜)| (derr + cM ) |˜
| (5.100)
Observe when disregarding Coriolis and quadratic damping that N() = DL and
thus Nerr (,
˜ ) = 0.
Observer-Feedback Control
ê = RT ( e
d )ˆ = e RT (
d )˜ (5.101)
= + R( d )ê
(5.102)
ˆ )RT ( ˆ ) Kp (ˆ
= Ki (ˆ )RT ( ˆ e )ê Kd
ˆe + ˆ r
1
Kp (ˆ
) = 2 + (N(ˆ ) + C2 ) C12 + M2 1 + r̂MC12 ST
(5.105)
Kd = C2 + MC12 (5.106)
Remark 2 Admittedly, by imposing bounds on the velocity vector and the es-
timated heading error ˜ it would be possible to establish asymptotic stability by a
completion of the squares in the derivative of the Lyapunov function derived under
state-feedback. This, however, contradicts the objective of obtaining UGAS under
observer feedback. Instead we settled for ˜ = 0 ( is perfectly measured).
Separating the linear control terms from the nonlinear ones can be done by intro-
ducing the following denitions:
1
Gi = C2 1
2 1 M2 1 (5.107)
Xi1 = C2 1
2 1 (5.108)
Xi2 = M12 1 S
T
(5.109)
Gp = 2 + C2 C12 + M1
2 1 (5.110)
Xp = MC12 ST (5.111)
) = Gi + N(ˆ
Ki (ˆ )Xi1 + r̂Xi2 (5.112)
Kp (ˆ
) = Gp + N(ˆ
)C12 + r̂Xp (5.113)
Kd = C2 + MC12 (5.114)
where the Gi R3×3 and Gp R3×3 are the constant (linear control) gains. The
terms requiring ˜ = 0 are the nonlinear factors of Ki (ˆ ) and Kp (ˆ
). It should
be noted that even though ˆ r indeed contains N(ˆ ), for this term alone it is not
necessary to assume ˜ = 0 because | d | is known to be bounded.