Understanding and Application of Kalman Filter

Similar documents
1 Kalman Filter Introduction

Kalman Filter. Predict: Update: x k k 1 = F k x k 1 k 1 + B k u k P k k 1 = F k P k 1 k 1 F T k + Q

Homework: Ball Predictor for Robot Soccer

State Estimation of Linear and Nonlinear Dynamic Systems

A Study of Covariances within Basic and Extended Kalman Filters

A KALMAN FILTERING TUTORIAL FOR UNDERGRADUATE STUDENTS

The Kalman Filter ImPr Talk

Lecture 7: Optimal Smoothing

CALIFORNIA INSTITUTE OF TECHNOLOGY Control and Dynamical Systems. CDS 110b

TSRT14: Sensor Fusion Lecture 8

From Bayes to Extended Kalman Filter

Time Series Analysis

L06. LINEAR KALMAN FILTERS. NA568 Mobile Robotics: Methods & Algorithms

Lecture 2: From Linear Regression to Kalman Filter and Beyond

Greg Welch and Gary Bishop. University of North Carolina at Chapel Hill Department of Computer Science.

Kalman Filter Computer Vision (Kris Kitani) Carnegie Mellon University

Extended Kalman Filter Tutorial

CALIFORNIA INSTITUTE OF TECHNOLOGY Control and Dynamical Systems. CDS 110b

A Crash Course on Kalman Filtering

Lecture 2: From Linear Regression to Kalman Filter and Beyond

Optimization-Based Control

Data Fusion Kalman Filtering Self Localization

Lecture 4: Numerical Solution of SDEs, Itô Taylor Series, Gaussian Approximations

Autonomous Mobile Robot Design

ROBUST CONSTRAINED ESTIMATION VIA UNSCENTED TRANSFORMATION. Pramod Vachhani a, Shankar Narasimhan b and Raghunathan Rengaswamy a 1

Automated Tuning of the Nonlinear Complementary Filter for an Attitude Heading Reference Observer

Linear-Quadratic-Gaussian (LQG) Controllers and Kalman Filters

A Theoretical Overview on Kalman Filtering

Introduction to Unscented Kalman Filter

Conditions for successful data assimilation

Sequential State Estimation (Crassidas and Junkins, Chapter 5)

Miscellaneous. Regarding reading materials. Again, ask questions (if you have) and ask them earlier

CS281A/Stat241A Lecture 17

Lecture 4: Extended Kalman filter and Statistically Linearized Filter

Infinite Horizon LQ. Given continuous-time state equation. Find the control function u(t) to minimize

16.30/31, Fall 2010 Recitation # 13

An introduction to particle filters

State Estimation with a Kalman Filter

Application of state observers in attitude estimation using low-cost sensors

= 0 otherwise. Eu(n) = 0 and Eu(n)u(m) = δ n m

A Comparison of the EKF, SPKF, and the Bayes Filter for Landmark-Based Localization

Assignment A10: Tracking

Nonlinear Estimation Techniques for Impact Point Prediction of Ballistic Targets

Sensor Fusion, 2014 Lecture 1: 1 Lectures

Lecture 4: Numerical Solution of SDEs, Itô Taylor Series, Gaussian Process Approximations

Nonlinear and/or Non-normal Filtering. Jesús Fernández-Villaverde University of Pennsylvania

SYSTEMTEORI - KALMAN FILTER VS LQ CONTROL

A new unscented Kalman filter with higher order moment-matching

Kalman Filters. Derivation of Kalman Filter equations

Probabilistic Fundamentals in Robotics. DAUIN Politecnico di Torino July 2010

ROBOTICS 01PEEQW. Basilio Bona DAUIN Politecnico di Torino

Lecture 6: Bayesian Inference in SDE Models

Steady State Kalman Filter

Factor Analysis and Kalman Filtering (11/2/04)

Lecture Note 12: Kalman Filter

Lecture 3: Functions of Symmetric Matrices

Bayes Filter Reminder. Kalman Filter Localization. Properties of Gaussians. Gaussians. Prediction. Correction. σ 2. Univariate. 1 2πσ e.

Every real system has uncertainties, which include system parametric uncertainties, unmodeled dynamics

Research Article Extended and Unscented Kalman Filtering Applied to a Flexible-Joint Robot with Jerk Estimation

ONLINE PARAMETER ESTIMATION APPLIED TO MIXED CONDUCTION/RADIATION. A Thesis TEJAS JAGDISH SHAH

Mini-Course 07 Kalman Particle Filters. Henrique Massard da Fonseca Cesar Cunha Pacheco Wellington Bettencurte Julio Dutra

6.4 Kalman Filter Equations

Optimal filtering with Kalman filters and smoothers a Manual for Matlab toolbox EKF/UKF

A Study of the Kalman Filter applied to Visual Tracking

Unscented Filtering for Interval-Constrained Nonlinear Systems

Self-Driving Car ND - Sensor Fusion - Extended Kalman Filters

Moving Horizon Estimation with Dynamic Programming

Statistics 910, #15 1. Kalman Filter

Using the Kalman Filter to Estimate the State of a Maneuvering Aircraft

Industrial Model Predictive Control

Nonlinear Filtering. With Polynomial Chaos. Raktim Bhattacharya. Aerospace Engineering, Texas A&M University uq.tamu.edu

State Estimation and Motion Tracking for Spatially Diverse VLC Networks

Kalman Filtering in a Mass-Spring System

Lagrangian Data Assimilation and Manifold Detection for a Point-Vortex Model. David Darmon, AMSC Kayo Ide, AOSC, IPST, CSCAMM, ESSIC

AP Calculus ---Notecards 1 20

Nonlinear State Estimation! Particle, Sigma-Points Filters!

EE 565: Position, Navigation, and Timing

Optimization-Based Control

ECE531 Lecture 11: Dynamic Parameter Estimation: Kalman-Bucy Filter

Extended Kalman Filter based State Estimation of Wind Turbine

Optimization-Based Control

Least Squares Estimation Namrata Vaswani,

Nonlinear Observers. Jaime A. Moreno. Eléctrica y Computación Instituto de Ingeniería Universidad Nacional Autónoma de México

Lecture 10 Linear Quadratic Stochastic Control with Partial State Observation

A Multiple Target Range and Range-Rate. Tracker Using an Extended Kalman Filter and. a Multilayered Association Scheme

Linear and Nonlinear State Estimation in the Czochralski Process

RECURSIVE ESTIMATION AND KALMAN FILTERING

Extended Kalman Filter Derivation Example application: frequency tracking

Constrained State Estimation Using the Unscented Kalman Filter

Deriva'on of The Kalman Filter. Fred DePiero CalPoly State University EE 525 Stochas'c Processes

Augmented Reality II - Kalman Filters - Gudrun Klinker May 25, 2004

Development of an Extended Operational States Observer of a Power Assist Wheelchair

Statistics Homework #4

Runga-Kutta Schemes. Exact evolution over a small time step: Expand both sides in a small time increment: d(δt) F (x(t + δt),t+ δt) Ft + FF x ( t)

1 Introduction ISSN

Testing the efficiency and accuracy of multibody-based state observers

Fuzzy Adaptive Variational Bayesian Unscented Kalman Filter

Estimating State of Charge and State of Health of Rechargable Batteries on a Per-Cell Basis

EE363 homework 5 solutions

State Estimation using Moving Horizon Estimation and Particle Filtering

Transcription:

Dept. of Aerospace Engineering April 2, 2016

Contents I Introduction II Kalman Filter Algorithm III Simulation IV Future plans

Kalman Filter? Rudolf E.Kálmán(1930 ) 1960 년대루돌프칼만에의해 개발 Nosie 가포함된역학시스템 상태를재귀필터를이용해 참값과가까운값을추적신호처리, 로봇공학, 인공위성 등의여러분야에사용 종류 : Linear Kalman Filter Extended Kalman Filter(EKF) Uncented Kalman Filter(UKF)

Kalman Filter Recursive Algorithm EKF(Extended Kalman Filter) Ax k f (x k ) Hx k h(x k ) Kalman Filter Algorithm

Kalman Filter values 1)System model x: 상태변수 (nx1) 열벡터 A(= F, Φ): 상태전이행렬 (nxn) B: Control matrix(nx1) H: 측정값과상태변수의관계 (mxn행렬) Z: 측정값 (mx1) 행렬

Kalman Filter values 2)Linearization Jacobian Matrix( 비선형모델 선형모델 ) :n개의변수를가진함수 m개를모두편미분한행렬 F 1 (x 1,..., x n ),..., F m (x 1,..., x n ) J = KF EKF System Ax k f (x k ) Measurement Hx k h(x k ) A = f x ˆx k F 1 x 1 F 1 x n..... F m x 1 Fm x n H = h x ˆx k

Kalman Filter values 3)Noise 가우시안노이즈 : 평균이 0이고표준편차가 1인표준정규분포를따르는잡음

Kalman Filter values 4) 오차공분산 (P) : 필터의추정값과참값의차이를나타내는척도 P k = AP k 1A T + Q P k = (I K k H)P k P k = E{(x k ˆx k )(x k ˆx k ) T } 오차공분산은시간이지날수록줄어든다. 추정값은오차가충분히작아지면거의줄어들지않는다.

Kalman Filter values 5)Kalman gain 추정값을계산할때사용되는가중치

Example: Linear Filter Algorithm 등가속도운동 (uniformly accelerated motion) 1. 필터초기값설정 1) 시스템모델 (X k = AX k 1 + Bu) s = s 0 + vt + 1 2 at2 v = v 0 + at a = Const Ẋ = P V a X k = 1 dt 0 0 1 0 0 0 1 X k 1 + dt 2 2 dt 0 X (3)

Example: Linear Filter Algorithm 등가속도운동 (uniformly accelerated motion) 1. 필터초기값설정 2) 측정모델 (z k = Hx k + v k ) z k = P V a = x(1) + x(2)dt + x(3)dt 2 /2 x(2) + x(3)dt x(3) + v k H = eye(3) v k = 측정잡음, (mx1) 열벡터

Example: Linear Filter Algorithm 등가속도운동 (uniformly accelerated motion) 1. 필터초기값설정 3)Noise Q = 0.09 2 0 0 0 0.02 2 0 0 0 0.01 2 R = w k = Q randn(3, 1) v k = R randn(3, 1) P = 10 eye(3) 3 2 0 0 0 1.5 2 0 0 0 0.5 2

Simulation with matlab 1)Initial values 1 dt=0.01; %step size 2 t=0:dt:10; 3 x=[10 20 2]'; %Initial values 4 xh=[0 0 0]'; 5 A=[1 dt 0; 0 1 0; 0 0 1]; %State Matrix 6 B=[dtˆ2/2; dt; 0]; %Control Matrix 7 P=10*eye(3); % 8 Q=diag([0.09ˆ2 0.02ˆ2 0.01ˆ2]); % 9 R=diag([3ˆ2 1.5ˆ2 0.5ˆ2]); % 10 H=eye(3); %

Simulation with matlab 2)Measurement and Kalman Filter 1 for i=1:length(t) 2 x=rk4(x,dt); %Runge kutta method 3 v=sqrt(r)*randn(3,1); %Measurement Noise 4 pm=x(1)+x(2)*dt+x(3)*dtˆ2/2+v(1); %Position+noise 5 vm=x(2)+x(3)*dt+v(2); %Velocity+noise 6 am=x(3)+v(3); %Acceleration+noise 7 z=[pm vm am]'; %Measurement values

Simulation with matlab 2)Measurement and Kalman Filter 1 w=sqrt(q)*randn(3,1); %System Noise 2 xh=a*xh+b*xh(3)+w; %Project the state ahead 3 P=A*P*A' + Q; %Project the error covariance ahead 4 K=P*H'*inv(H*P*H'+R); %Compute the Kalman Gain 5 xh=xh+k*(z-h*xh); %Update the estimate via z 6 P=(eye(3)-K*H)*P; %Update the error covariance 7 end

Simulation with matlab 3)Reasult 400 Measurement values 300 Position(m) 200 100 0 time(sec) 45 40 Velocity(m/s) 35 30 25 20 15 4 Acceleration(m/s 2 ) 3 2 1 0

Simulation with matlab 3)Reasult 400 Estimated value 300 Position(m) 200 100 0 time(sec) 40 35 Velocity(m/s) 30 25 20 15 2.2 Acceleration(m/s 2 ) 2.1 2 1.9 1.8 1.7 1.6

Simulation with matlab 3)Reasult 400 Estimated values and True values 300 KF True Position(m) 200 100 0 time(sec) 45 40 KF True Velocity(m/s) 35 30 25 20 15 time(sec) 2.2 Acceleration(m/s 2 ) 2.1 2 1.9 1.8 1.7 KF True 1.6 time(sec)

Simulation with matlab 3)Reasult 2 Errors Position error 1 0-1 -2 time(sec) 1 Velocity error 0.5 0-0.5-1 time(sec) 1 Acceleration error 0.5 0-0.5 Error 3σ -1 time(sec)

EKF Example (Van Der Pol s equation) Van Der Pol s equation: mẍ + 2c(x 2 1)ẋ + kx = 0 state variable: x = [x ẋ] T ẋ = [ẋ ẍ] T x 1 = x 2 x 2 = 2(c/m)(x1 2 1)x 2 (k/m)x 1 Thus, The linearized model is given by F = [ 0 1 4(c/m) ˆx 1 ˆx 2 (k/m) 2(c/m)(ˆx 2 1 1) ]

EKF Example (Van Der Pol s equation) 4 True values 3 x(1) x(2) 2 1 0-1 -2-3 -4 4 Estimated values 3 2 1 0-1 -2-3 -4

EKF Example (Van Der Pol s equation) 0.3 3sigma 0.2 0.1 0-0.1-0.2-0.3-0.4 0.3 0.2 0.1 0-0.1-0.2-0.3

EKF Example (Van Der Pol s equation) 문제점 1 F = eye(2)+[0 1; 2-4*(c/m)*xh(1)*xh(2)-(k/m)... -2*(c/m)*(xh(1)ˆ2-1)]*dt; 3 xh = F*xh; 4 %xh=fx(xh,dt); 5 P = F*P*F'+ G*Q*G'; 6 K=P*H'*(H*P*H'+R)ˆ(-1); 7 xh=xh+k*(z-h*xh); 8 P=(eye(2)-K*H)*P; 이산시스템에대한개념부족 Discrete-Time, Continuous- Discrete 알고리즘구현방법의차이코드간결화문제

Future plan EKF 알고리즘및정확한시스템모델을이해, 동역학적인 문제적용 UKF 알고리즘구현

Thank you for your attention!