Presentation is loading. Please wait.

Presentation is loading. Please wait.

Магистерский проект 2008 Магистрант: Матрунич Сергей Анатольевич Научный руководитель: Зимянин Л.Ф. Simultaneous localization and mapping.

Similar presentations


Presentation on theme: "Магистерский проект 2008 Магистрант: Матрунич Сергей Анатольевич Научный руководитель: Зимянин Л.Ф. Simultaneous localization and mapping."— Presentation transcript:

1 Магистерский проект 2008 Магистрант: Матрунич Сергей Анатольевич Научный руководитель: Зимянин Л.Ф. Simultaneous localization and mapping

2 Краткое содержание  Введение  SLAM используя фильтр Калмана  SLAM используя фильтр для частиц  Исследование : проблема поиска

3 Введение: SLAM SLAM: Simultaneous Localization and Mapping Робот изучает незнакомое, статическое окружение. Дано:  Система управления роботом  Визуальные датчики Оценка:  Положения робота -- localization где Я ?  Детализация окружающего пространства – mapping На что похоже то что вокруг меня? Оба источника данных зашумлены.

4 Введение: SLAM Допущение Маркова x0x0 x1x1 x2x2 x t-1 xtxt … o1o1 o t-1 … a1a1 a t-1 … o2o2 otot a2a2 atat m State transition: Observation function:

5 Введение: SLAM Method: Sequentially estimate the probability distribution p(x t ) and update the map. Prior: p(x 0 ) p(x 1 ) p(m 1 ) or m 1 … p(x t-1 ) p(m t-1 ) or m t-1 p(x t ) p(m t ) or m t Prior distribution on x t after taking action a t

6 Введение: SLAM Методы: 1. Parametric method – Kalman filter 2. Sample-based method – particle filter The robot’s trajectory estimate is a tracking problem Represent the distribution of robot location x t (and map m t ) by a Normal distribution Sequentially update μ t and Σ t Represent the distribution of robot location x t (and map m t ) by a large amount of simulated samples. Resample x t (and m t ) at each time step

7 Введение: SLAM Почему SLAM трудная задача? Robot location and map are both unknown. Location error Map error  The small error will quickly accumulated over time steps.  The errors come from inaccurate measurement of actual robot motion (noisy action) and the distance from obstacle/landmark (noisy observation). When the robot closes a physical loop in the environment, serious misalignment errors could happen.

8 SLAM: фильтр Калмана Корректирующее уровнение: Предположение: Prior p(x 0 ) is a normal distribution Observation function p(o|x) is a normal distribution Тогда: Posterior p(x 1 ), …, p(x t ) are all normally distributed. Mean μ t and covariance matrix Σ t can be derived analytically. Sequentially update μ t and Σ t for each time step t

9 SLAM: фильтр Калмана Assume: State transition Observation function Kalman filter: Propagation (motion model): Update (sensor model):

10 SLAM: фильтр Калмана The hidden state for landmark-based SLAM: localizationmapping Map with N landmarks: (3+2N)-dimentional Gaussian State vector x t can be grown as new landmarks are discovered.

11 SLAM: фильтр для частиц Update equation: Основная идея:  Normal distribution assumption in Kalman filter is not necessary  A set of samples approximates the posterior distribution and will be used at next iteration.  Each sample maintains its own map; or all samples maintain a single map.  The map(s) is updated upon observation, assuming that the robot location is given correctly.

12 SLAM: фильтр для частиц Assume it is difficult to sample directly from But get samples from another distribution is easy. We sample from, with normalized weight for each x i t as The set of (particles) is an approximation of Particle filter: Resample x t from,with replacement, to get a sample set with uniform weights

13 SLAM: фильтр для частиц Particle filter (cont’d): 0.2 0.3 0.4 0.1

14 SLAM: фильтр для частиц Choose appropriate Choose Then Transition probability Observation function

15 SLAM: фильтр для частиц Алгоритм: Let state x t represent the robot’s location, 1. Propagate each state through the state transition probability. This samples a new state given the previous state. 2. Weight each new state according to the observation function 3. Normalize the weights, get. 4. Resampling: sample N s new states from are the updated robot location from

16 SLAM: фильтр для частиц State transition probability: are the expected robot moving distance (angle) by taking action a t. Observation probability: Measured distance (observation) for sensor k Map distance from location x t to the obstacle

17 SLAM: фильтр для частиц Lots of work on SLAM using particle filter are focused on:  Reducing the cumulative error  Fast SLAM (online)  Way to organize the data structure (saving robot path and map). Maintain single map: cumulative error Multiple maps: memory and computation time In Parr’s paper:  Use ancestry tree to record particle history  Each particle has its own map (multiple maps)  Use observation tree for each grid square (cell) to record the map corresponding to each particle.  Update ancestry tree and observation tree at each iteration.  Cell occupancy is represented by a probabilistic approach.

18 SLAM: фильтр для частиц

19 Проблема поиска  The agent doesn’t have map, doesn’t know the underlying model, doesn’t know where the target is.  Agent has 2 sensors: Camera: tell agent “occupied” or “empty” cells in 4 orientations, noisy sensor. Acoustic sensor: find the orientation of the target, effective only within certain distance.  Noisy observation, noisy action. Assumption:

20 Проблема поиска Differences from SLAM  Rough map is enough; an accurate map is not necessary.  Objective is to find the target. Robot need to actively select actions to find the target as soon as possible. Similar to SLAM  To find the target, agent need build map and estimate its location.

21 Проблема поиска Model:  Environment is represented by a rough grid;  Each grid square (state) is either occupied or empty.  The agent moves between the empty grid squares.  Actions: walk to any one of the 4 directions, or “stay”. Could fail in walking with certain probability.  Observations: observe 4 orientations of its neighbor grid squares: “occupied” or “empty”. Could make a wrong observation with certain probability.  State, action and observation are all discrete.

22 Проблема поиска In each step, the agent updates its location and map:  Belief state: the agent believes which state it is currently in. It is a distribution over all the states in the current map.  The map: The agent thinks what the environment is. For each state (grid square), a 2-dimentional Dirichlet distribution is used to represent the probability of “empty” and “occupied”. The hyperparameters of Dirichlet distribution are updated based on current observation and belief state.

23 Проблема поиска Belief state update: where Probability of successful moving from s j to s when taking action a From map representation and with Neighbor of s in orientation j the set of neighbor states of s

24 Проблема поиска Обновление карты (распределение Дирихле): Предпологаем на шаге t-1, гиперпараметр для S На шаге t, гиперпараметр для S обновляется до and are the posterior after observing o given that the agent is in the neighbor of state s. If the probability of wrong observation for any orientation is p 0, then priorp 0 if o is “occupied” 1-p 0 if o is “empty” can be computed similarly.

25 Проблема поиска Предпологаемое изменение: 0 010 0 0.95 0.05 0.95 1010 0.05 0.95 Map representation update: 0 00.0010 0 0.0790.9180 00.0010 0 0.000 0.002 0.000 1.026 0.054 0.873 0.046 0.001 0.000 0.126 0.954 1.953 0.047 1.943 0.054 0.872 0.046 0.001 0.055 1.025 0.046 0.872 0.000 0.001 a=“right” a=“up” 0 00.0010 00.0000.2110.7450 00.0000.0010.0020.0330.0090 00.000 0 0 0 0 0.001 0.000 0.202 0.011 0.708 0.037 0.000 0.203 0.011 1.947 0.091 1.849 0.058 0.716 0.038 0.000 0.002 0.000 0.128 0.954 2.186 0.059 2.693 0.092 0.912 0.048 0.009 0.001 0.000 0.002 0.001 0.057 1.025 0.078 0.874 0.009 0.001 0.000 0.001 0.000 a=“right” a=“up”

26 Проблема поиска Выберите действие: Each state is assigned a reward R(s) according to following rules: Less explored grids have higher reward. Try to walk to the “empty” grid square. Consider neighbor of s with priority. xx

27 Cпасибо за внимание


Download ppt "Магистерский проект 2008 Магистрант: Матрунич Сергей Анатольевич Научный руководитель: Зимянин Л.Ф. Simultaneous localization and mapping."

Similar presentations


Ads by Google