Computer Vision Group Prof. Daniel Cremers. 11. Sampling Methods

Similar documents
Introduction to Mobile Robotics Bayes Filter Particle Filter and Monte Carlo Localization. Wolfram Burgard

Probabilistic Robotics

Probabilistic Robotics

Practical Course WS12/13 Introduction to Monte Carlo Localization

L10. PARTICLE FILTERING CONTINUED. NA568 Mobile Robotics: Methods & Algorithms

This chapter explains two techniques which are frequently used throughout

AUTONOMOUS SYSTEMS. PROBABILISTIC LOCALIZATION Monte Carlo Localization

Humanoid Robotics. Monte Carlo Localization. Maren Bennewitz

Robotics. Lecture 5: Monte Carlo Localisation. See course website for up to date information.

Particle Filter in Brief. Robot Mapping. FastSLAM Feature-based SLAM with Particle Filters. Particle Representation. Particle Filter Algorithm

Adapting the Sample Size in Particle Filters Through KLD-Sampling

COS Lecture 13 Autonomous Robot Navigation

Robot Mapping. A Short Introduction to the Bayes Filter and Related Models. Gian Diego Tipaldi, Wolfram Burgard

Monte Carlo Localization using Dynamically Expanding Occupancy Grids. Karan M. Gupta

Adapting the Sample Size in Particle Filters Through KLD-Sampling

Revising Stereo Vision Maps in Particle Filter Based SLAM using Localisation Confidence and Sample History

CSE 490R P1 - Localization using Particle Filters Due date: Sun, Jan 28-11:59 PM

Particle Filters. CSE-571 Probabilistic Robotics. Dependencies. Particle Filter Algorithm. Fast-SLAM Mapping

IROS 05 Tutorial. MCL: Global Localization (Sonar) Monte-Carlo Localization. Particle Filters. Rao-Blackwellized Particle Filters and Loop Closing

Overview. EECS 124, UC Berkeley, Spring 2008 Lecture 23: Localization and Mapping. Statistical Models

Autonomous Mobile Robot Design

Particle Filter for Robot Localization ECE 478 Homework #1

Monte Carlo Localization

7630 Autonomous Robotics Probabilities for Robotics

Introduction to Mobile Robotics Probabilistic Motion Models

Probabilistic Robotics

Motion Models (cont) 1 3/15/2018

Probabilistic Robotics

Where s the Boss? : Monte Carlo Localization for an Autonomous Ground Vehicle using an Aerial Lidar Map

Sensor Modalities. Sensor modality: Different modalities:

THE classical approach to multiple target tracking (MTT) is

SLAM: Robotic Simultaneous Location and Mapping

Probabilistic Robotics

Tracking Multiple Moving Objects with a Mobile Robot

EE565:Mobile Robotics Lecture 3

Monte Carlo Localization for Mobile Robots

Localization and Map Building

Localization, Mapping and Exploration with Multiple Robots. Dr. Daisy Tang

Approximate Bayesian Computation. Alireza Shafaei - April 2016

Probabilistic Robotics. FastSLAM

Monte Carlo Simulations

Introduction to Mobile Robotics SLAM Grid-based FastSLAM. Wolfram Burgard, Cyrill Stachniss, Maren Bennewitz, Diego Tipaldi, Luciano Spinello

CAMERA POSE ESTIMATION OF RGB-D SENSORS USING PARTICLE FILTERING

Gaussian Processes for Robotics. McGill COMP 765 Oct 24 th, 2017

7. Boosting and Bagging Bagging

ECE276A: Sensing & Estimation in Robotics Lecture 11: Simultaneous Localization and Mapping using a Particle Filter

Particle Filters for Visual Tracking

Probability and Statistics for Final Year Engineering Students

F1/10 th Autonomous Racing. Localization. Nischal K N

Probabilistic Graphical Models

Uncertainties: Representation and Propagation & Line Extraction from Range data

Stochastic Simulation: Algorithms and Analysis

An Adaptive Fusion Architecture for Target Tracking

Quantitative Biology II!

(W: 12:05-1:50, 50-N202)

Augmented Reality, Advanced SLAM, Applications

Simultaneous Localization and Mapping

Lesson 3: Particle Filters

Introduction to Mobile Robotics

Mobile Robotics. Mathematics, Models, and Methods. HI Cambridge. Alonzo Kelly. Carnegie Mellon University UNIVERSITY PRESS

NERC Gazebo simulation implementation

Robust Monte Carlo Localization for Mobile Robots

Computer Vision Group Prof. Daniel Cremers. 4. Probabilistic Graphical Models Directed Models

Robust Monte-Carlo Localization using Adaptive Likelihood Models

Voronoi Tracking: Location Estimation Using Sparse and Noisy Sensor Data

CSE-571 Robotics. Sensors for Mobile Robots. Beam-based Sensor Model. Proximity Sensors. Probabilistic Sensor Models. Beam-based Scan-based Landmarks

Visual Motion Analysis and Tracking Part II

Markov Localization for Mobile Robots in Dynaic Environments

Localization and Map Building

GAMES Webinar: Rendering Tutorial 2. Monte Carlo Methods. Shuang Zhao

Information-Driven Dynamic Sensor Collaboration for Tracking Applications

Tracking Algorithms. Lecture16: Visual Tracking I. Probabilistic Tracking. Joint Probability and Graphical Model. Deterministic methods

Passive Differential Matched-field Depth Estimation of Moving Acoustic Sources

Computer Vision 2 Lecture 8

SLAM with SIFT (aka Mobile Robot Localization and Mapping with Uncertainty using Scale-Invariant Visual Landmarks ) Se, Lowe, and Little

A New Omnidirectional Vision Sensor for Monte-Carlo Localization

Model-based Visual Tracking:

Active Monte Carlo Recognition

Mobile Robot Mapping and Localization in Non-Static Environments

Vision-based Mobile Robot Localization and Mapping using Scale-Invariant Features

L17. OCCUPANCY MAPS. NA568 Mobile Robotics: Methods & Algorithms

Radar Detection Improvement by Integration of Multi- Object Tracking

Mini-Project II. Monte Carlo Localisation for mobile robots

Navigation methods and systems

Visual Bearing-Only Simultaneous Localization and Mapping with Improved Feature Matching

Practical Extensions to Vision-Based Monte Carlo Localization Methods for Robot Soccer Domain

Computer Vision Group Prof. Daniel Cremers. 4. Probabilistic Graphical Models Directed Models

Fox, Burgard & Thrun problem they attack. Tracking or local techniques aim at compensating odometric errors occurring during robot navigation. They re

Bootstrapping Method for 14 June 2016 R. Russell Rhinehart. Bootstrapping

Introduction to Mobile Robotics SLAM Landmark-based FastSLAM

Testing omnidirectional vision-based Monte-Carlo Localization under occlusion

Micha l Lisowski. Differential Evolution approach to the Localization Problem for Mobile Robots

An Experimental Comparison of Localization Methods Continued

Real-Time Monitoring of Complex Industrial Processes with Particle Filters

Artificial Intelligence for Robotics: A Brief Summary

Particle Filter Tutorial. Carlos Esteves and Daphne Ippolito. Introduction. Prediction. Update. Resample. November 3, 2016

Autonomous Navigation for Flying Robots

Robotics. Chapter 25. Chapter 25 1

Nested Sampling: Introduction and Implementation

Adaption of Robotic Approaches for Vehicle Localization

Transcription:

Prof. Daniel Cremers 11. Sampling Methods

Sampling Methods Sampling Methods are widely used in Computer Science as an approximation of a deterministic algorithm to represent uncertainty without a parametric model to obtain higher computational efficiency with a small approximation error Sampling Methods are also often called Monte Carlo Methods Example: Monte-Carlo Integration Sample in the bounding box Compute fraction of inliers Multiply fraction with box size 2

Non-Parametric Representation Probability distributions (e.g. a robot s belief) can be represeted: Parametrically: e.g. using mean and covariance of a Gaussian Non-parametrically: using a set of hypotheses (samples) drawn from the distribution Advantage of non-parametric representation: No restriction on the type of distribution (e.g. can be multi-modal, non- Gaussian, etc.) 3

Non-Parametric Representation The more samples are in an interval, the higher the probability of that interval But: How to draw samples from a function/distribution? 4

Sampling from a Distribution There are several approaches: Probability transformation Uses inverse of the c.d.f h Cumulative distribution Function Rejection Sampling Importance Sampling MCMC Probability transformation: Sample uniformly in [0,1] Transform using h -1 But: Requires calculation of h and its inverse 5

Rejection Sampling 1. Simplification: Assume for all z Sample z uniformly Sample c from If : keep the sample otherwise: reject the sample c p(z) z p(z ) c z OK 6

Rejection Sampling 2. General case: Assume we can evaluate Find proposal distribution q Easy to sample from q Find k with (unnormalized) Rejection area Sample from q Sample uniformly from [0,kq(z 0 )] Reject if But: Rejection sampling is inefficient. 7

Importance Sampling Idea: assign an importance weight w to each sample With the importance weights, we can account for the differences between p and q p is called target q is called proposal (as before) 8

Importance Sampling Explanation: The prob. of falling in an interval A is the area under p This is equal to the expectation of the indicator function A 9

Importance Sampling Explanation: The prob. of falling in an interval A is the area under p This is equal to the expectation of the indicator function A Requirement: Approximation with samples drawn from q: 10

The Particle Filter Non-parametric implementation of Bayes filter Represents the belief (posterior) random state samples. by a set of This representation is approximate. Can represent distributions that are not Gaussian. Can model non-linear transformations. Basic principle: Set of state hypotheses ( particles ) Survival-of-the-fittest 11

The Bayes Filter Algorithm (Rep.) Algorithm Bayes_filter : 1. if is a sensor measurement then 2. 3. for all do 4. 5. 6. for all do 7. else if is an action then 8. for all do 9. return Computer Vision 12

Mathematical Description Set of weighted samples: State hypotheses Importance weights The samples represent the probability distribution: Point mass distribution ( Dirac ) 13

The Particle Filter Algorithm 1. Algorithm Particle_filter : 2. for to do 3. 4. 5. 6. for to do Sample from proposal Compute sample weights Resampling 7. return 14

Localization with Particle Filters Each particle is a potential pose of the robot Proposal distribution is the motion model of the robot (prediction step) The observation model is used to compute the importance weight (correction step) Randomized algorithms are usually called Monte Carlo algorithms, therefore we call this: Monte-Carlo Localization 15

A Simple Example The initial belief is a uniform distribution (global localization). This is represented by an (approximately) uniform sampling of initial particles. 16

Sensor Information The sensor model new importance weights: is used to compute the 17

Robot Motion After resampling and applying the motion model densely at three locations. the particles are distributed more 18

Sensor Information Again, we set the new importance weights equal to the sensor model. 19

Robot Motion Resampling and application of the motion model: One location of dense particles is left. The robot is localized. 20

A Closer Look at the Algorithm 1. Algorithm Particle_filter : 2. for to do 3. 4. 5. 6. for to do Sample from proposal Compute sample weights Resampling 7. return 21

Sampling from Proposal This can be done in the following ways: Adding the motion vector to each particle directly (this assumes perfect motion) Sampling from the motion model, e.g. for a 2D motion with translation velocity v and rotation velocity w we have: Position Orientation 22

Motion Model Sampling (Example) Start 23

Computation of Importance Weights Computation of the sample weights: Proposal distribution: (we sample from that using the motion model) Target distribution (new belief): (we can not directly sample from that importance sampling) Computation of importance weights: 24

Proximity Sensor Models How can we obtain the sensor model? Sensor Calibration: Laser sensor Sonar sensor 25

Resampling Given: Set of weighted samples. Wanted : Random sample, where the probability of drawing x i is equal to w i. Typically done M times with replacement to generate new sample set. for to do 26

Resampling W n-1 w n w 1 w 2 W n-1 w n w 1 w 2 w 3 w 3 Standard n-times sampling results in high variance This requires more particles O(nlog n) complexity Instead: low variance sampling only samples once Linear time complexity Easy to implement 27

Sample-based Localization (sonar) 28

Initial Distribution 29

After Ten Ultrasound Scans 30

After 65 Ultrasound Scans 31

Estimated Path 32

Kidnapped Robot Problem 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)? Idea: Introduce uniform samples at every resampling step This adds new hypotheses 33

Summary There are mainly 4 different types of sampling methods: Transformation method, rejections sampling, importance sampling and MCMC Transformation only rarely applicable Rejection sampling is often very inefficient Importance sampling is used in the particle filter which can be used for robot localization An efficient implementation of the resampling step is the low variance sampling 34