UPP Ends the Robot Path Planning Safety-vs-Speed Tradeoff With 0.94 OSI
A new graph-search planner balances shortest-path optimality with obstacle clearance through adaptive heuristics, plus a new metric to score the trade-off.
ProTakeaways
- UPP is a graph-search planner that adaptively balances path length and obstacle clearance via online heuristic tuning.
- Combines Manhattan and Chebyshev distances with an inverse-distance safety field computed by convolution.
- Achieves OptiSafe score of 0.94 in cluttered maps versus 0.22-0.85 for A*, RRT, SDF-A*, and others.
- Path length overhead is only 0.5-1% in simulation with 100% success rate across 100 random start-goal pairs.
- Formally proven suboptimality bound and validated on TurtleBot with ROS2 Nav2 integration.
- Open source: safeplan and nav2_safeplan.
Robot path planners have historically forced you to pick a side: the shortest route or the safest one. A* variants chase optimal length and often shave corners against walls, while methods that maximize obstacle clearance tend to wander unnecessarily far from the goal. A new planner called Unified Path Planner (UPP) tries to end that dichotomy with a single graph-search algorithm that adaptively tunes itself as it searches, and it comes with a companion metric to actually measure whether a planner is balancing the two objectives or just excelling at one.
The clearance-versus-length tug of war
The core problem is that A* variants optimize path length, while Voronoi-based methods maximize clearance, but they lack adaptive mechanisms to jointly balance them, and existing hybrid approaches suffer from hand-tuned parameters requiring manual adjustment per environment, excessive conservatism in cluttered spaces, or no theoretical guarantees on path cost. Recent hybrid attempts each have a weak spot: Control Barrier Function planners like CBF-RRT ensure safety but struggle with exploration under CBF constraints, while SDF A* leverages a Signed Distance Function to embed safety information, showing improvements in safety and exploration, but becomes overly conservative.
A second, subtler issue is evaluation. Papers typically report path length or minimum clearance in isolation, so a planner can look great by dominating one axis while being terrible on the other. There was no standardized way to score how well an algorithm negotiates the trade-off.
How UPP actually works
UPP is at heart an A*-style graph search, but with a modified heuristic that mixes three terms: a Manhattan (L1) distance, a Chebyshev (L-infinity) distance, and a safety potential. The formula is h(n) = α·l1(n,t) + (1-α)·l∞(n,t) + β·S(n). The two distance norms are blended because the level sets of the Chebyshev distance encourage diagonal progression, while Manhattan level sets promote straight-line motion along horizontal and vertical directions, and mixing them gives smoother directional transitions.

The safety term S(n) is an inverse-distance field. For each node, it sums 1/(distance + ε) over every obstacle cell within a Chebyshev radius r. Nearby obstacles contribute large penalties, distant ones contribute little. Critically, the whole field is precomputed once via convolution with a kernel, so lookups during search are constant time.
The auto-tuning trick
What sets UPP apart from prior safety-aware A* variants is that α and β are not fixed. They adapt online based on how the search is going:
- β (safety weight) reacts to progress toward the goal. If the search is closing distance to the target, β grows so the planner prefers safer neighbors. If it stalls or moves backward for too many iterations, β shrinks so the planner can escape overly conservative pockets.
- α (distance mix) reacts to turning behavior. Accumulated angular deviation over a sliding window pushes α up (more Manhattan, straighter paths) or down (more Chebyshev, more diagonal freedom).
- Initial β and radius are set from map statistics like obstacle density and the standard deviation of the free-space distance transform, so a dense map starts with a stronger safety weight than a sparse one.
The authors also prove a worst-case suboptimality bound: the heuristic can overshoot the true cost-to-go by at most a fixed constant that depends only on grid dimension, radius r, and β_max. So even with adaptivity, you get a formal guarantee that the returned path cost is bounded relative to optimal.
Scoring the trade-off with OptiSafe
Alongside the planner, the paper introduces the OptiSafe Index. It normalizes optimality (how close path length is to the shortest achievable) and safety (how close minimum clearance is to what a pure safety planner would produce) to [0,1], then combines them as (1 - |O - C|) · sqrt(O² + C²) / sqrt(2). The first factor punishes imbalance and the second rewards raw strength, so a planner that scores 1.0 on optimality and 0.1 on safety gets penalized rather than looking great.
Benchmark results
UPP was evaluated on a 1000×1000 grid at 0.05 m resolution against seven baselines including A*, RRT, CBF-RRT, Voronoi, SDF-A*, Optimized-A*, and FS Planner, across 100 random start/goal pairs per map. The cluttered environment shows the clearest separation.

| Planner | Length (m) | Clearance (cm) | Success | OSI |
|---|---|---|---|---|
| A* | 39.29 | 6.88 | 100% | 0.22 |
| RRT | 50.28 | 7.27 | 77% | 0.27 |
| FS Planner | 39.19 | 18.53 | 100% | 0.36 |
| SDF-A* | 43.37 | 118.42 | 100% | 0.85 |
| UPP | 39.62 | 25.44 | 100% | 0.94 |
UPP achieves a path length of 39.62 m (approximately 1% optimal deviation) with a minimum clearance of 25.44 cm, striking a strong balance between safety and path optimality, and has the highest OSI score of 0.94. Notably, SDF-A* wins on raw clearance but its paths are ~10% longer, which is why its OptiSafe score comes in lower.
Ablations show the adaptivity is doing real work. In a cluttered map, fixed parameters required 8383 ms of planning time with a total turning angle of 2794°, while both parameters adaptive dropped that to 1431 ms and 770° without hurting path length. Robustness tests varying initial (α, β) over an order of magnitude in β produced identical paths with less than 10% variation in planning time, suggesting minimal hand-tuning is needed.
Hardware and code
The authors also deployed UPP on a TurtleBot with LiDAR and ROS2, integrated as a global planner in Nav2 with DWA handling local obstacle avoidance. The sim-to-real gap widened somewhat: UPP's path length on hardware exceeded FSPlanner and SDF-A* by 3-4%, while simulation showed less than 1% optimality deviation. Even so, UPP retained better minimum clearance and lower turning effort in the real runs.
Both implementations are open source: the benchmark code is at safeplan and the Nav2-integrated version at nav2_safeplan. The catch worth knowing before you plug it in: the suboptimality bound scales with grid dimension, so higher-dimensional configuration spaces will need work, and the current formulation handles static maps rather than dynamic obstacles. For 2D warehouse robots, ground vehicles, and TurtleBot-class platforms in cluttered but static environments, UPP is a practical drop-in for the global planner slot.