JC
All projects

Terrain Traversability with a Dynamic Bayesian Network

Spring 2026

A per-cell recursive Bayes filter that maps where a mobile robot can safely drive using only its wheel-slip readings. Built in ROS/Gazebo and validated on a TurtleBot3.

Dynamic Bayesian NetworksProbabilistic ReasoningPythonNumPy / SciPyROS
The Gazebo simulation arena: a walled square split into four colored terrain zones, with the TurtleBot3 in the teal zone.
wheel slip is the only measurement of the hidden state
1 sensorwheel slip is the only measurement of the hidden state
enough to identify low-traversability cells
1 passenough to identify low-traversability cells
grid resolution for the belief map
0.5 mgrid resolution for the belief map

Problem

A robot exploring an unfamiliar area has to decide which ground it can safely drive over, and it has to decide with very little information. Its only evidence is wheel slip: low slip suggests firm ground, high slip suggests trouble. The task was to turn that single noisy signal into a map the robot can act on, with a probability attached to every location rather than a guess.

Solution

I built a probabilistic model that updates its belief about each patch of ground every time the robot drives over it:

  • A dynamic Bayesian network that treats "is this cell traversable?" as a hidden state, with wheel slip as the noisy evidence
  • A recursive Bayes filter that updates each grid cell's belief with every slip reading
  • A full robotics pipeline in ROS and Gazebo: slip estimation, systematic coverage navigation with collision avoidance, and a live belief heatmap, validated on a real TurtleBot3

Outcome

The robot produces a traversability map that's honest about what it knows. Cells it has driven over carry a confident belief, and cells it never reached stay visibly uncertain instead of being guessed. The sensor model was tuned so one pass is enough for a decisive belief, which keeps exploration efficient.

Results

  • Low-traversability cells correctly identified from a single pass
  • 1 sensor: wheel slip was the only measurement used
  • 0.5 m grid resolution for the belief map

Estimated traversability grid

Green cells were visited and found traversable. Yellow cells were never reached and stay at the 0.5 prior. The orange and red cells in row 9 were correctly flagged as low-traversability.

Technical details

The model

  • A hidden Boolean state per grid cell: is this cell traversable?
  • A near-identity transition model. Terrain doesn't change over time, so a cell keeps its state with probability 0.99. The small epsilon keeps the filter from ever locking in permanently.
  • A Gaussian sensor model for wheel slip, with low mean slip for traversable ground and high mean slip otherwise. The parameters were chosen so the two distributions barely overlap, which is why a single visit is decisive.

Location is treated as observed, so it acts as a selector: each slip reading updates only the cell the robot is currently in.

Inference

A per-cell recursive Bayes filter in Python, NumPy and SciPy. Every cell starts at a 0.5 prior. On each reading, the filter:

  1. Predicts with the transition model, decaying the belief minimally toward the prior
  2. Updates with Bayes' rule, using the slip-reading likelihood under each hidden state

Robotics pipeline

  • Online slip estimation as the robot drives, with each reading mapped to its grid cell
  • Lawnmower-pattern coverage navigation across the grid, with laser-based collision avoidance and buffer zones around walls and an interior barrier
  • Heatmap visualization of the belief over the whole grid

Lessons and next steps

The hardest parts were navigation, since the robot kept getting stuck at the edges until I added buffer zones, and tuning the sensor model so beliefs converge quickly without overreacting to noise. The next improvement would be smarter path planning to reach the unvisited cells near the interior barrier.

Next projectLumbr: Fine-Tuned vs. Hybrid Retrieval for Enterprise RAG →