Autonomous Mobile Robots Autonomous Systems Lab Zürich Probabilistic Map Based Localization "Position" Global Map PerceptionMotion Control Cognition Real.

Slides:



Advertisements
Similar presentations
SA-1 Probabilistic Robotics Planning and Control: Partially Observable Markov Decision Processes.
Advertisements

Lirong Xia Approximate inference: Particle filter Tue, April 1, 2014.
(Includes references to Brian Clipp
Monte Carlo Localization for Mobile Robots Karan M. Gupta 03/10/2004
IR Lab, 16th Oct 2007 Zeyn Saigol
Lab 2 Lab 3 Homework Labs 4-6 Final Project Late No Videos Write up
Localization David Johnson cs6370. Basic Problem Go from thisto this.
CS 188: Artificial Intelligence Fall 2009 Lecture 20: Particle Filtering 11/5/2009 Dan Klein – UC Berkeley TexPoint fonts used in EMF. Read the TexPoint.
Autonomous Robot Navigation Panos Trahanias ΗΥ475 Fall 2007.
Mobile Intelligent Systems 2004 Course Responsibility: Ola Bengtsson.
Monte Carlo Localization
A Probabilistic Approach to Collaborative Multi-robot Localization Dieter Fox, Wolfram Burgard, Hannes Kruppa, Sebastin Thrun Presented by Rajkumar Parthasarathy.
City College of New York 1 Dr. John (Jizhong) Xiao Department of Electrical Engineering City College of New York A Taste of Localization.
Bayesian Filtering for Location Estimation D. Fox, J. Hightower, L. Liao, D. Schulz, and G. Borriello Presented by: Honggang Zhang.
Particle Filters++ TexPoint fonts used in EMF.
HCI / CprE / ComS 575: Computational Perception
Mobile Robot controlled by Kalman Filter
Markov Localization & Bayes Filtering
Localization and Mapping (3)
/09/dji-phantom-crashes-into- canadian-lake/
Computer vision: models, learning and inference Chapter 19 Temporal models.
Lab 4 1.Get an image into a ROS node 2.Find all the orange pixels (suggest HSV) 3.Identify the midpoint of all the orange pixels 4.Explore the findContours.
STA Lecture 161 STA 291 Lecture 16 Normal distributions: ( mean and SD ) use table or web page. The sampling distribution of and are both (approximately)
Localization and Map Building
Simultaneous Localization and Mapping Presented by Lihan He Apr. 21, 2006.
1 Robot Motion and Perception (ch. 5, 6) These two chapters discuss how one obtains the motion model and measurement model mentioned before. They are needed.
Probabilistic Robotics: Monte Carlo Localization
Recap: Reasoning Over Time  Stationary Markov models  Hidden Markov models X2X2 X1X1 X3X3 X4X4 rainsun X5X5 X2X2 E1E1 X1X1 X3X3 X4X4 E2E2 E3E3.
Mapping and Localization with RFID Technology Matthai Philipose, Kenneth P Fishkin, Dieter Fox, Dirk Hahnel, Wolfram Burgard Presenter: Aniket Shah.
Visibility Graph. Voronoi Diagram Control is easy: stay equidistant away from closest obstacles.
ECGR4161/5196 – July 26, 2011 Read Chapter 5 Exam 2 contents: Labs 0, 1, 2, 3, 4, 6 Homework 1, 2, 3, 4, 5 Book Chapters 1, 2, 3, 4, 5 All class notes.
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.
Young Ki Baik, Computer Vision Lab.
Visual SLAM Visual SLAM SPL Seminar (Fri) Young Ki Baik Computer Vision Lab.
The Hardware Design of the Humanoid Robot RO-PE and the Self-localization Algorithm in RoboCup Tian Bo Control and Mechatronics Lab Mechanical Engineering.
Mobile Robot Localization (ch. 7)
1 Research Question  Can a vision-based mobile robot  with limited computation and memory,  and rapidly varying camera positions,  operate autonomously.
1 CMPUT 412 Localization Csaba Szepesvári University of Alberta TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A.
City College of New York 1 Dr. Jizhong Xiao Department of Electrical Engineering City College of New York Advanced Mobile Robotics.
Robotics Club: 5:30 this evening
CSE-473 Project 2 Monte Carlo Localization. Localization as state estimation.
Review of Probability. Important Topics 1 Random Variables and Probability Distributions 2 Expected Values, Mean, and Variance 3 Two Random Variables.
1/17/2016CS225B Kurt Konolige Probabilistic Models of Sensing and Movement Move to probability models of sensing and movement Project 2 is about complex.
Probabilistic Robotics
State Estimation and Kalman Filtering Zeeshan Ali Sayyed.
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.
General approach: A: action S: pose O: observation Position at time t depends on position previous position and action, and current observation.
Probabilistic Robotics Bayes Filter Implementations Gaussian filters.
Line fitting.
SLAM : Simultaneous Localization and Mapping
HMM: Particle filters Lirong Xia. HMM: Particle filters Lirong Xia.
Probabilistic Robotics
Simultaneous Localization and Mapping
Markov ó Kalman Filter Localization
Introduction to particle filter
Lecture 10: Observers and Kalman Filters
Non-parametric Filters
Particle filters for Robot Localization
Introduction to particle filter
A Short Introduction to the Bayes Filter and Related Models
Motion Models (cont) 2/16/2019.
Probabilistic Map Based Localization
Hidden Markov Models Markov chains not so useful for most agents
Principle of Bayesian Robot Localization.
Non-parametric Filters: Particle Filters
Non-parametric Filters
Non-parametric Filters: Particle Filters
HMM: Particle filters Lirong Xia. HMM: Particle filters Lirong Xia.
Presentation transcript:

Autonomous Mobile Robots Autonomous Systems Lab Zürich Probabilistic Map Based Localization "Position" Global Map PerceptionMotion Control Cognition Real World Environment Localization Path Environment Model Local Map

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Outline of today’s lecture  Definition and illustration of probabilistic map based localization  Two solutions  Markov localization (pages of the textbook)  Kalman filter localization (pages ) 5 - Localization and Mapping 5252

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL The problem  Consider a mobile robot moving in a known environment.  As it starts to move, say from a precisely known location, it might keep track of its location using odometry.  However, after a certain movement the robot will get very uncertain about its position => update using an observation of its environment  Observation leads also to an estimate of the robot position which can then be fused with the odometric estimation to get the best possible update of the robots actual position. 5 - Localization and Mapping 5353

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL 5 - Localization and Mapping 5454 Illustration of probabilistic bap based localization: Improving belief state by moving The robot is placed somewhere in the environment but it is not told its location The robot queries its sensors and finds it is next to a pillar The robot moves one meter forward. To account for inherent noise in robot motion the new belief is smoother The robot queries its sensors and again it finds itself next to a pillar Finally, it updates its belief by combining this information with its previous belief

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Why a probabilistic approach for mobile robot localization?  Because the data coming from the robot sensors are affected by measurement errors, we can only compute the probability that the robot is in a given configuration.  The key idea in probabilistic robotics is to represent uncertainty using probability theory: instead of giving a single best estimate of the current robot configuration, probabilistic robotics represents the robot configuration as a probability distribution over the all possible robot poses. This probability is called belief. 5 - Localization and Mapping 5555

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Example probability distributions for representing robot configurations  In the following we consider a robot which is constrained to move along a straight rail. The problem is one dimensional.  The robot configuration is the position x along the rail. 5656

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Example 1: Uniform distribution  This is used when the robot does not know where it is. It means that the information about the robot configuration is null. Remember that in order to be a probability distribution a function p(x) must always satisfy the following constraint: 5 - Localization and Mapping 5757

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Example 2: Multimodal distribution  The robot is in the region around “a” or “b”. 5 - Localization and Mapping 5858

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Example 3: Dirac distribution  The robot has a probability of 1.0 (i.e. 100%) to be at position “a”.  Note, the Dirac distribution is usually represented with an arrow.  The Dirac function is defined as: 5 - Localization and Mapping 5959

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Example 4: Gaussian distribution  The Gaussian distribution has the shape of a bell and is defined by the following formula: where μ is the mean value and σ is the standard deviation.  The Gaussian distribution is also called normal distribution and is usually abbreviated with N(μ,σ ). 5 - Localization and Mapping 5 10

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Description of the probabilistic localization problem  Consider a mobile robot moving in a known environment. 5 - Localization and Mapping 5 11

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Description of the probabilistic localization problem  Consider a mobile robot moving in a known environment.  As it starts to move, say from a precisely known location, it can keep track of its motion using odometry. 5 - Localization and Mapping 5 12

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Description of the probabilistic localization problem  Consider a mobile robot moving in a known environment.  As it starts to move, say from a precisely known location, it can keep track of its motion using odometry.  Due to odometry uncertainty, after some movement the robot will become very uncertain about its position. 5 - Localization and Mapping 5 13

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Description of the probabilistic localization problem  Consider a mobile robot moving in a known environment.  As it starts to move, say from a precisely known location, it can keep track of its motion using odometry.  Due to odometry uncertainty, after some movement the robot will become very uncertain about its position.  To keep position uncertainty from growing unbounded, the robot must localize itself in relation to its environment map. To localize, the robot might use its on-board exteroceptive sensors (e.g. ultrasonic, laser, vision sensors) to make observations of its environment 5 - Localization and Mapping 5 14 Sensor reference frame

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Description of the probabilistic localization problem  Consider a mobile robot moving in a known environment.  As it starts to move, say from a precisely known location, it can keep track of its motion using odometry.  Due to odometry uncertainty, after some movement the robot will become very uncertain about its position.  To keep position uncertainty from growing unbounded, the robot must localize itself in relation to its environment map. To localize, the robot might use its on-board exteroceptive sensors (e.g. ultrasonic, laser, vision sensors) to make observations of its environment  The robot updates its position based on the observation. Its uncertainty shrinks. 5 - Localization and Mapping 5 15 Sensor reference frame

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Action and perception updates  In robot localization, we distinguish two update steps: 1.ACTION update: the robot moves and estimates its position through its proprioceptive sensors. During this step, the robot uncertainty grows. 2.PERCEPTION update: the robot makes an observation using its exteroceptive sensors and correct its position by opportunely combining its belief before the observation with the probability of making exactly that observation. During this step, the robot uncertainty shrinks. 5 - Localization and Mapping 5 16 Robot belief before the observation Probability of making this observation

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL The solution to the probabilistic localization problem Solving the probabilistic localization problem consists in solving separately the Action and Perception updates 5 - Localization and Mapping 5 17

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL The solution to the probabilistic localization problem A probabilistic approach to the mobile robot localization problem is a method able to compute the probability distribution of the robot configuration during each Action and Perception step. The ingredients are: 1.The initial probability distribution 2.The statistical error model of the proprioceptive sensors (e.g. wheel encoders) 3.The statistical error model of the exteroceptive sensors (e.g. laser, sonar, camera) 4.Map of the environment (If the map is not known a priori then the robots needs to build a map of the environment and then localizing in it. This is called SLAM, Simultaneous Localization And Mapping) 5 - Localization and Mapping 5 18

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL The solution to the probabilistic localization problem How do we solve the Action and Perception updates?  Action update uses the Theorem of Total probability (or convolution)  Perception update uses the Bayes rule 5 - Localization and Mapping 5 19

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Action update  In this phase the robot estimates its current position based on the knowledge of the previous position and the odometric input  Using the Theorem of Total probability, we compute the robot’s belief after the motion as which can be written as a convolution 5 - Localization and Mapping 5 20

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Perception update  In this phase the robot corrects its previous position (i.e. its former belief) by opportunely combining it with the information from its exteroceptive sensors where η is a normalization factor which makes the probability integrate to Localization and Mapping 5 21

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Perception update  Explanation of 5 - Localization and Mapping 5 22 This is the probability of observing z given that the robot is at position x, that is:

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL 5 - Localization and Mapping 5 23 Initial probability distribution Perception update Action update Perception update Illustration of probabilistic bap based localization

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL 5 - Localization and Mapping 5 24 Initial probability distribution Perception update Action update Perception update Illustration of probabilistic bap based localization

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL 5 - Localization and Mapping 5 25 Initial probability distribution Perception update Action update Perception update Illustration of probabilistic bap based localization

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL 5 - Localization and Mapping 5 26 Illustration of probabilistic bap based localization Initial probability distribution Perception update Action update Perception update

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Markov versus Kalman localization 5 - Localization and Mapping 5 27 Two approaches exist to represent the probability distribution and to compute the convolution and Bayes rule during the Action and Perception phases MarkovKalman The configuration space is divided into many cells. The configuration space of a robot moving on a plane is 3D dimensional (x,y,θ). Each cell contains the probability of the robot to be in that cell. The probability distribution of the sensors model is also discrete. During Action and Perception, all the cells are updated The probability distribution of both the robot configuration and the sensor model is assumed to be continuous and Gaussian! Since a Gaussian distribution only described through mean value μ and variance σ 2, we need only to update μ and Σ 2. Therefore the computational cost is very low!

Autonomous Mobile Robots Autonomous Systems Lab Zürich Probabilistic Map Based Localization: Markov Localization Pages: of the textbook "Position" Global Map PerceptionMotion Control Cognition Real World Environment Localization Path Environment Model Local Map

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Markov localization  Markov localization uses a grid space representation of the robot configuration.  For sake of simplicity let us consider a robot moving in a one dimensional environment (e.g. moving on a rail). Therefore the robot configuration space can be represented through the sole variable x.  Let us discretize the configuration space into 10 cells 5 - Localization and Mapping 5 29

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Markov localization  Let us discretize the configuration space into 10 cells  Suppose that the robot’s initial belief is a uniform distribution from 0 to 3. Observe that all the elements were normalized so that their sum is Localization and Mapping 5 30

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Markov localization  Initial belief distribution  Action phase: Let us assume that the robot moves forward with the following statistical model  This means that we have 50% probability that the robot moved 2 or 3 cells forward.  Considering what the probability was before moving, what will the probability be after the motion? 5 - Localization and Mapping 5 31

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Markov localization: Action update  The solution is given by the convolution of the two distributions 5 - Localization and Mapping 5 32

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Markov localization: Action update - Explanation  Here, we would like to explain where this formula actually comes from. In order to compute the probability of position x 1 in the new belief state, one must sum over all the possible ways in which the robot may reach x 1 according to the potential positions expressed in the former belief state x 0 and the potential input expressed by u 1. Observe that because is limited between 0 and 3, the robot can only reach the states between 2 to 6, therefore  You can now verify that equations that these equations are computing nothing but the convolution of the Action update: 5 - Localization and Mapping 5 33

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Markov localization: Perception update  Let us now assume that the robot uses its onboard range finder and measures the distance from the origin. Assume that the statistical error model of the sensors is This plot tells us that the distance of the robot from the origin can be equally 5 or 6 units.  What will the final robot belief be after this measurement? The answer is again given by the Bayes rule: 5 - Localization and Mapping 5 34

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL 5 - Localization and Mapping 5 35 Markov Localization: Case Study 2 – Grid Map (5)  Example 2: Museum  Laser scan 1 Courtesy of W. Burgard

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL 5 - Localization and Mapping 5 36 Markov Localization: Case Study 2 – Grid Map (6)  Example 2: Museum  Laser scan 2 Courtesy of W. Burgard

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL 5 - Localization and Mapping 5 37 Markov Localization: Case Study 2 – Grid Map (7)  Example 2: Museum  Laser scan 3 Courtesy of W. Burgard

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL 5 - Localization and Mapping 5 38 Markov Localization: Case Study 2 – Grid Map (8)  Example 2: Museum  Laser scan 13 Courtesy of W. Burgard

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL 5 - Localization and Mapping 5 39 Markov Localization: Case Study 2 – Grid Map (9)  Example 2: Museum  Laser scan 21 Courtesy of W. Burgard

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL Drawbacks of Markov localization  In the more general planar motion case the grid-map is a three-dimensional array where each cell contains the probability of the robot to be in that cell. In this case, the cell size must be chosen carefully.  During each prediction and measurement steps, all the cells are updated. If the number of cells in the map is too large, the computation can become too heavy for real-time operations.  The convolution in a 3D space is clearly the computationally most expensive step.  As an example, consider a 30x30 m environment and a cell size of 0.1 m x 0.1 m x 1 deg. In this case, the number of cells which need to be updated at each step would be 30x30x100x360=32.4 million cells! Fine fixed decomposition grids result in a huge state space  Very important processing power needed  Large memory requirement 5 - Localization and Mapping 5 40

© R. Siegwart, D. Scaramuzza ETH Zurich - ASL 5 - Localization and Mapping 5 41 Drawbacks of Markov localization  Reducing complexity  Various approached have been proposed for reducing complexity One possible solution would be to increase the cell size at the expense of localization accuracy. Another solution is to use an adaptive cell decomposition instead of a fixed cell decomposition.  Randomized Sampling / Particle Filter  The main goal is to reduce the number of states that are updated in each step  Approximated belief state by representing only a ‘representative’ subset of all states (possible locations)  E.g update only 10% of all possible locations  The sampling process is typically weighted, e.g. put more samples around the local peaks in the probability density function  However, you have to ensure some less likely locations are still tracked, otherwise the robot might get lost