RRT Path Planning
2D robot navigation — four RRT variants, benchmarked
- Role
- Solo Developer
- Timeline
- Dec 2024 – Jan 2025
- Context
- Personal project
- Links
- Resume ↗
The outcome
- 98% success rate across 1000+ runs.
- Path length reduced 27% via smoothing.
- 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.
The hard parts
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
- Dec 2024 – Jan 2025
Implemented, benchmarked and visualised.