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

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.

Made with 🟠 Blender