Académique Documents
Professionnel Documents
Culture Documents
Giovanni Indiveri,
giovanni.indiveri@unile.it
Describe the kinematics and dynamic models necessary to design motion control systems for
robotic marine vehicles.
ROMEO: Institute for Naval INFANTE and DELFIM: Dynamical Systems and Ocean Robotics Lab,
Instituto Superior Técnico - ISR, Lisbon, Portugal
Automation, CNR-IAN, Genova, Italy
Page 2
Summary
--------------------------------------------------------------------------
---------------------------------------------------------------------------
Page 3
Elementary vector operations
a , b , c R 31
a b aT b
a b S (a )b b a
0 a3 a2
S (a ) a 3 0 a1 ; S(a) -ST (a)
a a1 0
2
(a b )c [ca T ]b
c1a1 c1a2 c1a3 a (b c ) b (a c ) c (a b )
T
[ca ] c 2a1 c 2a 2 c 2a 3 ([bcT cbT ]) a
c a c a c a
3 1 3 2 3 3 (I 33 (a c ) [ca T ]) b
a (b c ) b (a c ) c (a b )
([ba T ] I 33 (a b )) c
Page 4
Kinematics of a rigid body
Page 5
Kinematics of a rigid body
ru ,c c u
d j
vi / j
dt
O
i Oj
do do d o
v p /o p o p c c o
dt dt dt
d c
p c ωc /o p c v c /o
dt
v p / c ωc / o rc , p v c / o
v c / o ωc / o rc , p
Page 6
Rotation matrixes and angualr velocity
ra ,p p a
da d b
ra , p ra ,p ωa / b ra ,p
dt dt
a
ra , p aRb bra , p : a
ra ,p bra , p
a 2 a T a a b 2
ra , p r a ,p ra , p Rb ra , p
b T a T a b b T b
r a ,p R b Rb a ,p r r a ,p ra , p
RT R I 33
a
ra , p aRb bra , p aRb bra , p
S (ω a / b ) aRb
Page 7
Dynamic equations
m ru ,c (ru ,p ) ru , p dV
V
1
T
2V (ru , p ) v p / o v p / o dV
Page 8
Dynamic equations
Leibnitz Theorem
f (x ) f (x )
d f g d
dx g (x )
F (x , z )dz
x
F (x ,f (x ))
x
F (x , g (x ))
g ( x ) dx
F (x , z )dz
Page 9
Dynamic equations
Newton ' s Law :
d 0
(ru , p )
dt
v p / o
dV
i
Fi
external
as
d 0 (ru ,p ) dru , p
(ru , p ) 0
dt ru , p dt
d 0 d d
v p /o ( p o ) 0 (u o ) 0 ( p u )
dt dt dt
d
v u / o 1 ( p u ) ω1/ 0 ( p u )
dt
d
v u / o 1 ru , p ω1 / 0 ru ,p vu / o ω1/ 0 ru , p
dt
d v p / o vu / o ω1/ 0 ru , p
because 1 ru , p 0 (rigid body)
dt
Page 10
Dynamic equations
Newton' s Law :
d0
u p dt p o
V
(r , ) v / dV i i
F external
v p /o vu /o ω1/ 0 ru ,p
d d
vu /o 0 (u o ) ; a p / o 0 v p /o we want to expressit in 1 :
dt dt
d d d
a p /o 0 v p /o 1 v p /o ω1/ 0 v p /o 1 ( vu /o ω1/ 0 ru ,p ) ω1/ 0 ( vu /o ω1/ 0 ru ,p )
dt dt dt
d d
1 vu /o 1 ω1/ 0 ru ,p ω1/ 0 vu /o ω1/ 0 (ω1/ 0 ru ,p )
dt dt
Page 11
Dynamic equations
Newton ' s Law :
u , p p /o
(r ) a dV i
F external
i
V
d 1 d 1
a p /o vu / o ω1/ 0 ru , p ω1/ 0 vu / o ω1 / 0 (ω1/ 0 ru , p )
dt dt
remembering that
m ru ,c (ru ,p ) ru , p dV
V
d 1 d1
m v u /o ω1 / 0 ru ,c ω1 / 0 vu /o ω1/ 0 (ω1 / 0 ru ,c ) Fi external
dt dt i
Page 12
Velocity and acceleration interpretation
p x
d 0 d <1>
vu / o (u o ) 0 ro ,u
dt dt
q
1
vu /o (u ,v ,w ) T
r
y
u surge
v sway z
<0>
w heave
1
ω1/ 0 (p , q , r )T 1
d1 du dv dw
T
p roll v u /o , ,
dt dt dt dt
q pitch 1 T
d1 dp dq dr
r yaw ω1 / o , ,
dt dt dt dt
Page 13
Torque equation
d 0
V u , p dt p /o u ,p
r v (r ) dV i u ,i
N external
Iu (ru , p ) I 33 (ru , p ru , p ) ru , p ruT,p dV inertia tensor
V
d 1 d 1
Iu ω1/ 0 ω1/ 0 Iu ω1/ 0 mru ,c vu /o ω1/ 0 v u / o Nuexternal
,i
dt dt i
Nuexternal
,i i - th externally applied torque with respect to u
Page 14
Summarizing
d 1
M ν C( ω1/ 0 ) ν τ ext Nonlinear dynamic equation
dt
T T external
τ ext
(Fi , N )
T
i Control + hydrodynamic + disturbance terms
i
Page 15
Summarizing (continued) X,Y,Z,K,M,N NOTAZIONE SNAME
m (u vr wq xG (q 2 r 2 ) yG (pq r ) z G ( pr q )) X
m (v wp ur y G ( p r ) zG (qr p ) x G (qp r )) Y
2 2
Page 16
Hydrodynamic interactions
T T external
τ ext
(Fi , N )
T
i τhydro τctrl τdist
i
hydro dp
τ τ τvisc τ rest
Inertial force U 2l 2 U 2
Froude Number : F 1/ 2
Gravitational force l g
3
gl
Inertial force U 2l 2 Ul
Reynolds Number : R
Viscous force Ul
[Kg/ms] viscous shear coefficient
v [m2/ s ] kinematic viscosity [0.8,1.8] 10 -6 m2/s for
fresh and salt water between 0 and 30 Celsius
Page 17
Hydrodynamic interactions
Ul
R 0.6, 1.210 6 (@ U 1m/s l 1m )
Equation of motion of an infinitesimal volume of Newtonian, incompressible ant time-constant
density fluid: the Navier Stokes Equation
u 1 1
(u )u p u F
2
t
Page 18
Added Mass Terms
d1
Fdp (M11 M12 ) ν ω1/ 0 (M11 M12 ) ν
dt
d 1
Ndp (M21 M22 ) ν ω1/ 0 (M21 M22 )ν vu / o (M11 M12 ) ν
dt
T
τ dp F , N
dp
T T
dp R 61
d 1
τ dp MA ν CA ( ν) ν :
dt
M11 M12 S (ω1/ 0 ) 033 M11 M12
MA ; C A ( ν)
M21 M22 S ( v u / o ) S (ω1/ 0 ) M21 M22
Page 19
Added Mass Properties
Page 20
Added Mass properties
M11 M12
MA 0 and depends on and the body shape only
M21 M22
1
Tfluid νT MA ν
2
S (ω1/ 0 ) 0 33 M11 M12
C A (ν )
S ( vu / o ) S (ω1/ 0 ) M21 M22
ˆ 033 S (M11vu /o M12 ω1/ 0 )
C A (ν )
S (M11 vu / o M12ω1/ 0 ) S (M21vu /o M22ω1 / 0 )
Cˆ (ν ) CˆT ( ν )
A A
C A (ν ) ν CˆA ( ν ) ν
Page 21
Added mass computation
Refer to
• Guidance and Control of Ocean Vehicles, Thor I. Fossen, John Wiley & Sons, 1994
• Theoretical Hydromechanics, N. E. Kochin, I. A. Kibel, N. V. Roze, John Wiley & Sons, 1964
Page 22
Summarizing
Hydrodynamic
d 1
M ν C( ω1/ 0 ) ν τ dp τvisc τ rest τctrl τ dist X,Y,Z,K,..(notazione SNAME) sono
d
τ dp MA 1 ν C A ( ν ) ν
dt
d1
(M MA ) ν [C (ω1/ 0 ) C A ( ν )]ν τvisc τ rest τ ctrl τdist
dt
ν ( vTu / o , ωT1/ 0 )T R 61 0 inertial frame
<0> may have constant linear velocity with respect to an arbitrary inertial reference frame,
e.g. <0> may move with a constant irrotational ocean current.
Page 23
Current effects
d1
(M MA ) ν [C (ω1/ 0 ) C A ( ν )]ν τvisc τ rest τ ctrl τdist
dt
ν ( vTu / o , ωT1/ 0 )T R 61 0 inertial frame moving
with the fluid, i.e. assuming a constant linear current,
u surge x vel. w.r.t. the fluid
v sway y vel. w.r.t. the fluid
w heave z vel. w.r.t. the fluid
Page 24
Viscosity effetcs
Parallel
to the relative velocity of the body w.r.t the fluid
Normal
Page 25
Marine Hydrodynamics, J.N.Newman,
Viscous drag coefficient of a sphere The MIT Press, 1977
Page 26
Viscous drag coefficient (frictional term)
Page 27
Viscous drag of a ship‘s hull
Froude‘s hypothesis:
Wave resistance
Page 28
Viscous effects: the lift forces
• Hydrofoil (propellers, sails, rudders, control surfaces, wings, etc.)
• Vortex shedding (turbulence effect causing oscillations)
Hydrofoil effects
Marine Hydrodynamics, J.N.Newman,
The MIT Press, 1977 (NACA 63-412)
1
Flift U 2SC lift (R , ) : S hydrofoil area
2
Page 29
Lift coefficient (hydrofoil)
Page 30
Lift: Vortex shedding
Page 31
Restoring Forces
Weight and buoyancy
Summarizing:
Page 32
Control forces and torques
d1
(M MA ) ν [C (ω1/ 0 ) C A ( ν )]ν τvisc τ rest τ ctrl τdist
dt
A simple thruster model is usually used for control design purposes (see
Guidance and Control of Ocean Vehicles, Thor I. Fossen, John Wiley & Sons,
1994)
Page 33
Basic Thruster model
τthruster f (ν ,n )
D 4Kt (J 0 )n | n | : D , n propeller diameter and revolution rate
Va : Speed of the water through the thruster
Kt a bJ 0 : Thrust coefficien t
Va
J0 : Advance number
nD
Va u (1 w ) : w wake factor (0.1, 0.4)
Kt
n> 0, Va < 0
n> 0, Va > 0
n< 0, Va > 0 J0
n< 0, Va < 0
Page 34
Basic Thruster Model (continued)
For electrically driven thrusters, n can be related to the applied thruster voltage
by standard electrical motor models.
Page 35
Control surfaces and rudders
Horizzontal plane
y
a r2
x Lift force
b r X z
0
Drag force
τ rudder
0 nozzle
0 r
c
r rudder
a ,c 0
A vehicle equipped with a single stern rudder cannot, in general, turn „on the spot“.
Page 36
Disturbances
0m
Thermal and wind
generated currents
- Shallow water waves
-- Definition: Wave Length > 1/20 Water Depth -10m
-- Velocity is determined by water depth (d)
Page 37
Disturbance models
Deep water
underwater vehicles
Page 38
From Physical principles to Engineering modeling
Structure of the
Newton Laws
dynamic equations
Page 39
Engineering modeling approach
T
ν (u ,v ,w , p , q , r )
d 1
Rigid body eq. M ν C(ω1/ 0 ) ν τ
dt
Page 40
Hydrodynamic derivatives
ν (u ,v ,w , p , q , r )T ; τ (X,Y,Z,K,M,N )T ; X : R q 1 R
2X 2X 2X
...
uu uv u r
2X 2X 2X
X X X
Jacobian X 0T , ,...,
; Hessian T X 0 vu
vv
...
v r
u v r 0
2X X
2
u ... ...
r r r 0
Page 41
Hydrodynamic derivatives (continued)
X 1 2X
Xa ; Xab
a 0 2 a b 0
X Ns
e . g . Xu (Fdrag )x Xu u : Xu
u m
X u MA 11 11 add mass term
2D surface vessel ν (surge, sway, yaw )T :
Xu 0 0 u
drag
τ D (ν)ν 0 Yv Yr v ; Xu ,Yv , Nr 0
0 Nv Nr r
Page 42
Hydrodynamic derivatives (eg.)
ν (u ,v ,w , p , q , r )T
τ (X,Y,Z,K,M,N )T
underwater vehicles :
τ drag D ( ν ) ν
D ( ν ) diag (Xu ,Yv , Z w , K p , Mq , Nr ) linear drag
quadratic drag
Page 43
Hydrodynamic derivatives: normalization systems
3
m m L
2
u u U : U u 2 v 2 u 0
v v U
U
r r N s 1/m
L
2 2 L 1 2
Ns / m Xu Xu U L Xu UL
2 U L 2
Page 44
Hydrodynamic derivatives: normalization systems
Guidance and
Control of Ocean
Vehicles,
Thor I. Fossen,
John Wiley & Sons,
1994
Page 45
AUV motion equations : the INFANTE vehicle
References:
„Multi-Objective Optimization Theory with
Applications to the Integrated Design of
Controllers / Plants for Autonomous
Vehicles“,
Carlos J. F. Silvestre, Ph.D. Thesis,
Technical University of Lisbon, IST,
Portugal, June 2000.
Page 46
AUV motion equations : the INFANTE vehicle
T
δ ( d , b , s , r )
Page 47
AUV motion equations : the INFANTE vehicle
T d 1
ν (u ,v ,w , p , q , r ) ; M ν C(ω1/ 0 ) ν τ
dt
mu mvr mqw X ; roll neglected
mv mur Y ; Iy q M
mw mqu Z ; Irr N
Page 48
AUV motion equations : the INFANTE vehicle
Page 49
AUV motion equations : the INFANTE vehicle
ν (u ,v ,w , p , q , r )T (vehicle speed)
vcurrent (uc ,vc ,wc ,0, 0,0)T (irrotational fluid)
ν r (ur ,v r ,w r , p , q , r )T ν vcurrent (relative vehicle speed)
u
Vt ur2 v r2 w r2 w
(w +u )
2 2 ½
w r ur tan : angle of attack
wr wr wr
arctan arcsin arcsin
ur u 2 w 2 V 2 v 2
r r T r
vr
vr Vt sin β : β side - slip angle β arcsin
Vt
Page 50
AUV motion equations : the INFANTE vehicle kinematics
ur
λ ( , , )T Euler angles vr
| vr |
d wr VT
λ Q (λ ) ω1 / 0
dt
1 sin tan cos tan
Q (λ ) 0 cos sin
0 sin cos cos cos
Following „Nonlinear path following Control Systems for Autonomous Oceanic Vehicles“, Pedro
Encarnação (to be plubished in 2001 as PhD Thesis, University of Lisbon IST, Portugal)
assuming VT constant implies:
Page 51
AUV motion equations : the INFANTE vehicle
Page 52
INFANTE main hydrodynamic derivatives
x 10-5
Page 53
INFANTE: a stern dominant dynamics
Stern dynamic
r>0 pressure force
ur
vr
Y‘r r r>0
Residual sway u
wr force
Bow dynamic
pressure force
Page 54
The DELFIM Vehicle
T d 1
ν (u ,v , r ) ; M ν C(ω1/ 0 )ν τ
dt
mu mvr X ; roll neglected
mv mur Y ; pitch neglected
Irr N ; heave neglected
Xu
X VT 2
Xuu XuuuVT Xvv β 2
Tc
VT
2 r Force generated by the common
Y VT Yr Yv mode of the stern thrusters
VT
r Torque generated by the differential
N VT 2 Nr Nv Td mode of the stern thrusters
VT
Page 55
The DELFIM Autonomous Surface Craft (ASC)
Stern dominant
Page 56
Trimming trajectories and paths
ν (u ,v ,w , p , q , r )T ( vT , ωT1/ 0 )T ; p (x , y , z )T position
λ ( , , )T orientatio n (Euler angles)
d 1 d d
M ν C( ω1/ 0 ) ν τ ; p 0R1 ( λ ) v ; λ Q (λ ) ω1 / 0
dt dt dt
d
x f (x, u) : u τctrl
dt
Page 57
Trimming trajectories, what are they (intuitively) ?
d
x f (x, u) : u τctrl
dt
Page 58
Trimming trajectories and paths
cos cos sin sin cos cos sin cos sin cos sin sin
0
R1 ( λ ) sin cos sin sin sin cos cos cos sin sin sin cos
sin sin cos cos cos
Page 59
Trimming trajectories, what are they (technically) ?
Page 60
Trimming trajectory
xkin (xTkin ,i , xTkin ,o )T eg., xkin ,i ( , )T xkin ,o ( , pT )T
xdyn Fdyn (xdyn , x kin ,i ) B ( xdyn )H ( xdyn , u )
d
x F ( x , x )
kin ,i dyn kin ,i 0
dt
kin ,i
x kin ,o Fkin ,o (xdyn , x kin ) 0
r
Fdyn (xdyn , x kin ,i ) B (xdyn )H ( xdyn , u ) 0
E (xdyn , xkin ,i , u ) :
Fkin ,i (xdyn , x kin ,i ) 0 0
g ( xdyn , xkin , u ) : (xdyn , x kin ,i , u ) E r
x kin : g , x kin Oext g where Oext extracts xkin from g
Page 61
Trimming trajectory
• The trimming trajectories of an AUV are helices parametrized by linear speed, yaw rate
and flight path angle (Vsin =cost.)
• There exsists a reference in which the linearization of the generalized error dynamics is
time invariant.
Building on the concept of trimming trajectories, one can also define trimming paths.
Page 62
ROV models
Page 63
The ROMEO vehicle
3 Canisters,
2 for batteries,
1 for elecronics (VME bus)
Page 64
Identification Methods
Page 65
Identification example: the INFANTE vehicle
Pros: Drawbacks:
• High measurement accuracy • Cost
• Complete model • Scaled model issues
• Well known technology • Repeatability
Page 66
Identification example: the ROMEO vehicle
m k k | | | |
θ (m , k ,k | | )T
y dt (measured)
(estimated off line)
Page 67
The Least Squares Method
y 0 (t ) H (x (t ),t )θ y (t ) H (x (t ),t )θ ε
y 0 (1)
y (2) h11 ( x(1),1) h1m (x(1),1) 1
0 : m n
hn 1 (x (n ),n ) hnm ( x(n ),n ) m
y 0 (n )
E y [ε] 0 E y [ y ] H θ and
cov(ε) Ey y Hθ y H θ T 2I
θˆ LS arg min J LS
θ
HT Hθˆ LS HT y
if H T H
1
then
1
θˆ LS H TH H T y
Page 68
The Least Squares Estimator Properties
1) θˆ LS is linear in y
2) is unbiased, i.e. Ey θˆ LS θ
ˆ
ˆ ˆ
3) cov θLS Ey θLS θ θLS θ H H
T
2 T 1
4) cov θˆ LS cov θˆ ULE being θˆ ULE any other unbiased
linear estimator
Page 69
Over and under fitting
ˆθ H TH 1HT y
LS
ˆ
ˆ ˆ T
J LS (θLS ) H θ LS y H θ LS y
a 2 pdf (mean dim( y) - dim(θ))
J LS (θ) / 2 has
moderately good fit 2 (θˆ LS ) (test for underfitting)
Page 70
Overfitting
Hp. Testing (Gaussian case)
h0 : 1 0
p(accept h0 |h1 true) a (eg. a 5%)
h1 :1 0
ˆ
then h0 is accepted if 100 f (a )
ˆ
| |
eg . a 5% f(a) 51.02%
ˆ
ˆ
Compute and 100 : if 51.02% there is a 95%
ˆ
| |
confidence that 0.
Page 71
Identification schemas
m k k | | | |
Page 72
Identification schemas
Ct V |V | V applied motor Voltage
Page 73
Heave model identification
5 experiments
1,2 positive buoyancy
3 neutral
4,5 negative buoyancy
Page 74
Heave model identification (standard model)
mw kw w kw |w |w | w | F G B
w 0 F kw w kw |w | w | w | G B
F ez kw w e z kw |w | w ez | w | G B e z
yH θ
y s F1 ez , F2 ez , , Fn ez
T
w1 e z w1 ez | w1 | 1
H s
wn ez w n ez | wn | 1
Page 75
Heave model identification (eta model)
mw kw w kw |w |w | w | F G B ; F ez kw w ez kw |w |w ez | w | G B ez
1 F ez 0
F F
1 F e z 0
F ez 0 F ez kw w ez kw |w |w ez | w | GB ez 0
F ez 0 0 kw w ez kw |w | w e z | w | G B ez F ez
yH θ θ (kw , kw |w | , GB ez , ) T
y e Fd 1 ez , Fd 2 ez , ,0
T
, Fdm ez ,0,0,
w d 1 ez wd 1 ez | wd 1 | 1 0
wdm ez wdm ez | wdm | 1 0
He
wu 1 e z wu 1 ez | wu 1 | 1 Fu 1 ez
wup ez wup ez | wup | 1 Fup ez
Page 76
Heave identification results: propeller hull interactions
Standard model:
kw = (116 ± 53) Ns/m
kw|w| = (403 ± 145) Ns2/m2
Eta model:
kw = (50 ± 12) Ns/m
kw|w| = (424 ± 28) Ns2/m2
= (0.57 ± 0.03)
Page 77
Heave results
Page 78
Heave static pool tests
Page 79
Heave static pool tests
Page 80
Other Degrees of freedom
Added mass terms may be also estimated by using (suitable) time-varying inputs.
Page 81
Modeling applications
Control system
Modeling design
Vehicle
Simulators
missions
Page 82
Conclusions
ROMEO: Institute for Naval INFANTE and DELFIM: Dynamical Systems and Ocean Robotics Lab,
Instituto Superior Técnico - ISR, Lisbon, Portugal
Automation, CNR-IAN, Genova, Italy
Page 83