270 likes | 283 Views
This guide dives into implementing Bayes and Kalman filters in probabilistic robotics, emphasizing Gaussian filters for localization. Explore the algorithms, predictions, corrections, and applications in various fields. Stay tuned for non-linear system discussions!
E N D
Probabilistic Robotics Bayes Filter Implementations Gaussian filters
Bayes Filter Reminder • Algorithm Bayes_filter( Bel(x),d ): • h=0 • Ifd is a perceptual data item z then • For all x do • For all x do • Else ifd is an action data item uthen • For all x do • ReturnBel’(x)
Bayes Filter Reminder • Prediction • Correction
Kalman Filter • Bayes filter with Gaussians • Developed in the late 1950's • Most relevant Bayes filter variantin practice • Applications range from economics, wheather forecasting, satellite navigation to robotics and many more. • The Kalman filter "algorithm" isa couple of matrix multiplications!
m -s s m Multivariate Gaussians Univariate
Gaussians 1D 3D 2D Video
Properties of Gaussians • Univariate • Multivariate • We stay in the “Gaussian world” as long as we start with Gaussians and perform only linear transformations
Introduction to Kalman Filter (1) • Two measurements no dynamics • Weighted least-square • Finding minimum error • After some calculation and rearrangements • Another way to look at it – weigthed mean
Discrete Kalman Filter • Estimates the state x of a discrete-time controlled process that is governed by the linear stochastic difference equation • with a measurement Matrix (nxn) that describes how the state evolves from t to t-1 without controls or noise. Matrix (nxl) that describes how the control ut changes the state from t to t-1. Matrix (kxn) that describes how to map the state xt to an observation zt. Random variables representing the process and measurement noise that are assumed to be independent and normally distributed with covariance Rt and Qt respectively.
Kalman Filter Updates in 1D prediction measurement correction It's a weighted mean!
Linear Gaussian Systems: Initialization • Initial belief is normally distributed:
Linear Gaussian Systems: Dynamics • Dynamics are linear function of state and control plus additive noise:
Linear Gaussian Systems: Observations • Observations are linear function of state plus additive noise:
Kalman Filter Algorithm • Algorithm Kalman_filter( mt-1,St-1, ut, zt): • Prediction: • Correction: • Returnmt,St
Prediction • Observation • Correction • Matching Kalman Filter Algorithm
Prediction The Prediction-Correction-Cycle
Correction The Prediction-Correction-Cycle
Prediction Correction The Prediction-Correction-Cycle
Kalman Filter Summary • Highly efficient: Polynomial in measurement dimensionality k and state dimensionality n: O(k2.376 + n2) • Optimal for linear Gaussian systems! • Most robotics systems are nonlinear!
Nonlinear Dynamic Systems • Most realistic robotic problems involve nonlinear functions • To be continued