Markov Localization & Bayes Filtering 1 with Kalman Filters Discrete Filters Particle Filters Slides adapted from Thrun et al., Probabilistic Robotics.

Slides:



Advertisements
Similar presentations
EKF, UKF TexPoint fonts used in EMF.
Advertisements

Monte Carlo Localization for Mobile Robots Karan M. Gupta 03/10/2004
Robot Localization Using Bayesian Methods
IR Lab, 16th Oct 2007 Zeyn Saigol
1 Slides for the book: Probabilistic Robotics Authors: Sebastian Thrun Wolfram Burgard Dieter Fox Publisher: MIT Press, Web site for the book & more.
Bayesian Robot Programming & Probabilistic Robotics Pavel Petrovič Department of Applied Informatics, Faculty of Mathematics, Physics and Informatics
Recursive Bayes Filtering Advanced AI Wolfram Burgard.
Bayes Filters Pieter Abbeel UC Berkeley EECS Many slides adapted from Thrun, Burgard and Fox, Probabilistic Robotics TexPoint fonts used in EMF. Read the.
Probabilistic Robotics Bayes Filter Implementations Particle filters.
Introduction to Mobile Robotics Bayes Filter Implementations Gaussian filters.
Recursive Bayes Filtering Advanced AI
Localization David Johnson cs6370. Basic Problem Go from thisto this.
Probabilistic Robotics: Kalman Filters
Particle Filters Pieter Abbeel UC Berkeley EECS Many slides adapted from Thrun, Burgard and Fox, Probabilistic Robotics TexPoint fonts used in EMF. Read.
Stanford CS223B Computer Vision, Winter 2007 Lecture 12 Tracking Motion Professors Sebastian Thrun and Jana Košecká CAs: Vaibhav Vaish and David Stavens.
© sebastian thrun, CMU, CS226 Statistical Techniques In Robotics Monte Carlo Localization Sebastian Thrun (Instructor) and Josh Bao (TA)
CS 547: Sensing and Planning in Robotics Gaurav S. Sukhatme Computer Science Robotic Embedded Systems Laboratory University of Southern California
SLAM: Simultaneous Localization and Mapping: Part I Chang Young Kim These slides are based on: Probabilistic Robotics, S. Thrun, W. Burgard, D. Fox, MIT.
Particle Filter/Monte Carlo Localization
Monte Carlo Localization
Probabilistic Robotics: Motion Model/EKF Localization
Probabilistic Robotics Introduction Probabilities Bayes rule Bayes filters.
A Probabilistic Approach to Collaborative Multi-robot Localization Dieter Fox, Wolfram Burgard, Hannes Kruppa, Sebastin Thrun Presented by Rajkumar Parthasarathy.
Probabilistic Robotics
Probabilistic Robotics Bayes Filter Implementations Particle filters.
Stanford CS223B Computer Vision, Winter 2007 Lecture 12 Tracking Motion Professors Sebastian Thrun and Jana Košecká CAs: Vaibhav Vaish and David Stavens.
Particle Filtering for Non- Linear/Non-Gaussian System Bohyung Han
Probabilistic Robotics Bayes Filter Implementations Gaussian filters.
SA-1 Probabilistic Robotics Bayes Filter Implementations Discrete filters.
Bayesian Filtering Dieter Fox Probabilistic Robotics Key idea: Explicit representation of uncertainty (using the calculus of probability theory) Perception.
HCI / CprE / ComS 575: Computational Perception
ROBOT MAPPING AND EKF SLAM
Bayesian Filtering for Robot Localization
Markov Localization & Bayes Filtering
From Bayesian Filtering to Particle Filters Dieter Fox University of Washington Joint work with W. Burgard, F. Dellaert, C. Kwok, S. Thrun.
Computer Vision Group Prof. Daniel Cremers Autonomous Navigation for Flying Robots Lecture 6.2: Kalman Filter Jürgen Sturm Technische Universität München.
Simultaneous Localization and Mapping Presented by Lihan He Apr. 21, 2006.
Probabilistic Robotics: Monte Carlo Localization
Probabilistic Robotics Robot Localization. 2 Localization Given Map of the environment. Sequence of sensor measurements. Wanted Estimate of the robot’s.
Probabilistic Robotics Bayes Filter Implementations Gaussian filters.
1 Robot Environment Interaction Environment perception provides information about the environment’s state, and it tends to increase the robot’s knowledge.
Probabilistic Robotics Bayes Filter Implementations.
Young Ki Baik, Computer Vision Lab.
Computer Vision Group Prof. Daniel Cremers Autonomous Navigation for Flying Robots Lecture 6.1: Bayes Filter Jürgen Sturm Technische Universität München.
Mobile Robot Localization (ch. 7)
Robot Mapping Short Introduction to Particle Filters and Monte Carlo Localization.
City College of New York 1 Dr. Jizhong Xiao Department of Electrical Engineering City College of New York Advanced Mobile Robotics.
1 Assignment, Project and Presentation Mobile Robot Localization by using Particle Filter by Chong Wang, Chong Fu, and Guanghui Luo. Tracking, Mapping.
Sequential Monte-Carlo Method -Introduction, implementation and application Fan, Xin
CSE-473 Project 2 Monte Carlo Localization. Localization as state estimation.
Probabilistic Robotics
State Estimation and Kalman Filtering Zeeshan Ali Sayyed.
Extended Kalman Filter
CS 547: Sensing and Planning in Robotics Gaurav S. Sukhatme Computer Science Robotic Embedded Systems Laboratory University of Southern California
The Unscented Particle Filter 2000/09/29 이 시은. Introduction Filtering –estimate the states(parameters or hidden variable) as a set of observations becomes.
Probabilistic Robotics Introduction Probabilities Bayes rule Bayes filters.
Probabilistic Robotics Probability Theory Basics Error Propagation Slides from Autonomous Robots (Siegwart and Nourbaksh), Chapter 5 Probabilistic Robotics.
Particle filters for Robot Localization An implementation of Bayes Filtering Markov Localization.
Probabilistic Robotics Bayes Filter Implementations Gaussian filters.
Probabilistic Robotics Bayes Filter Implementations Gaussian filters.
Probabilistic Robotics
Probabilistic Robotics
Markov ó Kalman Filter Localization
State Estimation Probability, Bayes Filtering
Particle Filter/Monte Carlo Localization
Particle filters for Robot Localization
EE-565: Mobile Robotics Non-Parametric Filters Module 2, Lecture 5
Extended Kalman Filter
Extended Kalman Filter
Probabilistic Robotics Bayes Filter Implementations FastSLAM
Presentation transcript:

Markov Localization & Bayes Filtering 1 with Kalman Filters Discrete Filters Particle Filters Slides adapted from Thrun et al., Probabilistic Robotics

Faculties of Engineering & Computer Science 2 Autonomous Robotics CSCI 6905 / Mech 6905 – Section 3 Dalhousie Fall 2011 / 2012 Academic Term Introduction Motion Perception Control Concluding Remarks LEGO Mindstorms Control Scheme for Autonomous Mobile Robot

Faculties of Engineering & Computer Science 3 Autonomous Robotics CSCI 6905 / Mech 6905 – Section 3 Dalhousie Fall 2011 / 2012 Academic Term Introduction Motion Perception Control Concluding Remarks LEGO Mindstorms Control Scheme for Autonomous Mobile Robot – the plan –Thomas will cover generalized Bayesian filters for localization next week –Mae sets up the background for him, today, by discussing motion and sensor models as well as robot control –Mae then follows on Bayesian filters to do a specific example, underwater SLAM

Markov Localization 4 The robot doesn’t know where it is. Thus, a reasonable initial believe of it’s position is a uniform distribution.

Markov Localization 5 A sensor reading is made (USE SENSOR MODEL) indicating a door at certain locations (USE MAP). This sensor reading should be integrated with prior believe to update our believe (USE BAYES).

Markov Localization 6 The robot is moving (USE MOTION MODEL) which adds noise.

Markov Localization 7 A new sensor reading (USE SENSOR MODEL) indicates a door at certain locations (USE MAP). This sensor reading should be integrated with prior believe to update our believe (USE BAYES).

Markov Localization 8 The robot is moving (USE MOTION MODEL) which adds noise. …

9 Bayes Formula

10 Bayes Rule with Background Knowledge

11 Normalization Algorithm:

12 Recursive Bayesian Updating Markov assumption: z n is independent of z 1,...,z n-1 if we know x.

13 Putting oberservations and actions together: Bayes Filters Given: Stream of observations z and action data u: Sensor model P(z|x). Action model P(x|u,x’). Prior probability of the system state P(x). Wanted: Estimate of the state X of a dynamical system. The posterior of the state is also called Belief:

14 Graphical Representation and Markov Assumption Underlying Assumptions Static world Independent noise Perfect model, no approximation errors

15 Bayes Filters Bayes z = observation u = action x = state Markov Total prob. Markov

Prediction Correction

17 Bayes Filter Algorithm 1. Algorithm Bayes_filter( Bel(x),d ): 2. 0 3. If d is a perceptual data item z then 4. For all x do For all x do Else if d is an action data item u then 10. For all x do Return Bel’(x)

18 Bayes Filters are Familiar! Kalman filters Particle filters Hidden Markov models Dynamic Bayesian networks Partially Observable Markov Decision Processes (POMDPs)

19

SA-1 Probabilistic Robotics Bayes Filter Implementations Gaussian filters

Linear transform of Gaussians --   Univariate Gaussians

We stay in the “Gaussian world” as long as we start with Gaussians and perform only linear transformations. Multivariate Gaussians

23 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

24 Linear Gaussian Systems: Initialization Initial belief is normally distributed:

25 Dynamics are linear function of state and control plus additive noise: Linear Gaussian Systems: Dynamics

26 Observations are linear function of state plus additive noise: Linear Gaussian Systems: Observations

27 Kalman Filter Algorithm 1. Algorithm Kalman_filter(  t-1,  t-1, u t, z t ): 2. Prediction: Correction: Return  t,  t

28 Kalman Filter Summary Highly efficient: Polynomial in measurement dimensionality k and state dimensionality n: O(k n 2 ) Optimal for linear Gaussian systems! Most robotics systems are nonlinear!

29 Nonlinear Dynamic Systems Most realistic robotic problems involve nonlinear functions

30 Linearity Assumption Revisited

31 Non-linear Function

32 EKF Linearization (1)

33 EKF Linearization (2)

34 EKF Linearization (3)

35 Prediction: Correction: EKF Linearization: First Order Taylor Series Expansion

36 EKF Algorithm 1.Extended_Kalman_filter (  t-1,  t-1, u t, z t ): 2. Prediction: Correction: Return  t,  t

37 Localization Given Map of the environment. Sequence of sensor measurements. Wanted Estimate of the robot’s position. Problem classes Position tracking Global localization Kidnapped robot problem (recovery) “Using sensory information to locate the robot in its environment is the most fundamental problem to providing a mobile robot with autonomous capabilities.” [Cox ’91]

38 Landmark-based Localization

39 EKF Summary Highly efficient: Polynomial in measurement dimensionality k and state dimensionality n: O(k n 2 ) Not optimal! Can diverge if nonlinearities are large! Works surprisingly well even when all assumptions are violated!

40 [Arras et al. 98]: Laser range-finder and vision High precision (<1cm accuracy) Kalman Filter-based System [Courtesy of Kai Arras]

41 Multi- hypothesis Tracking

42 Belief is represented by multiple hypotheses Each hypothesis is tracked by a Kalman filter Additional problems: Data association: Which observation corresponds to which hypothesis? Hypothesis management: When to add / delete hypotheses? Huge body of literature on target tracking, motion correspondence etc. Localization With MHT

43 MHT: Implemented System (2) Courtesy of P. Jensfelt and S. Kristensen

SA-1 Probabilistic Robotics Bayes Filter Implementations Discrete filters

45 Piecewise Constant

46 Discrete Bayes Filter Algorithm 1. Algorithm Discrete_Bayes_filter( Bel(x),d ): 2. 0 3. If d is a perceptual data item z then 4. For all x do For all x do Else if d is an action data item u then 10. For all x do Return Bel’(x)

47 Grid-based Localization

48 Sonars and Occupancy Grid Map

SA-1 Probabilistic Robotics Bayes Filter Implementations Particle filters

Sample-based Localization (sonar)

 Represent belief by random samples  Estimation of non-Gaussian, nonlinear processes  Monte Carlo filter, Survival of the fittest, Condensation, Bootstrap filter, Particle filter  Filtering: [Rubin, 88], [Gordon et al., 93], [Kitagawa 96]  Computer vision: [Isard and Blake 96, 98]  Dynamic Bayesian Networks: [Kanazawa et al., 95]d Particle Filters

Weight samples: w = f / g Importance Sampling

Importance Sampling with Resampling: Landmark Detection Example

Particle Filters

Sensor Information: Importance Sampling

Robot Motion

Sensor Information: Importance Sampling

Robot Motion

1. Algorithm particle_filter( S t-1, u t-1 z t ): For Generate new samples 4. Sample index j(i) from the discrete distribution given by w t-1 5. Sample from using and 6. Compute importance weight 7. Update normalization factor 8. Insert 9. For 10. Normalize weights Particle Filter Algorithm

draw x i t  1 from Bel (x t  1 ) draw x i t from p ( x t | x i t  1,u t  1 ) Importance factor for x i t : Particle Filter Algorithm

Start Motion Model Reminder

Proximity Sensor Model Reminder Laser sensor Sonar sensor

63 Initial Distribution

64 After Incorporating Ten Ultrasound Scans

65 After Incorporating 65 Ultrasound Scans

66 Estimated Path

Localization for AIBO robots

68 Limitations The approach described so far is able to track the pose of a mobile robot and to globally localize the robot. How can we deal with localization errors (i.e., the kidnapped robot problem)?

69 Approaches Randomly insert samples (the robot can be teleported at any point in time). Insert random samples proportional to the average likelihood of the particles (the robot has been teleported with higher probability when the likelihood of its observations drops).

70 Global Localization

71 Kidnapping the Robot

Recovery from Failure

73 Summary Particle filters are an implementation of recursive Bayesian filtering They represent the posterior by a set of weighted samples. In the context of localization, the particles are propagated according to the motion model. They are then weighted according to the likelihood of the observations. In a re-sampling step, new particles are drawn with a probability proportional to the likelihood of the observation.