Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 2.57 KB

README.md

File metadata and controls

27 lines (16 loc) · 2.57 KB

Hidden-Markov-Model

This repo makes use of a Hidden Markov Model to estimate the postion of a robot in a discrete map.

Simulation

This simulation is run in the RobotLocWrapper.ipynb notebook

Explanation

This HMM filter makes use of 2 types of models, namely the transition model and the observation model.

Transition Model

The transition model, describes the probability of getting to one state given a state. is a matrix where , each item in the matrix represents or the probability of getting to state given that the current state is .

Observation Model

For each possible sensor reading, , there exist one Observation model. Each observation model is and matrix, where .

The matrix is a diagonal matrix, where each element represents or the probability of being in state given the sensor reading .

HMM Filter

The prediction matrix is a matrix where . Each item in the matrix represents the probability of the robot being at state m that is estimated by the HMM filter. It first initialises with all values of being equal, as the robot does not know its initial state. For each time step, it updates itself as follows:

where is a normalising factor.