← All work

RRT Path Planning

2D robot navigation — four RRT variants, benchmarked

Role
Solo Developer
Timeline
Dec 2024 – Jan 2025
Context
Personal project

The outcome

  1. 98% success rate across 1000+ runs.
  2. Path length reduced 27% via smoothing.
  3. Runtime reduced 41% vs baseline RRT.

The challenge

An implementation and benchmark of four RRT variants for 2D robot navigation, with custom collision detection, path optimisation, and visualisation tooling — the same class of planner as the vacuum bot roaming this room.

Sampling-based planners are easy to implement and hard to compare. Narrow passages and moving obstacles separate the variants, and nothing shows that without a consistent benchmark harness.

The system

Four RRT variants share one collision-detection and simulation substrate, then run against generated environments including narrow passages and dynamic obstacles. A smoothing pass optimises the raw path; visualisation tools render the tree as it grows.

free spaceobstaclespointcandidateaccept / rejectuntil goal reachedraw pathper-run statsStreamlit sidebarvariant · start · goalEnvironmentnarrow passages · moving obstaclesSamplerper-variant strategyNearest + steerfixed step toward sampleCollision detectionsegment vs obstacle clipRRT tree×4 variants · parent pointersPath smoothinggreedy shortcuttingBenchmark harness1000+ runs · CSVVisualisationtree growth · raw vs smoothed
RRT Path Planning — one sampling loop, four variants, one shared collision check and benchmark harness

The hard parts

  1. Making variants comparable

    Benchmarking four planners over 1000+ runs only means something if collision detection and the environment generator are identical across them.

What I took from it

  • A comparison is only as trustworthy as what's held fixed. Four planners over 1000+ runs says nothing unless collision detection and the environment generator are byte-identical across every arm — otherwise you're measuring the harness.
  • Run counts exist to beat variance. On randomised planners a handful of runs can rank the variants in any order you like; the sample size is what turns 41% faster into a claim rather than an anecdote.
  • Improvements trade against each other and have to be reported together. Smoothing cut path length 27%, and quoting that without the runtime it costs would be a half-truth.

Stack

Core
Python, NumPy
Robotics
RRT variants, Collision detection, Path optimisation

Timeline

  1. Dec 2024 – Jan 2025

    Implemented, benchmarked and visualised.

Download resume