Skip to content

Probabilistic ogm

◀ Go to Naive OGM

Go to Localization ▶

To counter the issues with the naive OGM, the Probabilistic OGM was introduced. Instead of binary values, probabilistic OGMs use probabilities to represent the likelihood that a cell is occupied.

If \(P_{occ}\) is the probability that a cell is occupied, then:

\[P_{occ} = \frac{P(z_t | \text{occ}) P_{prev}}{P(z_t)}\]

where:

  • \(P(z_t | \text{occ})\) is the probability of the sensor measurement \(z_t\) given that the cell is occupied.

  • \(P_{prev}\) is the probability that the cell was occupied in the previous time step (prior).

  • \(P(z_t)\) is the probability of the sensor measurement \(z_t\) at time \(t\).

This Bayesian update ensures that uncertainties in sensor measurements and temporary changes in the environment are handled more gracefully.

Demo

To try out the OGM algorithm, run this Google Colab notebook:

Open In Colab