20
Unscented Kalman Filter 1

Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

Embed Size (px)

Citation preview

Page 1: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

Unscented Kalman Filter

1

Page 2: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

2

Linearization via Unscented Transform

EKF UKF

Page 3: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

Unscented Transform

• intuition: it should be easier to approximate a given distribution than it is to approximate an arbitrary non-linear function• it is easy to transform a point through a non-

linear function• use a set of points that capture the mean and

covariance of the distribution, transform the points through the non-linear function, then compute the (weighted) mean and covariance of the transformed points

3

Page 4: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

Unscented Transform

4

3 1)( xxf

1,1

Page 5: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

Unscented Transform

5

1,1

3 1)( xxf

Page 6: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

6

UKF Sigma-Point Estimate (2)

EKF UKF

Page 7: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

7

UKF Sigma-Point Estimate (3)

EKF UKF

Page 8: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

8

UKF Sigma-Point Estimate (4)

Page 9: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

Unscented Transform

• for an n-dimensional Gaussian with mean μ and covariance Σ , the unscented transform uses 2n+1 sigma points (and associated weights)

9

nin

wwn

nw

nw

ic

imi

i

cm

2,...,1for )(2

1 )(

)1( 2000

Sigma points Weights

nn )(2

Page 10: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

Unscented Transform

• choose κ ≥ 0 to guarantee a “reasonable” covariance matrix• value is not critical, so choose κ = 0 by default

• choose 0 ≤ α ≤ 1 • controls the spread of the sigma point

distribution; should be small when nonlinearities are strong

• choose β ≥ 0 • β = 2 is optimal if distribution is Gaussian

10

nn )(2

Page 11: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

11

Unscented Transform

)( ii g

n

i

Tiiic

n

i

iim

w

w

2

0

2

0

))(('

'

Pass sigma points through nonlinear function

Recover mean and covariance

Page 12: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

12

UKF_localization ( mt-1, St-1, ut, zt, m):

Prediction:

224

23

222

21

0

0

tt

ttt

v

vM

2

2

0

0

r

rtQ

TTTt

at 000011

t

t

tat

Q

M

00

00

001

1

at

at

at

at

at

at 111111

xt

utt

xt ug 1,

L

i

T

txtit

xti

ict w

2

0,,

L

i

xti

imt w

2

0,

Motion noise

Measurement noise

Augmented state mean

Augmented covariance

Sigma points

Prediction of sigma points

Predicted mean

Predicted covariance

Page 13: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

13

UKF_localization ( mt-1, St-1, ut, zt, m):

Correction:

zt

xtt h

L

iti

imt wz

2

0,ˆ

Measurement sigma points

Predicted measurement mean

Pred. measurement covariance

Cross-covariance

Kalman gain

Updated mean

Updated covariance

Ttti

L

itti

ict zzwS ˆˆ ,

2

0,

Ttti

L

it

xti

ic

zxt zw ˆ,

2

0,

,

1, tzx

tt SK

)ˆ( ttttt zzK

Tttttt KSK

Page 14: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

14

UKF Prediction Step

Page 15: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

15

UKF Observation Prediction Step

Page 16: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

16

UKF Correction Step

Page 17: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

17

Estimation Sequence

EKF PF UKF

Page 18: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

18

Estimation Sequence

EKF UKF

Page 19: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

19

Prediction Quality

EKF UKF

velocity_motion_model

Page 20: Unscented Kalman Filter 1. 2 Linearization via Unscented Transform EKF UKF

20

UKF Summary

• Highly efficient: Same complexity as EKF, with a constant factor slower in typical practical applications

• Better linearization than EKF: Accurate in first two terms of Taylor expansion (EKF only first term)

• Derivative-free: No Jacobians needed

• Still not optimal!