State Estimation with a Kalman Filter

Size: px
Start display at page:

Download "State Estimation with a Kalman Filter"

Transcription

1 State Estimation with a Kalman Filter When I drive into a tunnel, my GPS continues to show me moving forward, even though it isn t getting any new position sensing data How does it work? A Kalman filter produces estimate of system s next state, given noisy sensor data control commands with uncertain effects model of system s (possibly stochastic) dynamics estimate of system s current state In our case, given a blimp with (approximately known) dynamics noisy sensor data control commands our current estimate of blimp s state How should we predict the blimp s next state? How should we control blimp? CSE 466 State Estimation 1

2 Kalman Filter Bayesian estimator, computes beliefs about state, assuming everything is linear and Gaussian Gaussian is unimodal only one hypothesis Example of a Bayes filter Recursive filter, since current state depends on previous state, which depends on state before that, and so on Two phases: prediction (not modified by data) and correction (data dependent) Produces estimate with minimum mean-squared error Even though the current estimate only looks at the previous estimate, as long as the actual data matches the assumptions (Gaussian etc), you can t do any better, even if you looked at all the data in batch! Very practical and relatively easy to use technique! CSE 466 State Estimation 2

3 Example Object falling in air We know the dynamics Related to blimp dynamics, since drag and inertial forces are both significant Dynamics same as driving blimp forward with const fan speed We get noisy measurements of the state (position and velocity) We will see how to use a Kalman filter to track it Position of object falling in air, Meas Nz Var=.25 Proc Nz Var= Velocity of object falling in air CSE 466 State Estimation 3

4 Linear 1D Newtonian dynamics example Object falling in air State is ( xv, ) where v dx dt CSE 466 State Estimation 4

5 Linear 1D Newtonian dynamics example Object falling in air dv f ma m dt f kv force due to drag f a g 2 (ideally we'd use v instead of v) gm f f f kvmg a dv m kvmg dt dv kv g dt m g Confused by the signs? If obj is falling down, v is a negative # g (the gravitational const.) is a pos. number, but the direction of gravity is down, so the gravitational force is -mg (a neg. number). The frictional force kv is a positive number (since v is negative). Even though we wrote kv and mg, these two forces are in opposite directions when the object is falling CSE 466 State Estimation 5

6 How to solve the differential equation on the computer? dx v dt x v t xt xt 1 v t x x vt t t1 dv kv g dt m v kv g t m vt vt 1 kv g t m kv vt vt 1 gt m kv vt vt 1 gt m CSE 466 State Estimation 6

7 Object falling in air Falling object k/m = 1 x v At terminal velocity Produced by iterating the difference equations on previous slide CSE 466 State Estimation 7

8 In air, heavier objects Falling object k/m = 1 x v -2 do fall faster! And they take longer to reach their terminal velocity Falling object k/m = 5 x v -2 (Without air, all objects accelerate at the same rate) Falling object k/m = 2.5 x v CSE 466 State Estimation 8

9 Matlab code for modeling object falling in air % falling.m x =.; v =.; TMAX = 2; x = zeros(1,tmax); V = zeros(1,tmax); g=9.8; m=1.; k=1.; x(1) = x; v(1) = v; dt=.1; for t=2:tmax, x(t) = x(t)+(v(t))*dt; v(t) = v(t)+(-(k/m)*(v(t))-g)*dt; end figure(); plot(x,'b'); hold on; title(['falling object k/m = ' num2str(k/m)]); plot(v,'r') legend('x','v'); hold off CSE 466 State Estimation 9

10 Multi-dimensional Gaussians Px ( m, ) exp[ ( xm) /2 ] T P( x m, R) exp[ ( xm) R( xm)] Z( R) 2 where Z( R) det( R/2 ) 1/2 and R is the inverse of the covariance matrix. One-dimensional (scalar) Gaussian Vector Gaussian CSE 466 State Estimation 1

11 Multi-dimensional Gaussians, Covariance Matrices, Ellipses, and all that T 2 In an N dimensional space xx R is a sphere of radius R Can write it more generally by inserting identity matrix xx T T Note that xx xx x x... x R T 2 xix R N If we replace I by a more general matrix M, it will distort the sphere: for M diagonal, it will scale each axis differently, producing an axis-aligned ellipsoid We could also apply rotation matrices to a diagonal M to produce a general, non-axis aligned ellipsoid The uncertainty ball of a multi-d Gaussian [e.g. the 1 std iso-surface] actually IS an ellipsoid! CSE 466 State Estimation 11

12 Example A A Blue: circle of radius 1 (e.g. 1 std iso-surface of uncorrelated uniform Gaussian noise) Red: circle after transformation by A CSE 466 State Estimation 12

13 A.1 2 cos sin With R and, sin cos 16 T AR R CSE 466 State Estimation 13

14 Kalman filter variables x: state vector z: observation vector u: control vector A: state transition matrix --- dynamics B: input matrix (maps control commands onto state changes) P: covariance of state vector estimate Q: process noise covariance R: measurement noise covariance H: observation matrix CSE 466 State Estimation 14

15 Kalman filter algorithm Prediction for state vector and covariance: x AxBu T P APA Q Kalman gain factor: T T K PH ( HPH R) 1 Correction based on observation: x xk( zhx) P PKHP x: state vector z: observation vector u: control vector A: state transition matrix --- dynamics B: control commands --> state changes P: covariance of state vector estimate Q: process noise covariance R: measurement noise covariance H: observation matrix CSE 466 State Estimation 15

16 Need dynamics in matrix form x x v dt; t t1 t1 k t t1 m t1 v v v g dt; Want A s.t. xt xt1 A v v t t1 Try xt1 1 t xt1 xt 1vt1t xt A k k vt 1 1 m t vt 1 vt 1 mvt1 t vt Hmm, close but gravity is missing we can t put it into A because it will be multiplied by v t. Let s stick it into B! CSE 466 State Estimation 16

17 Try Need dynamics in matrix form Want x x v dt; t t1 t1 k t t1 m t1 v v v g dt; Bu 1 gt1 gt x x A B The command to turn on v v 1 gravity! 1 t xt1 1 xt 1vt1t k k 1 m t v t1 gt1 v t1( mv t1g) t t t1 t t1 Now gravity is in there we treated it as a control input. CSE 466 State Estimation 17

18 Matlab for dynamics in matrix form % falling_matrix.m: model of object falling in air, w/ matrix notation x =.; v =.; TMAX = 2; x = zeros(2,tmax); g=9.8; m=1.; k=1.; x(1,1) = x; x(2,1) = v; dt=.1; u=[ 1]'; for t=2:tmax, A=[[1 dt ];... [ (1.-(k/m)*dt) ]]; B=[[1 ];... [ -g*dt ]]; x(:,t) = A*x(:,t) + B*u; end % plotting CSE 466 State Estimation 18

19 Matlab for Kalman Filter function s = kalmanf(s) s.x = s.a*s.x + s.b*s.u; s.p = s.a * s.p * s.a' + s.q; % Compute Kalman gain factor: K = s.p * s.h' * inv(s.h * s.p * s.h' + s.r); % Correction based on observation: s.x = s.x + K*(s.z - s.h *s.x); s.p = s.p - K*s.H*s.P; end return CSE 466 State Estimation 19

20 .5 Position of object falling in air, Meas Nz Var=.1 Proc Nz Var= Velocity of object falling in air CSE 466 State Estimation 2

21 Calling the Kalman Filter (init) x =.; v =.; TMAX = 2; g=9.8; m=1.; k=1.; dt=.1; clear s % Dynamics modeled by A s.a = [[1 dt ];... [ (1.-(k/m)*dt)]]; CSE 466 State Estimation 21

22 Calling the Kalman Filter (init) % Measurement noise variance MNstd =.4; MNV = MNstd*MNstd; % Process noise variance PNstd =.2; PNV = PNstd*PNstd; % Process noise covariance matrix s.q = eye(2)*pnv; % Define measurement function to return the state s.h = eye(2); % Define a measurement error s.r = eye(2)*mnv; % variance CSE 466 State Estimation 22

23 Calling the Kalman Filter (init) % Use control to include gravity s.b = eye(2); % Control matrix s.u = [ -g*m*dt]'; % Gravitational acceleration % Initial state: s.x = [x v]'; s.p = eye(2)*mnv; s.detp = det(s.p); % Let's keep track of the noise by keeping detp s.z = zeros(2,1); CSE 466 State Estimation 23

24 Calling the Kalman Filter % Simulate falling in air, and watch the filter track it tru=zeros(tmax,2); % tru(1,:)=[x v]; detp(1,:)=s.detp; for t=2:tmax tru(t,:)=s(t).a*tru(t,:) + s(t).b*s(t).u+pnstd *randn(2,1); s(t).z = s(t).h * tru(t,:)' + MNstd*randn(2,1); % create a meas. s(t)=kalmanf(s(t)); % perform a Kalman filter iteration detp(t)=s(t).detp; % keep track of "net" uncertainty end The variable s is an object whose members are all the important data structures (A, x, B, u, H, z, etc) tru: simulation of. In the real world, this would be implemented by the actualy physical system CSE 466 State Estimation 24

25 Blimp estimation example 5-5 Position of blimp (in air), Meas Nz Var= 25 Proc Nz Var= Velocity of blimp (in air) Det(P) Commands Here we are assuming we can switch gravity back and forth (from to +1 and back) CSE 466 State Estimation 25

26 5-5 Blimp P control using raw sensor data, no Kalman filter Position of blimp (in air), Meas Nz Var= 25 Proc Nz Var= Velocity of blimp (in air) Det(P) Commands Servoing to setpoint -5 Mean Squared Error:.143 RMS:.379 CSE 466 State Estimation 26

27 5-5 Blimp P control using Kalman-filtered state estimate Position of blimp (in air), Meas Nz Var= 25 Proc Nz Var= Velocity of blimp (in air) Det(P) Commands Servoing to setpoint -5 Mean Squared Error:.373 RMS:.193 CSE 466 State Estimation 27

28 Extensions Extended Kalman Filter (EKF) Information Filter Unscented Kalman Filter (UKF) the unscented Kalman Filter does not stink! CSE 466 State Estimation 28

29 Extra examples various noise settings CSE 466 State Estimation 29

30 2 Position of object falling in air, Meas Nz Var=.16 Proc Nz Var= Velocity of object falling in air Det(P) CSE 466 State Estimation 3

31 1 Position of object falling in air, Meas Nz Var=.1 Proc Nz Var= Velocity of object falling in air Process noise Q =. CSE 466 State Estimation 31

32 1 Position of object falling in air 2 = Velocity of object falling in air Process noise Q =. CSE 466 State Estimation 32

33 4 2 Position of object falling in air 2 = Velocity of object falling in air Process noise Q =. CSE 466 State Estimation 33

34 1 Position of object falling in air 2 = Velocity of object falling in air Process noise Q =.2 CSE 466 State Estimation 34

1 Kalman Filter Introduction

1 Kalman Filter Introduction 1 Kalman Filter Introduction You should first read Chapter 1 of Stochastic models, estimation, and control: Volume 1 by Peter S. Maybec (available here). 1.1 Explanation of Equations (1-3) and (1-4) Equation

More information

CS 532: 3D Computer Vision 6 th Set of Notes

CS 532: 3D Computer Vision 6 th Set of Notes 1 CS 532: 3D Computer Vision 6 th Set of Notes Instructor: Philippos Mordohai Webpage: www.cs.stevens.edu/~mordohai E-mail: Philippos.Mordohai@stevens.edu Office: Lieb 215 Lecture Outline Intro to Covariance

More information

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

Miscellaneous. Regarding reading materials. Again, ask questions (if you have) and ask them earlier Miscellaneous Regarding reading materials Reading materials will be provided as needed If no assigned reading, it means I think the material from class is sufficient Should be enough for you to do your

More information

Kalman filtering and friends: Inference in time series models. Herke van Hoof slides mostly by Michael Rubinstein

Kalman filtering and friends: Inference in time series models. Herke van Hoof slides mostly by Michael Rubinstein Kalman filtering and friends: Inference in time series models Herke van Hoof slides mostly by Michael Rubinstein Problem overview Goal Estimate most probable state at time k using measurement up to time

More information

Kalman Filter Computer Vision (Kris Kitani) Carnegie Mellon University

Kalman Filter Computer Vision (Kris Kitani) Carnegie Mellon University Kalman Filter 16-385 Computer Vision (Kris Kitani) Carnegie Mellon University Examples up to now have been discrete (binary) random variables Kalman filtering can be seen as a special case of a temporal

More information

2D Image Processing. Bayes filter implementation: Kalman filter

2D Image Processing. Bayes filter implementation: Kalman filter 2D Image Processing Bayes filter implementation: Kalman filter Prof. Didier Stricker Kaiserlautern University http://ags.cs.uni-kl.de/ DFKI Deutsches Forschungszentrum für Künstliche Intelligenz http://av.dfki.de

More information

Lecture 2: From Linear Regression to Kalman Filter and Beyond

Lecture 2: From Linear Regression to Kalman Filter and Beyond Lecture 2: From Linear Regression to Kalman Filter and Beyond Department of Biomedical Engineering and Computational Science Aalto University January 26, 2012 Contents 1 Batch and Recursive Estimation

More information

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

L06. LINEAR KALMAN FILTERS. NA568 Mobile Robotics: Methods & Algorithms L06. LINEAR KALMAN FILTERS NA568 Mobile Robotics: Methods & Algorithms 2 PS2 is out! Landmark-based Localization: EKF, UKF, PF Today s Lecture Minimum Mean Square Error (MMSE) Linear Kalman Filter Gaussian

More information

Linear Dynamical Systems

Linear Dynamical Systems Linear Dynamical Systems Sargur N. srihari@cedar.buffalo.edu Machine Learning Course: http://www.cedar.buffalo.edu/~srihari/cse574/index.html Two Models Described by Same Graph Latent variables Observations

More information

2D Image Processing. Bayes filter implementation: Kalman filter

2D Image Processing. Bayes filter implementation: Kalman filter 2D Image Processing Bayes filter implementation: Kalman filter Prof. Didier Stricker Dr. Gabriele Bleser Kaiserlautern University http://ags.cs.uni-kl.de/ DFKI Deutsches Forschungszentrum für Künstliche

More information

Lecture 2: From Linear Regression to Kalman Filter and Beyond

Lecture 2: From Linear Regression to Kalman Filter and Beyond Lecture 2: From Linear Regression to Kalman Filter and Beyond January 18, 2017 Contents 1 Batch and Recursive Estimation 2 Towards Bayesian Filtering 3 Kalman Filter and Bayesian Filtering and Smoothing

More information

Lecture 7: Optimal Smoothing

Lecture 7: Optimal Smoothing Department of Biomedical Engineering and Computational Science Aalto University March 17, 2011 Contents 1 What is Optimal Smoothing? 2 Bayesian Optimal Smoothing Equations 3 Rauch-Tung-Striebel Smoother

More information

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

Bayes Filter Reminder. Kalman Filter Localization. Properties of Gaussians. Gaussians. Prediction. Correction. σ 2. Univariate. 1 2πσ e. Kalman Filter Localization Bayes Filter Reminder Prediction Correction Gaussians p(x) ~ N(µ,σ 2 ) : Properties of Gaussians Univariate p(x) = 1 1 2πσ e 2 (x µ) 2 σ 2 µ Univariate -σ σ Multivariate µ Multivariate

More information

Robotics 2 Target Tracking. Kai Arras, Cyrill Stachniss, Maren Bennewitz, Wolfram Burgard

Robotics 2 Target Tracking. Kai Arras, Cyrill Stachniss, Maren Bennewitz, Wolfram Burgard Robotics 2 Target Tracking Kai Arras, Cyrill Stachniss, Maren Bennewitz, Wolfram Burgard Slides by Kai Arras, Gian Diego Tipaldi, v.1.1, Jan 2012 Chapter Contents Target Tracking Overview Applications

More information

Optimization-Based Control

Optimization-Based Control Optimization-Based Control Richard M. Murray Control and Dynamical Systems California Institute of Technology DRAFT v1.7a, 19 February 2008 c California Institute of Technology All rights reserved. This

More information

2D Image Processing (Extended) Kalman and particle filter

2D Image Processing (Extended) Kalman and particle filter 2D Image Processing (Extended) Kalman and particle filter Prof. Didier Stricker Dr. Gabriele Bleser Kaiserlautern University http://ags.cs.uni-kl.de/ DFKI Deutsches Forschungszentrum für Künstliche Intelligenz

More information

Autonomous Mobile Robot Design

Autonomous Mobile Robot Design Autonomous Mobile Robot Design Topic: Extended Kalman Filter Dr. Kostas Alexis (CSE) These slides relied on the lectures from C. Stachniss, J. Sturm and the book Probabilistic Robotics from Thurn et al.

More information

Modeling and state estimation Examples State estimation Probabilities Bayes filter Particle filter. Modeling. CSC752 Autonomous Robotic Systems

Modeling and state estimation Examples State estimation Probabilities Bayes filter Particle filter. Modeling. CSC752 Autonomous Robotic Systems Modeling CSC752 Autonomous Robotic Systems Ubbo Visser Department of Computer Science University of Miami February 21, 2017 Outline 1 Modeling and state estimation 2 Examples 3 State estimation 4 Probabilities

More information

Apr 14, Calculus with Algebra and Trigonometry II Lecture 20More physics Aprapplications

Apr 14, Calculus with Algebra and Trigonometry II Lecture 20More physics Aprapplications Calculus with Algebra and Trigonometry II Lecture 20 More physics applications Apr 14, 2015 14, 2015 1 / 14 Motion in two dimensions A particle s motion can be described by specifying how the coordinates

More information

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

Mini-Course 07 Kalman Particle Filters. Henrique Massard da Fonseca Cesar Cunha Pacheco Wellington Bettencurte Julio Dutra Mini-Course 07 Kalman Particle Filters Henrique Massard da Fonseca Cesar Cunha Pacheco Wellington Bettencurte Julio Dutra Agenda State Estimation Problems & Kalman Filter Henrique Massard Steady State

More information

Probabilistic Graphical Models

Probabilistic Graphical Models Probabilistic Graphical Models Lecture 12 Dynamical Models CS/CNS/EE 155 Andreas Krause Homework 3 out tonight Start early!! Announcements Project milestones due today Please email to TAs 2 Parameter learning

More information

EE 565: Position, Navigation, and Timing

EE 565: Position, Navigation, and Timing EE 565: Position, Navigation, and Timing Kalman Filtering Example Aly El-Osery Kevin Wedeward Electrical Engineering Department, New Mexico Tech Socorro, New Mexico, USA In Collaboration with Stephen Bruder

More information

Newton s Laws of Motion, Energy and Oscillations

Newton s Laws of Motion, Energy and Oscillations Prof. O. B. Wright, Autumn 007 Mechanics Lecture Newton s Laws of Motion, Energy and Oscillations Reference frames e.g. displaced frame x =x+a y =y x =z t =t e.g. moving frame (t=time) x =x+vt y =y x =z

More information

Probabilistic Graphical Models

Probabilistic Graphical Models Probabilistic Graphical Models Brown University CSCI 2950-P, Spring 2013 Prof. Erik Sudderth Lecture 12: Gaussian Belief Propagation, State Space Models and Kalman Filters Guest Kalman Filter Lecture by

More information

4. DATA ASSIMILATION FUNDAMENTALS

4. DATA ASSIMILATION FUNDAMENTALS 4. DATA ASSIMILATION FUNDAMENTALS... [the atmosphere] "is a chaotic system in which errors introduced into the system can grow with time... As a consequence, data assimilation is a struggle between chaotic

More information

ENGR352 Problem Set 02

ENGR352 Problem Set 02 engr352/engr352p02 September 13, 2018) ENGR352 Problem Set 02 Transfer function of an estimator 1. Using Eq. (1.1.4-27) from the text, find the correct value of r ss (the result given in the text is incorrect).

More information

Tampere University of Technology Tampere Finland

Tampere University of Technology Tampere Finland IGNSS 2013 Surfer s Paradise, Queensland, Australia 16-18.7.2013 Estimation of initial state and model parameters for autonomous GNSS orbit prediction Juha Ala-Luhtala, Mari Seppänen, Simo Ali-Löytty,

More information

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

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 Kalman Filter Kalman Filter Predict: 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 Update: K = P k k 1 Hk T (H k P k k 1 Hk T + R) 1 x k k = x k k 1 + K(z k H k x k k 1 ) P k k =(I

More information

Image Alignment and Mosaicing Feature Tracking and the Kalman Filter

Image Alignment and Mosaicing Feature Tracking and the Kalman Filter Image Alignment and Mosaicing Feature Tracking and the Kalman Filter Image Alignment Applications Local alignment: Tracking Stereo Global alignment: Camera jitter elimination Image enhancement Panoramic

More information

From Bayes to Extended Kalman Filter

From Bayes to Extended Kalman Filter From Bayes to Extended Kalman Filter Michal Reinštein Czech Technical University in Prague Faculty of Electrical Engineering, Department of Cybernetics Center for Machine Perception http://cmp.felk.cvut.cz/

More information

Probabilistic Fundamentals in Robotics. DAUIN Politecnico di Torino July 2010

Probabilistic Fundamentals in Robotics. DAUIN Politecnico di Torino July 2010 Probabilistic Fundamentals in Robotics Gaussian Filters Basilio Bona DAUIN Politecnico di Torino July 2010 Course Outline Basic mathematical framework Probabilistic models of mobile robots Mobile robot

More information

Dynamics Applying Newton s Laws Introducing Energy

Dynamics Applying Newton s Laws Introducing Energy Dynamics Applying Newton s Laws Introducing Energy Lana Sheridan De Anza College Oct 23, 2017 Last time introduced resistive forces model 1: Stokes drag Overview finish resistive forces energy work Model

More information

CSE 473: Artificial Intelligence

CSE 473: Artificial Intelligence CSE 473: Artificial Intelligence Hidden Markov Models Dieter Fox --- University of Washington [Most slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All CS188 materials

More information

Stochastic Models, Estimation and Control Peter S. Maybeck Volumes 1, 2 & 3 Tables of Contents

Stochastic Models, Estimation and Control Peter S. Maybeck Volumes 1, 2 & 3 Tables of Contents Navtech Part #s Volume 1 #1277 Volume 2 #1278 Volume 3 #1279 3 Volume Set #1280 Stochastic Models, Estimation and Control Peter S. Maybeck Volumes 1, 2 & 3 Tables of Contents Volume 1 Preface Contents

More information

Kalman Filters. Derivation of Kalman Filter equations

Kalman Filters. Derivation of Kalman Filter equations Kalman Filters Derivation of Kalman Filter equations Mar Fiala CRV 10 Tutorial Day May 29/2010 Kalman Filters Predict x ˆ + = F xˆ 1 1 1 B u P F + 1 = F P 1 1 T Q Update S H + K ~ y P = H P 1 T T 1 = P

More information

SLAM Techniques and Algorithms. Jack Collier. Canada. Recherche et développement pour la défense Canada. Defence Research and Development Canada

SLAM Techniques and Algorithms. Jack Collier. Canada. Recherche et développement pour la défense Canada. Defence Research and Development Canada SLAM Techniques and Algorithms Jack Collier Defence Research and Development Canada Recherche et développement pour la défense Canada Canada Goals What will we learn Gain an appreciation for what SLAM

More information

5 Kalman filters. 5.1 Scalar Kalman filter. Unit delay Signal model. System model

5 Kalman filters. 5.1 Scalar Kalman filter. Unit delay Signal model. System model 5 Kalman filters 5.1 Scalar Kalman filter 5.1.1 Signal model System model {Y (n)} is an unobservable sequence which is described by the following state or system equation: Y (n) = h(n)y (n 1) + Z(n), n

More information

ESSE 4020 / ESS 5020 Time Series and Spectral Analysis Notes 6 26 November 2018 State Space Models

ESSE 4020 / ESS 5020 Time Series and Spectral Analysis Notes 6 26 November 2018 State Space Models ESSE 4020 / ESS 5020 Time Series and Spectral Analysis Notes 6 26 November 2018 State Space Models SS2011/2017 Chapter 6 State Space Models - Kalman Filtering or 2016 at https://www.stat.pitt.edu/stoffer/tsa4/chapter6.pdf

More information

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

Using the Kalman Filter to Estimate the State of a Maneuvering Aircraft 1 Using the Kalman Filter to Estimate the State of a Maneuvering Aircraft K. Meier and A. Desai Abstract Using sensors that only measure the bearing angle and range of an aircraft, a Kalman filter is implemented

More information

1 Introduction. Systems 2: Simulating Errors. Mobile Robot Systems. System Under. Environment

1 Introduction. Systems 2: Simulating Errors. Mobile Robot Systems. System Under. Environment Systems 2: Simulating Errors Introduction Simulating errors is a great way to test you calibration algorithms, your real-time identification algorithms, and your estimation algorithms. Conceptually, the

More information

ROBOTICS 01PEEQW. Basilio Bona DAUIN Politecnico di Torino

ROBOTICS 01PEEQW. Basilio Bona DAUIN Politecnico di Torino ROBOTICS 01PEEQW Basilio Bona DAUIN Politecnico di Torino Probabilistic Fundamentals in Robotics Gaussian Filters Course Outline Basic mathematical framework Probabilistic models of mobile robots Mobile

More information

Sensor Tasking and Control

Sensor Tasking and Control Sensor Tasking and Control Sensing Networking Leonidas Guibas Stanford University Computation CS428 Sensor systems are about sensing, after all... System State Continuous and Discrete Variables The quantities

More information

Nonlinear Estimation Techniques for Impact Point Prediction of Ballistic Targets

Nonlinear Estimation Techniques for Impact Point Prediction of Ballistic Targets Nonlinear Estimation Techniques for Impact Point Prediction of Ballistic Targets J. Clayton Kerce a, George C. Brown a, and David F. Hardiman b a Georgia Tech Research Institute, Georgia Institute of Technology,

More information

EKF, UKF. Pieter Abbeel UC Berkeley EECS. Many slides adapted from Thrun, Burgard and Fox, Probabilistic Robotics

EKF, UKF. Pieter Abbeel UC Berkeley EECS. Many slides adapted from Thrun, Burgard and Fox, Probabilistic Robotics EKF, UKF Pieter Abbeel UC Berkeley EECS Many slides adapted from Thrun, Burgard and Fox, Probabilistic Robotics Kalman Filter Kalman Filter = special case of a Bayes filter with dynamics model and sensory

More information

EKF, UKF. Pieter Abbeel UC Berkeley EECS. Many slides adapted from Thrun, Burgard and Fox, Probabilistic Robotics

EKF, UKF. Pieter Abbeel UC Berkeley EECS. Many slides adapted from Thrun, Burgard and Fox, Probabilistic Robotics EKF, UKF Pieter Abbeel UC Berkeley EECS Many slides adapted from Thrun, Burgard and Fox, Probabilistic Robotics Kalman Filter Kalman Filter = special case of a Bayes filter with dynamics model and sensory

More information

Fundamentals of attitude Estimation

Fundamentals of attitude Estimation Fundamentals of attitude Estimation Prepared by A.Kaviyarasu Assistant Professor Department of Aerospace Engineering Madras Institute Of Technology Chromepet, Chennai Basically an IMU can used for two

More information

Covariance Matrix Simplification For Efficient Uncertainty Management

Covariance Matrix Simplification For Efficient Uncertainty Management PASEO MaxEnt 2007 Covariance Matrix Simplification For Efficient Uncertainty Management André Jalobeanu, Jorge A. Gutiérrez PASEO Research Group LSIIT (CNRS/ Univ. Strasbourg) - Illkirch, France *part

More information

(Extended) Kalman Filter

(Extended) Kalman Filter (Extended) Kalman Filter Brian Hunt 7 June 2013 Goals of Data Assimilation (DA) Estimate the state of a system based on both current and all past observations of the system, using a model for the system

More information

Introduction to Unscented Kalman Filter

Introduction to Unscented Kalman Filter Introduction to Unscented Kalman Filter 1 Introdution In many scientific fields, we use certain models to describe the dynamics of system, such as mobile robot, vision tracking and so on. The word dynamics

More information

Chapter 6. Circular Motion and Other Applications of Newton s Laws

Chapter 6. Circular Motion and Other Applications of Newton s Laws Chapter 6 Circular Motion and Other Applications of Newton s Laws Circular Motion Two analysis models using Newton s Laws of Motion have been developed. The models have been applied to linear motion. Newton

More information

Gaussian Process Approximations of Stochastic Differential Equations

Gaussian Process Approximations of Stochastic Differential Equations Gaussian Process Approximations of Stochastic Differential Equations Cédric Archambeau Dan Cawford Manfred Opper John Shawe-Taylor May, 2006 1 Introduction Some of the most complex models routinely run

More information

Exam 2 Spring 2014

Exam 2 Spring 2014 95.141 Exam 2 Spring 2014 Section number Section instructor Last/First name Last 3 Digits of Student ID Number: Answer all questions, beginning each new question in the space provided. Show all work. Show

More information

A Theoretical Overview on Kalman Filtering

A Theoretical Overview on Kalman Filtering A Theoretical Overview on Kalman Filtering Constantinos Mavroeidis Vanier College Presented to professors: IVANOV T. IVAN STAHN CHRISTIAN Email: cmavroeidis@gmail.com June 6, 208 Abstract Kalman filtering

More information

Review of Forces and Conservation of Momentum

Review of Forces and Conservation of Momentum Physics 7B-1 (A/B) Professor Cebra Winter 2010 Lecture 6 Review of Forces and Conservation of Momentum Slide 1 of 22 Vector Addition and Subtraction Vectors are added head to tail Note: a+b = b+a Vectors

More information

the robot in its current estimated position and orientation (also include a point at the reference point of the robot)

the robot in its current estimated position and orientation (also include a point at the reference point of the robot) CSCI 4190 Introduction to Robotic Algorithms, Spring 006 Assignment : out February 13, due February 3 and March Localization and the extended Kalman filter In this assignment, you will write a program

More information

Statistical Techniques in Robotics (16-831, F12) Lecture#17 (Wednesday October 31) Kalman Filters. Lecturer: Drew Bagnell Scribe:Greydon Foil 1

Statistical Techniques in Robotics (16-831, F12) Lecture#17 (Wednesday October 31) Kalman Filters. Lecturer: Drew Bagnell Scribe:Greydon Foil 1 Statistical Techniques in Robotics (16-831, F12) Lecture#17 (Wednesday October 31) Kalman Filters Lecturer: Drew Bagnell Scribe:Greydon Foil 1 1 Gauss Markov Model Consider X 1, X 2,...X t, X t+1 to be

More information

Kinematics (special case) Dynamics gravity, tension, elastic, normal, friction. Energy: kinetic, potential gravity, spring + work (friction)

Kinematics (special case) Dynamics gravity, tension, elastic, normal, friction. Energy: kinetic, potential gravity, spring + work (friction) Kinematics (special case) a = constant 1D motion 2D projectile Uniform circular Dynamics gravity, tension, elastic, normal, friction Motion with a = constant Newton s Laws F = m a F 12 = F 21 Time & Position

More information

A Probability Review

A Probability Review A Probability Review Outline: A probability review Shorthand notation: RV stands for random variable EE 527, Detection and Estimation Theory, # 0b 1 A Probability Review Reading: Go over handouts 2 5 in

More information

Dynamics Applying Newton s Laws Air Resistance

Dynamics Applying Newton s Laws Air Resistance Dynamics Applying Newton s Laws Air Resistance Lana Sheridan De Anza College Oct 20, 2017 Last Time accelerated frames and rotation Overview resistive forces two models for resistive forces terminal velocities

More information

Gaussian with mean ( µ ) and standard deviation ( σ)

Gaussian with mean ( µ ) and standard deviation ( σ) Slide from Pieter Abbeel Gaussian with mean ( µ ) and standard deviation ( σ) 10/6/16 CSE-571: Robotics X ~ N( µ, σ ) Y ~ N( aµ + b, a σ ) Y = ax + b + + + + 1 1 1 1 1 1 1 1 1 1, ~ ) ( ) ( ), ( ~ ), (

More information

Robotics 2 Data Association. Giorgio Grisetti, Cyrill Stachniss, Kai Arras, Wolfram Burgard

Robotics 2 Data Association. Giorgio Grisetti, Cyrill Stachniss, Kai Arras, Wolfram Burgard Robotics 2 Data Association Giorgio Grisetti, Cyrill Stachniss, Kai Arras, Wolfram Burgard Data Association Data association is the process of associating uncertain measurements to known tracks. Problem

More information

Time Series Analysis

Time Series Analysis Time Series Analysis hm@imm.dtu.dk Informatics and Mathematical Modelling Technical University of Denmark DK-2800 Kgs. Lyngby 1 Outline of the lecture State space models, 1st part: Model: Sec. 10.1 The

More information

Prediction of ESTSP Competition Time Series by Unscented Kalman Filter and RTS Smoother

Prediction of ESTSP Competition Time Series by Unscented Kalman Filter and RTS Smoother Prediction of ESTSP Competition Time Series by Unscented Kalman Filter and RTS Smoother Simo Särkkä, Aki Vehtari and Jouko Lampinen Helsinki University of Technology Department of Electrical and Communications

More information

DESIGN AND IMPLEMENTATION OF SENSORLESS SPEED CONTROL FOR INDUCTION MOTOR DRIVE USING AN OPTIMIZED EXTENDED KALMAN FILTER

DESIGN AND IMPLEMENTATION OF SENSORLESS SPEED CONTROL FOR INDUCTION MOTOR DRIVE USING AN OPTIMIZED EXTENDED KALMAN FILTER INTERNATIONAL JOURNAL OF ELECTRONICS AND COMMUNICATION ENGINEERING & TECHNOLOGY (IJECET) International Journal of Electronics and Communication Engineering & Technology (IJECET), ISSN 0976 ISSN 0976 6464(Print)

More information

Optimization-Based Control

Optimization-Based Control Optimization-Based Control Richard M. Murray Control and Dynamical Systems California Institute of Technology DRAFT v2.1a, January 3, 2010 c California Institute of Technology All rights reserved. This

More information

1 Motion of a single particle - Linear momentum, work and energy principle

1 Motion of a single particle - Linear momentum, work and energy principle 1 Motion of a single particle - Linear momentum, work and energy principle 1.1 In-class problem A block of mass m slides down a frictionless incline (see Fig.). The block is released at height h above

More information

Here represents the impulse (or delta) function. is an diagonal matrix of intensities, and is an diagonal matrix of intensities.

Here represents the impulse (or delta) function. is an diagonal matrix of intensities, and is an diagonal matrix of intensities. 19 KALMAN FILTER 19.1 Introduction In the previous section, we derived the linear quadratic regulator as an optimal solution for the fullstate feedback control problem. The inherent assumption was that

More information

Random sample problems

Random sample problems UNIVERSITY OF ALABAMA Department of Physics and Astronomy PH 125 / LeClair Spring 2009 Random sample problems 1. The position of a particle in meters can be described by x = 10t 2.5t 2, where t is in seconds.

More information

Probabilistic Fundamentals in Robotics

Probabilistic Fundamentals in Robotics Probabilistic Fundamentals in Robotics Probabilistic Models of Mobile Robots Robot localization Basilio Bona DAUIN Politecnico di Torino June 2011 Course Outline Basic mathematical framework Probabilistic

More information

Autonomous Navigation for Flying Robots

Autonomous Navigation for Flying Robots Computer Vision Group Prof. Daniel Cremers Autonomous Navigation for Flying Robots Lecture 6.2: Kalman Filter Jürgen Sturm Technische Universität München Motivation Bayes filter is a useful tool for state

More information

A surprising number of people did not divide by 2 and thus got 50 km/hr

A surprising number of people did not divide by 2 and thus got 50 km/hr 1. There are (36) 3 cubic inches in a cubic yard. There are (2.54) 3 cubic centimeters (that is cm 3 ) in a cubic inch. So, we have (2.54) 3 x(36) 3 = 764554.857984 (The 2.54 is defined as the conversion

More information

PHYS1015 MOTION AND RELATIVITY JAN 2015 EXAM ANSWERS

PHYS1015 MOTION AND RELATIVITY JAN 2015 EXAM ANSWERS PHYS1015 MOTION AND RELATIVITY JAN 2015 EXAM ANSWERS Section A A1. (Based on previously seen problem) Displacement as function of time: x(t) = A sin ωt Frequency f = ω/2π. Velocity of mass is v(t) = dx

More information

Separation Principle & Full-Order Observer Design

Separation Principle & Full-Order Observer Design Separation Principle & Full-Order Observer Design Suppose you want to design a feedback controller. Using full-state feedback you can place the poles of the closed-loop system at will. U Plant Kx If the

More information

Mobile Robot Localization

Mobile Robot Localization Mobile Robot Localization 1 The Problem of Robot Localization Given a map of the environment, how can a robot determine its pose (planar coordinates + orientation)? Two sources of uncertainty: - observations

More information

Why do we care? Measurements. Handling uncertainty over time: predicting, estimating, recognizing, learning. Dealing with time

Why do we care? Measurements. Handling uncertainty over time: predicting, estimating, recognizing, learning. Dealing with time Handling uncertainty over time: predicting, estimating, recognizing, learning Chris Atkeson 2004 Why do we care? Speech recognition makes use of dependence of words and phonemes across time. Knowing where

More information

Nonlinear State Estimation! Particle, Sigma-Points Filters!

Nonlinear State Estimation! Particle, Sigma-Points Filters! Nonlinear State Estimation! Particle, Sigma-Points Filters! Robert Stengel! Optimal Control and Estimation, MAE 546! Princeton University, 2017!! Particle filter!! Sigma-Points Unscented Kalman ) filter!!

More information

The Kalman Filter ImPr Talk

The Kalman Filter ImPr Talk The Kalman Filter ImPr Talk Ged Ridgway Centre for Medical Image Computing November, 2006 Outline What is the Kalman Filter? State Space Models Kalman Filter Overview Bayesian Updating of Estimates Kalman

More information

Probabilistic Fundamentals in Robotics. DAUIN Politecnico di Torino July 2010

Probabilistic Fundamentals in Robotics. DAUIN Politecnico di Torino July 2010 Probabilistic Fundamentals in Robotics Probabilistic Models of Mobile Robots Robot localization Basilio Bona DAUIN Politecnico di Torino July 2010 Course Outline Basic mathematical framework Probabilistic

More information

Lecture 6: Bayesian Inference in SDE Models

Lecture 6: Bayesian Inference in SDE Models Lecture 6: Bayesian Inference in SDE Models Bayesian Filtering and Smoothing Point of View Simo Särkkä Aalto University Simo Särkkä (Aalto) Lecture 6: Bayesian Inference in SDEs 1 / 45 Contents 1 SDEs

More information

Distance travelled time taken and if the particle is a distance s(t) along the x-axis, then its instantaneous speed is:

Distance travelled time taken and if the particle is a distance s(t) along the x-axis, then its instantaneous speed is: Chapter 1 Kinematics 1.1 Basic ideas r(t) is the position of a particle; r = r is the distance to the origin. If r = x i + y j + z k = (x, y, z), then r = r = x 2 + y 2 + z 2. v(t) is the velocity; v =

More information

COS Lecture 16 Autonomous Robot Navigation

COS Lecture 16 Autonomous Robot Navigation COS 495 - Lecture 16 Autonomous Robot Navigation Instructor: Chris Clark Semester: Fall 011 1 Figures courtesy of Siegwart & Nourbakhsh Control Structure Prior Knowledge Operator Commands Localization

More information

Chapter 6 Dynamics I: Motion Along a Line

Chapter 6 Dynamics I: Motion Along a Line Chapter 6 Dynamics I: Motion Along a Line Chapter Goal: To learn how to solve linear force-and-motion problems. Slide 6-2 Chapter 6 Preview Slide 6-3 Chapter 6 Preview Slide 6-4 Chapter 6 Preview Slide

More information

Physics 2211 M Quiz #2 Solutions Summer 2017

Physics 2211 M Quiz #2 Solutions Summer 2017 Physics 2211 M Quiz #2 Solutions Summer 2017 I. (16 points) A block with mass m = 10.0 kg is on a plane inclined θ = 30.0 to the horizontal, as shown. A balloon is attached to the block to exert a constant

More information

General Relativity ASTR 2110 Sarazin. Einstein s Equation

General Relativity ASTR 2110 Sarazin. Einstein s Equation General Relativity ASTR 2110 Sarazin Einstein s Equation Curvature of Spacetime 1. Principle of Equvalence: gravity acceleration locally 2. Acceleration curved path in spacetime In gravitational field,

More information

Robotics. Mobile Robotics. Marc Toussaint U Stuttgart

Robotics. Mobile Robotics. Marc Toussaint U Stuttgart Robotics Mobile Robotics State estimation, Bayes filter, odometry, particle filter, Kalman filter, SLAM, joint Bayes filter, EKF SLAM, particle SLAM, graph-based SLAM Marc Toussaint U Stuttgart DARPA Grand

More information

RELATIVE NAVIGATION FOR SATELLITES IN CLOSE PROXIMITY USING ANGLES-ONLY OBSERVATIONS

RELATIVE NAVIGATION FOR SATELLITES IN CLOSE PROXIMITY USING ANGLES-ONLY OBSERVATIONS (Preprint) AAS 12-202 RELATIVE NAVIGATION FOR SATELLITES IN CLOSE PROXIMITY USING ANGLES-ONLY OBSERVATIONS Hemanshu Patel 1, T. Alan Lovell 2, Ryan Russell 3, Andrew Sinclair 4 "Relative navigation using

More information

CS491/691: Introduction to Aerial Robotics

CS491/691: Introduction to Aerial Robotics CS491/691: Introduction to Aerial Robotics Topic: State Estimation Dr. Kostas Alexis (CSE) World state (or system state) Belief state: Our belief/estimate of the world state World state: Real state of

More information

Dynamics Applying Newton s Laws Air Resistance

Dynamics Applying Newton s Laws Air Resistance Dynamics Applying Newton s Laws Air Resistance Lana Sheridan De Anza College Feb 2, 2015 Last Time accelerated frames and rotation Overview resistive forces two models for resistive forces terminal velocities

More information

Description of the motion using vectorial quantities

Description of the motion using vectorial quantities Description of the motion using vectorial quantities RECTILINEAR MOTION ARBITRARY MOTION (3D) INERTIAL SYSTEM OF REFERENCE Circular motion Free fall Description of the motion using scalar quantities Let's

More information

CIS 390 Fall 2016 Robotics: Planning and Perception Final Review Questions

CIS 390 Fall 2016 Robotics: Planning and Perception Final Review Questions CIS 390 Fall 2016 Robotics: Planning and Perception Final Review Questions December 14, 2016 Questions Throughout the following questions we will assume that x t is the state vector at time t, z t is the

More information

Optimization-Based Control

Optimization-Based Control Optimization-Based Control Richard M. Murray Control and Dynamical Systems California Institute of Technology DRAFT v1.7b, 23 February 2008 c California Institute of Technology All rights reserved. This

More information

PROBABILISTIC REASONING OVER TIME

PROBABILISTIC REASONING OVER TIME PROBABILISTIC REASONING OVER TIME In which we try to interpret the present, understand the past, and perhaps predict the future, even when very little is crystal clear. Outline Time and uncertainty Inference:

More information

ECONOMETRIC METHODS II: TIME SERIES LECTURE NOTES ON THE KALMAN FILTER. The Kalman Filter. We will be concerned with state space systems of the form

ECONOMETRIC METHODS II: TIME SERIES LECTURE NOTES ON THE KALMAN FILTER. The Kalman Filter. We will be concerned with state space systems of the form ECONOMETRIC METHODS II: TIME SERIES LECTURE NOTES ON THE KALMAN FILTER KRISTOFFER P. NIMARK The Kalman Filter We will be concerned with state space systems of the form X t = A t X t 1 + C t u t 0.1 Z t

More information

Missing Data and Dynamical Systems

Missing Data and Dynamical Systems U NIVERSITY OF ILLINOIS AT URBANA-CHAMPAIGN CS598PS Machine Learning for Signal Processing Missing Data and Dynamical Systems 12 October 2017 Today s lecture Dealing with missing data Tracking and linear

More information

James T. Shipman Jerry D. Wilson Charles A. Higgins, Jr. Omar Torres. Chapter 2 Motion Cengage Learning

James T. Shipman Jerry D. Wilson Charles A. Higgins, Jr. Omar Torres. Chapter 2 Motion Cengage Learning James T. Shipman Jerry D. Wilson Charles A. Higgins, Jr. Omar Torres Chapter 2 Motion Defining Motion Motion is a continuous change in position can be described by measuring the rate of change of position

More information

Why do we care? Examples. Bayes Rule. What room am I in? Handling uncertainty over time: predicting, estimating, recognizing, learning

Why do we care? Examples. Bayes Rule. What room am I in? Handling uncertainty over time: predicting, estimating, recognizing, learning Handling uncertainty over time: predicting, estimating, recognizing, learning Chris Atkeson 004 Why do we care? Speech recognition makes use of dependence of words and phonemes across time. Knowing where

More information

component risk analysis

component risk analysis 273: Urban Systems Modeling Lec. 3 component risk analysis instructor: Matteo Pozzi 273: Urban Systems Modeling Lec. 3 component reliability outline risk analysis for components uncertain demand and uncertain

More information

Mobile Robot Localization

Mobile Robot Localization Mobile Robot Localization 1 The Problem of Robot Localization Given a map of the environment, how can a robot determine its pose (planar coordinates + orientation)? Two sources of uncertainty: - observations

More information

A Data-driven Approach for Remaining Useful Life Prediction of Critical Components

A Data-driven Approach for Remaining Useful Life Prediction of Critical Components GT S3 : Sûreté, Surveillance, Supervision Meeting GdR Modélisation, Analyse et Conduite des Systèmes Dynamiques (MACS) January 28 th, 2014 A Data-driven Approach for Remaining Useful Life Prediction of

More information

A Crash Course on Kalman Filtering

A Crash Course on Kalman Filtering A Crash Course on Kalman Filtering Dan Simon Cleveland State University Fall 2014 1 / 64 Outline Linear Systems Probability State Means and Covariances Least Squares Estimation The Kalman Filter Unknown

More information