Introduction To Inertial Navigation and Kalman Filtering
Introduction To Inertial Navigation and Kalman Filtering
Kalman Filtering
Tutorial for:
IAIN World Congress,
Stockholm, October 2009
Kenneth Gade, FFI
Outline
Notation
Inertial navigation
Aided inertial navigation system (AINS)
Implementing AINS
Initial alignment (gyrocompassing)
AINS demonstration
Slide 2
Kinematics
Slide 3
Coordinate frame
6 degrees of freedom
Can represent a rigid body
Slide 4
Frame
symbol
Description
Inertial
Earth-fixed
Body-fixed
North-EastDown (local
level)
Local level,
wander
azimuth (as N,
but not northaligned =>
nonsingular)
(Figure assumes
spherical earth)
REL longitude,
latitude, wander
azimuth
pitch, yaw
Kenneth Gade, FFI
Slide 5
bE ,i , bE , j , bE ,k ):
x = xi bE ,i + x j bE , j + xk bE ,k
xk
Vector decomposed
in frame E (suited
for computer
implementation):
xi
E
x = xj
xk
E
xi
x
xj
Slide 6
Definition
p AB
C
C
v AB
v AB
C
C
Description
B A
d
( p AB )
dt
v AB
d2
a AB
( dt )
a AB
p
2 ( AB )
a AB
frame of observation is the same as the origin of the differentiated position vector.)
Note that the underline shows that both orientation and position of A matters
(whereas only the position of B matters)
Slide 7
Symbol
Definition
Description
k AB AB
RAB
(to be
published)
AB
(to be
published)
AB
Slide 8
Outline
Notation
Inertial navigation
Aided inertial navigation system (AINS)
Implementing AINS
Initial alignment (gyrocompassing)
AINS demonstration
Slide 9
Navigation
Navigation:
Estimate the position, orientation and velocity of a vehicle
Inertial navigation:
Inertial sensors are utilized for the navigation
Slide 10
Inertial Sensors
Based on inertial principles, acceleration and angular velocity are
measured.
Slide 11
Accelerometers (1:2)
By attaching a mass to a spring, measuring its deflection, we get a
simple accelerometer.
Slide 12
Accelerometers (2:2)
= a IB g B = a IB
FB , gravitation
f IB
This means: Specific force of the body system (B) relative inertial space (I), decomposed in
the body system.
Slide 13
Gyros (1:3)
Gyros measure angular velocity relative inertial space:
IB
Principles:
Slide 14
Gyros (2:3)
Slide 15
Gyros (3:3)
The Coriolis-effect. Assume a mass that is
vibrating in the radial direction of a rotating
system. Due to the Coriolis force working
perpendicular to the original vibrating
direction, a new vibration will take place in
this direction. The amplitude of this new
vibration is a function of the angular velocity.
MEMS gyros (MicroElectroMechanical
Systems), tuning fork and wineglass gyros
are utilizing this principle.
Coriolis-based gyros are typically cheaper
and less accurate than mechanical, ring laser
or fiber optic gyros.
Tine
radial
vibration
axis
Slide 16
IMU
Several inertial sensors are often assembled to form an Inertial
Measurement Unit (IMU).
Typically the unit has 3 accelerometers and 3 gyros (x, y and z).
In a strapdown IMU, all inertial sensors are rigidly attached to the unit (no
mechanical movement).
In a gimballed IMU, the gyros and accelerometers are isolated from
vehicle angular movements by means of gimbals.
Slide 17
3 accelerometers, accuracy: 1 mg
3 ring laser gyros, accuracy: 1 deg/h
Rate of all 6 measurements: 100 Hz
Foto: FFI
Slide 18
Inertial Navigation
B
B
f
An IMU (giving IB and IB) is sufficient to navigate relative to inertial
Slide 19
Terrestrial Navigation
In terrestrial navigation we want to navigate relative to the Earth (E).
Since the Earth is not an inertial system, and gravity is present, the
inertial navigation becomes somewhat more complex:
IB
IE
Slide 20
Navigation Equations
Gyros
IBB
L
RLB = RLB S (IBB ) S (IEL + EL
) RLB
( )dt
IEL = RLEIEE
Initial attitude
RLB
Accelerometers
f IBB
RLB
L
L
vEB
= RLB f IBB + gBL IEL (IEL pEB
)
L
( 2IEL + EL
) vEBL
( )dt
Assuming:
spherical earth
wander azimuth L
Not included:
vertical direction
gravity calculation
Initial velocity
L
vEB
L
EL
=
1 L
L
nEB vEB
(
)
rEB
L
vEB
L
REL = REL S (EL
)
Initial position
( )dt
REL
EL
Kenneth Gade,
FFI
Slide 21
Gyros
Accelerometers
Angular
velocity,
B
IB
Velocity,
Specific
force,
IMU
f IBB
Navigation
Equations
L
vEB
Horizontal E or longitude/
position, n
latitude
Depth,
INS
Due to errors in the gyros and accelerometers, an INS will have unlimited drift in
velocity, position and attitude.
The quality of an IMU is often expressed by expected position drift per hour (1).
Examples (classes):
HG1700 is a 10 nautical miles per hour IMU.
HG9900 is a 1 nautical mile per hour IMU.
Kenneth Gade, FFI
Slide 22
Outline
Notation
Inertial navigation
Aided inertial navigation system (AINS)
Implementing AINS
Initial alignment (gyrocompassing)
AINS demonstration
Slide 23
Sensor:
Measurement:
Pressure meter
Depth/height
Magnetic compass
Heading
B
v EB
(or
B
, water)
vWB
GPS
E
pEB
E
v EB
Multi-antenna GPS
Orientation
Slide 24
Slide 25
Kalman Filter
A Kalman filter is a recursive algorithm for estimating states in a system.
Examples of states:
Position, velocity etc for a vehicle
pH-value, temperature etc for a chemical process
Two sorts of information are utilized:
Measurements from relevant sensors
A mathematical model of the system (describing how the different
states depend on each other, and how the measurements depend on
the states)
In addition the accuracy of the measurements and the model must be
specified.
Slide 26
Slide 27
xk = k 1 xk 1 + vk 1 , vk N ( 0 ,Vk )
yk = Dk xk + wk , wk N ( 0, Wk )
x 0 = E ( x0 ) , P0 = E
xk = k 1 x k 1
Pk = k 1 Pk 1kT1 + Vk 1
( x0 x 0 )( x0 x 0 )
x k = xk + K k ( yk Dk xk )
Pk = ( I K k Dk ) Pk
K k = Pk DkT ( Dk Pk DkT + Wk )
Slide 28
Slide 29
Example:
HUGIN AUV
DGPS
USBL
IMU
Pressure sensor
Compass
DVL
Slide 30
Measurements
Sensor
IMU
DGPS/USBL
Pressure
sensor
DVL
Compass
Measurement
Angular velocity, specific force
Horizontal position
measurement
Symbol
IBB , f IBB
E
pEB
Depth
AUV velocity (relative the
seabed) projected into the body
(B) coordinate system
Heading (relative north)
B
v EB
north
Slide 31
Based on the measurements and sensor error models, the Kalman filter
estimates errors in the navigation equations and all colored sensor
errors.
Kenneth Gade, FFI
Slide 32
Optimal Smoothing
Smoothed estimate: Optimal estimate based on all logged measurements
(from both history and future)
Smoothing gives:
Improved accuracy (number of relevant measurements doubled)
Improved robustness
Improved integrity
Estimate in accordance with process model
First the ordinary Kalman filter is run through the entire time series, saving all estimates and covariance
matrices. The saved data is then processed recursively backwards in time using an optimal smoothing
algorithm adjusting the filtered estimates (Rauch-Tung-Striebel implementation).
Slide 33
Outline
Notation
Inertial navigation
Aided inertial navigation system (AINS)
Implementing AINS
Initial alignment (gyrocompassing)
AINS demonstration
Slide 34
Real-time
navigation
(Kalman
filter)
Pos, orientation,
velocity
Guidance &
control
Control
signals
Hard disk
Real-time navigation
Post-processed navigation
Post mission
download
Post-processed
navigation
(smoothing)
Pos, orientation,
velocity
Geo-referencing
recorded data (e.g.
map making)
Kenneth Gade, FFI
Slide 35
NavLab
NavLab (Navigation Laboratory) is one common tool for solving a variety
of navigation tasks.
Structure:
Development started in
1998
Main focus during
development:
Solid theoretical
foundation
(competitive edge)
IMU Simulator
Navigation
Equations
Error state
Kalman filter
Position
measurement
Simulator
Trajectory
Simulator
Depth
measurement
Simulator
Make Kalman
filter
measurements
(differences)
Filtered
estimates
and
covariance
matrices
Velocity
measurement
Simulator
Optimal
Smoothing
Compass
Simulator
Smoothed
estimates
and
covariance
matrices
Slide 36
Simulator
Trajectory simulator
Can simulate any trajectory
in the vicinity of Earth
No singularities
Sensor simulators
Most common sensors with
their characteristic errors are
simulated
All parameters can change
with time
Rate can change with time
Figure: NavLab
Kenneth Gade, FFI
Slide 37
NavLab Usage
Main usage:
1. Navigation system research and development
2. Analysis of navigation system
3. Decision basis for sensor purchase and mission planning
4. Post-processing of real navigation data
5. Sensor evaluation
6. Tuning of navigation system and sensor calibration
Vehicles navigated with NavLab:
AUVs, ROVs, ships, aircraft, helicopters
Users:
Research groups (e.g. FFI (several groups), NATO Undersea
Research Centre, QinetiQ, Kongsberg Maritime, Norsk Elektro
Optikk)
Universities (e.g. NTNU, UniK)
Commercial companies (e.g. C&C Technologies, Geoconsult,
FUGRO, Thales Geosolutions, Artec Subsea, Century Subsea)
Norwegian Navy
) For more details, see www.navlab.net
Slide 38
Outline
Notation
Inertial navigation
Aided inertial navigation system (AINS)
Implementing AINS
Initial alignment (gyrocompassing)
AINS demonstration
Slide 39
Slide 40
Slide 41
Slide 42
z-gyro measurement
Earth's axis of rotation
B
x-gyro measurement
Latitude
y-gyro measurement
y-gyro axis
yaw
North
x-gyro axis (vehicle
heading)
Kenneth Gade, FFI
Slide 43
Slide 44
gravity vector at t
= 0 hours
Slide 45
Outline
Notation
Inertial navigation
Aided inertial navigation system (AINS)
Implementing AINS
Initial alignment (gyrocompassing)
AINS demonstration
Slide 46
Figures: NavLab
Kenneth Gade, FFI
Slide 47
Position
Slide 48
Figure: NavLab
Kenneth Gade, FFI
Slide 49
Attitude
Figure: NavLab
Kenneth Gade, FFI
Slide 50
Figure: NavLab
Kenneth Gade, FFI
Slide 51
Slide 52
Figure: NavLab
Kenneth Gade, FFI
Slide 53
Figure: NavLab
Kenneth Gade, FFI
Slide 54
HUGIN 3000 @
1300 m depth:
Mapped object positions
5
3
2
1
0
-1
-2
-3
-4
-5
-5
-4
-3
-2
-1
0
1
2
Relative East position [m]
5
Kenneth Gade, FFI
Slide 55
Slide 56
Conclusions
Slide 57