UAV Systems Engineering · Interactive simulation · M5-L6
3-D Voxel Path Planner
A voxel map, a search and a vehicle with a size: see what the heuristic saves, when it breaks, and when the vehicle no longer fits.
What you are looking at
The map is a 16 × 16 × 8 grid of cubes (cells): a low wall you can fly over or around, a full-height wall with a window, and a pillar. The planner searches from the green cell to the red cell. Blue dots are the cells the search expanded (the last few in red while the search plays), the green line is the path it found, and the orange dashed line is the same path after a line-of-sight shortcut. Orange dots are free cells that the inflation (the vehicle’s radius) has blocked.
The numbers show how many cells A* expanded (and how many Dijkstra’s algorithm would), the path cost in cells, its ratio to the optimal cost, and the number of waypoints before and after the shortcut. The lower plot re-plans for every inflation radius from 0 to 3.5 cells with the current settings and shows where the path cost jumps and where no path exists.



Try this
- Choose the heuristic “None (Dijkstra)” and compare the cells expanded with the 3-D octile heuristic. The cost is the same; the work is not.
- Choose the Manhattan heuristic with 26 neighbours. It overestimates the cost of diagonal moves, so A* is no longer optimal: read the ratio to the optimal cost.
- Raise the weight from 1 to 3 and watch the expansions fall and the cost rise, always staying below the weight times the optimum.
- Raise the inflation radius from 0 in steps of 0.25. Find the radius at which the path stops going through the window, and the radius at which planning becomes impossible. Is it a route that closes, or the goal cell itself that becomes blocked?
Model and its limits
Included: a voxel map with occupied and free cells, 6, 18 or 26 neighbours with Euclidean step costs, four heuristics (3-D octile, Euclidean, Manhattan, none), a weight on the heuristic, spherical obstacle inflation by cell-centre distance, a binary-heap A* that returns the expansion order, and a line-of-sight shortcut that samples each segment every quarter of a cell.
Not included: unknown space and a map that changes, a distance field, sampling-based planners, vehicle dynamics and any smoothing (the path is a geometric path, not a trajectory a vehicle can fly), and the extra margin for cell size and tracking error that a real inflation radius needs (lesson M5-T17). The map and all numbers are illustrative.
Saved in this browser and synced to your account when you are signed in.