Presentation is loading. Please wait.

Presentation is loading. Please wait.

City College of New York 1 Dr. Jizhong Xiao Department of Electrical Engineering City College of New York Advanced Mobile Robotics.

Similar presentations


Presentation on theme: "City College of New York 1 Dr. Jizhong Xiao Department of Electrical Engineering City College of New York Advanced Mobile Robotics."— Presentation transcript:

1 City College of New York 1 Dr. Jizhong Xiao Department of Electrical Engineering City College of New York jxiao@ccny.cuny.edu Advanced Mobile Robotics Probabilistic Robotics (II)

2 City College of New York 2 Outline Localization Methods –Markov Localization (review) –Kalman Filter Localization –Particle Filter (Monte Carlo Localization) Current Research Topics –SLAM –Multi-robot Localization

3 City College of New York 3 Robot Navigation Fundamental problems to provide a mobile robot with autonomous capabilities: Where am I going What’s the best way there? Where have I been?  how to create an environmental map with imperfect sensors? Where am I?  how a robot can tell where it is on a map? What if you’re lost and don’t have a map? Mapping Localization Robot SLAM Path Planning Mission Planning

4 City College of New York 4 Representation of the Environment Environment Representation –Continuos Metric  x,y,  –Discrete Metric  metric grid –Discrete Topological  topological grid

5 City College of New York 5 Localization Methods Markov Localization: –Central idea: represent the robot’s belief by a probability distribution over possible positions, and uses Bayes’ rule and convolution to update the belief whenever the robot senses or moves –Markov Assumption: past and future data are independent if one knows the current state Kalman Filtering –Central idea: posing localization problem as a sensor fusion problem –Assumption: Gaussian distribution function Particle Filtering –Monte-Carlo method SLAM (simultaneous localization and mapping) Multi-robot localization

6 City College of New York 6 Probability Theory Bayes Formula : )()|()()|(),(   )( )()|( )(  yP xPxyP yxP xPxyPyPyxPyxP Normalization :

7 City College of New York 7 Probability Theory Bayes Rule with background knowledge :  Law of Total Probability :

8 City College of New York 8 Bayes Filters: Framework 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:

9 City College of New York 9 Markov Assumption Underlying Assumptions Static world, Independent noise Perfect model, no approximation errors State transition probability Measurement probability   Markov Assumption: –past and future data are independent if one knows the current state

10 City College of New York 10 Bayes Filters Bayes z = observation u = action x = state Markov Total prob. Markov

11 City College of New York 11 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 5. 6. 7. For all x do 8. 9. Else if d is an action data item u then 10. For all x do 11. 12. Return Bel’(x)

12 City College of New York 12 Bayes Filters are Familiar! Kalman filters Particle filters Hidden Markov models Dynamic Bayesian networks Partially Observable Markov Decision Processes (POMDPs)

13 City College of New York 13 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) Determining the pose of a robot relative to a given map of the environment

14 City College of New York 14 Markov Localization 1. Algorithm Markov_Localization 2. For all do 3. 4. 5. Endfor 6. Return Bel(x)

15 City College of New York 15

16 City College of New York 16 Localization Methods Markov Localization: –Central idea: represent the robot’s belief by a probability distribution over possible positions, and uses Bayes’ rule and convolution to update the belief whenever the robot senses or moves –Markov Assumption: past and future data are independent if one knows the current state Kalman Filtering –Central idea: posing localization problem as a sensor fusion problem –Assumption: Gaussian distribution function Particle Filtering –Monte-Carlo method SLAM (simultaneous localization and mapping) Multi-robot localization

17 City College of New York 17 Kalman Filter Localization

18 City College of New York 18 Introduction to Kalman Filter (1) Two measurements Weighted leas-square Finding minimum error After some calculation and rearrangements Gaussian probability density function Take weight as: Best estimate for the robot position

19 City College of New York 19 Introduction to Kalman Filter (2) In Kalman Filter notation Best estimate of the state at time K+1 is equal to the best prediction of value before the new measurement is taken, plus a weighting of value times the difference between and the best prediction at time k

20 City College of New York 20 Introduction to Kalman Filter (3) Dynamic Prediction (robot moving) u = velocity w = noise Motion Combining fusion and dynamic prediction

21 City College of New York 21 Kalman Filter for Mobile Robot Localization Five steps: 1) Position Prediction, 2) Observation, 3) Measurement prediction, 4) Matching, 5) Estimation

22 City College of New York 22 Kalman Filter for Mobile Robot Localization Robot Position Prediction –In the first step, the robots position at time step k+1 is predicted based on its old location (time step k) and its movement due to the control input u(k): f: Odometry function

23 City College of New York 23 Robot Position Prediction: Example Odometry

24 City College of New York 24 Kalman Filter for Mobile Robot Localization Observation –The second step is to obtain the observation Z(k+1) (measurements) from the robot’s sensors at the new location at time k+1 –The observation usually consists of a set n 0 of single observations z j (k+1) extracted from the different sensors signals. It can represent raw data scans as well as features like lines, doors or any kind of landmarks. –The parameters of the targets are usually observed in the sensor frame {S}. Therefore the observations have to be transformed to the world frame {W} or the measurement prediction have to be transformed to the sensor frame {S}. This transformation is specified in the function h i (seen later).

25 City College of New York 25 Observation: Example Raw Date of Laser Scanner Extracted Lines in Model Space Sensor (robot) frame

26 City College of New York 26 Kalman Filter for Mobile Robot Localization Measurement Prediction –In the next step we use the predicted robot position and the map M(k) to generate multiple predicted observations z t. –They have to be transformed into the sensor frame –We can now define the measurement prediction as the set containing all n i predicted observations –The function h i is mainly the coordinate transformation between the world frame and the sensor frame

27 City College of New York 27 Measurement Prediction: Example For prediction, only the walls that are in the field of view of the robot are selected. This is done by linking the individual lines to the nodes of the path

28 City College of New York 28 Measurement Prediction: Example The generated measurement predictions have to be transformed to the robot frame {R} According to the figure in previous slide the transformation is given by and its Jacobian by

29 City College of New York 29 Kalman Filter for Mobile Robot Localization Matching –Assignment from observations z j (k+1) (gained by the sensors) to the targets z t (stored in the map) –For each measurement prediction for which an corresponding observation is found we calculate the innovation: and its innovation covariance found by applying the error propagation law: –The validity of the correspondence between measurement and prediction can e.g. be evaluated through the Mahalanobis distance:

30 City College of New York 30 Matching: Example

31 City College of New York 31 Matching: Example To find correspondence (pairs) of predicted and observed features we use the Mahalanobis distance with

32 City College of New York 32 Estimation: Applying the Kalman Filter Kalman filter gain: Update of robot’s position estimate: The associate variance

33 City College of New York 33 Estimation: 1D Case For the one-dimensional case with we can show that the estimation corresponds to the Kalman filter for one-dimension presented earlier.

34 City College of New York 34 Estimation: Example Kalman filter estimation of the new robot position : –By fusing the prediction of robot position (magenta) with the innovation gained by the measurements (green) we get the updated estimate of the robot position (red)

35 City College of New York 35

36 City College of New York 36 Monte Carlo Localization One of the most popular particle filter method for robot localization Current Research Topics Reference: –Dieter Fox, Wolfram Burgard, Frank Dellaert, Sebastian Thrun, “Monte Carlo Localization: Efficient Position Estimation for Mobile Robots”, Proc. 16th National Conference on Artificial Intelligence, AAAI’99, July 1999

37 City College of New York 37 MCL in action “Monte Carlo” Localization -- refers to the resampling of the distribution each time a new observation is integrated

38 City College of New York 38 Monte Carlo Localization the probability density function is represented by samples randomly drawn from it it is also able to represent multi-modal distributions, and thus localize the robot globally considerably reduces the amount of memory required and can integrate measurements at a higher rate state is not discretized and the method is more accurate than the grid-based methods easy to implement

39 City College of New York 39 “Probabilistic Robotics” Bayes’ rule p( A | B ) = p( B | A ) p( A ) p( B ) Definition of marginal probability p( A ) = p( A | B ) p(B)  all B p( A ) = p( A  B )  all B Definition of conditional probability - Sebastian Thrun

40 City College of New York 40 Setting up the problem The robot does (or can be modeled to) alternate between sensing -- getting range observations o 1, o 2, o 3, …, o t-1, o t acting -- driving around (or ferrying?) a 1, a 2, a 3, …, a t-1 “local maps” whence?

41 City College of New York 41 Setting up the problem The robot does (or can be modeled to) alternate between sensing -- getting range observations o 1, o 2, o 3, …, o t-1, o t acting -- driving around (or ferrying?) a 1, a 2, a 3, …, a t-1 We want to know r t -- the position of the robot at time t but we’ll settle for p ( r t ) -- the probability distribution for r t ! What kind of thing is p ( r t ) ?

42 City College of New York 42 Setting up the problem The robot does (or can be modeled to) alternate between sensing -- getting range observations o 1, o 2, o 3, …, o t-1, o t acting -- driving around (or ferrying?) a 1, a 2, a 3, …, a t-1 We want to know r t -- the position of the robot at time t We do know m -- the map of the environment but we’ll settle for p ( r t ) -- the probability distribution for r t ! What kind of thing is p ( r t ) ? p( o | r, m ) p( r new | r old, a, m ) -- the sensor model -- the accuracy of desired action a

43 City College of New York 43 Robot modeling p( o | r, m ) sensor model map m and location r p( | r, m ) =.75 p( | r, m ) =.05 potential observations o

44 City College of New York 44 Robot modeling p( o | r, m ) sensor model p( r new | r old, a, m ) action model “probabilistic kinematics” -- encoder uncertainty red lines indicate commanded action the cloud indicates the likelihood of various final states map m and location r p( | r, m ) =.75 p( | r, m ) =.05 potential observations o

45 City College of New York 45 Robot modeling: how-to p( o | r, m ) sensor model p( r new | r old, a, m ) action model (0) Model the physics of the sensor/actuators (with error estimates) (1) Measure lots of sensing/action results and create a model from them theoretical modeling empirical modeling take N measurements, find mean (m) and st. dev. (  ) and then use a Gaussian model or, some other easily-manipulated model... (2) Make something up... p( x ) = 0 if |x-m| >  1 otherwise 1- |x-m|/  otherwise 0 if |x-m| > 

46 City College of New York 46 Monte Carlo Localization Start by assuming p( r 0 ) is the uniform distribution. take K samples of r 0 and weight each with an importance factor of 1/K

47 City College of New York 47 Monte Carlo Localization Start by assuming p( r 0 ) is the uniform distribution. Get the current sensor observation, o 1 For each sample point r 0 multiply the importance factor by p(o 1 | r 0, m) take K samples of r 0 and weight each with an importance factor of 1/K

48 City College of New York 48 Monte Carlo Localization Start by assuming p( r 0 ) is the uniform distribution. Get the current sensor observation, o 1 For each sample point r 0 multiply the importance factor by p(o 1 | r 0, m) take K samples of r 0 and weight each with an importance factor of 1/K Normalize (make sure the importance factors add to 1) You now have an approximation of p(r 1 | o 1, …, m) and the distribution is no longer uniform

49 City College of New York 49 Monte Carlo Localization Start by assuming p( r 0 ) is the uniform distribution. Get the current sensor observation, o 1 For each sample point r 0 multiply the importance factor by p(o 1 | r 0, m) take K samples of r 0 and weight each with an importance factor of 1/K Normalize (make sure the importance factors add to 1) You now have an approximation of p(r 1 | o 1, …, m) Create r 1 samples by dividing up large clumps and the distribution is no longer uniform each point spawns new ones in proportion to its importance factor

50 City College of New York 50 Monte Carlo Localization Start by assuming p( r 0 ) is the uniform distribution. Get the current sensor observation, o 1 For each sample point r 0 multiply the importance factor by p(o 1 | r 0, m) take K samples of r 0 and weight each with an importance factor of 1/K Normalize (make sure the importance factors add to 1) You now have an approximation of p(r 1 | o 1, …, m) Create r 1 samples by dividing up large clumps and the distribution is no longer uniform The robot moves, a 1 each point spawns new ones in proportion to its importance factor For each sample r 1, move it according to the model p(r 2 | a 1, r 1, m)

51 City College of New York 51 Monte Carlo Localization Start by assuming p( r 0 ) is the uniform distribution. Get the current sensor observation, o 1 For each sample point r 0 multiply the importance factor by p(o 1 | r 0, m) take K samples of r 0 and weight each with an importance factor of 1/K Normalize (make sure the importance factors add to 1) You now have an approximation of p(r 1 | o 1, …, m) Create r 1 samples by dividing up large clumps and the distribution is no longer uniform The robot moves, a 1 each point spawns new ones in proportion to its importance factor For each sample r 1, move it according to the model p(r 2 | a 1, r 1, m)

52 City College of New York 52 MCL in action “Monte Carlo” Localization -- refers to the resampling of the distribution each time a new observation is integrated

53 City College of New York 53 Discussion: MCL

54 City College of New York 54 References 1.Dieter Fox, Wolfram Burgard, Frank Dellaert, Sebastian Thrun, “Monte Carlo Localization: Efficient Position Estimation for Mobile Robots”, Proc. 16th National Conference on Artificial Intelligence, AAAI’99, July 1999 2.Dieter Fox, Wolfram Burgard, Sebastian Thrun, “Markov Localization for Mobile Robots in Dynamic Environments”, J. of Artificial Intelligence Research 11 (1999) 391-427 3.Sebastian Thrun, “Probabilistic Algorithms in Robotics”, Technical Report CMU-CS-00-126, School of Computer Science, Carnegie Mellon University, Pittsburgh, USA, 2000


Download ppt "City College of New York 1 Dr. Jizhong Xiao Department of Electrical Engineering City College of New York Advanced Mobile Robotics."

Similar presentations


Ads by Google