Home▸Autonomous Systems▸UAV Path Planning (2D): RRT* Tree and Minimum-Snap Trajectory

UAV Path Planning (2D): RRT* Tree and Minimum-Snap Trajectory

Top view of the city with Blender-rendered roofs, pads and drone sprite: the RRT* tree grows live, the best path turns yellow, and the minimum-snap trajectory is drawn coloured by thrust-to-weight ratio, with the x-z side projection below. Same shared equations and numerical checks as the 3D city.

Autonomous Systems2DAdvanced60 FPS📱 Mobile-adapted🟠 Blender💨 Air & Wind⇄ 3D version
UAV Path Planning (2D): RRT* Tree and Minimum-Snap Trajectory ↗ Open standalone

A quadrotor must cross a 60 x 60 x 30 m city. RRT* (Karaman-Frazzoli radius r = min(gamma (ln n / n)^(1/3), 3 eta), with rewiring and subtree cost updates) grows a tree of collision-free edges around buildings with a safety margin; the best path is shortcut and smoothed by a minimum-snap (or minimum-jerk) piecewise polynomial found by solving the KKT system of the equality-constrained quadratic program. Thrust-to-weight |a + g e_z| / g, tilt and the clearance to every building are read from the quadrotor flat outputs, so you see when a smooth trajectory cuts a corner or exceeds the thrust limit. Numerical checks: closed-form rest-to-rest splines, peak/mean speed 1.875 (jerk, Flash-Hogan) and 2.1875 (snap), optimality against the single-segment solution, exact time-scaling laws, a slab collision test against dense sampling and RRT* cost bookkeeping.

⚙ Under the hood

Top view of the city with Blender-rendered roofs, pads and drone sprite: the RRT* tree grows live, the best path turns yellow, and the minimum-snap trajectory is drawn coloured by thrust-to-weight ratio, with the x-z side projection below. Same shared equations and numerical checks as the 3D city.

UAVDronePath planningRRT*Minimum snapTrajectory optimizationQuadrotorMotion planning

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)