Files
lane_route_core/tools
duongtd 6367f13d7d feat(lane_route_core): try the lattice when a verified graph route is a suspicious detour
When the graph tier returns a verified path longer than
suspicious_ratio * chord + suspicious_margin_m, and the lattice tier is
enabled, run one lattice attempt within its own time budget and the request
deadline. The lattice path replaces the graph path only if it is verified, not
cancelled, and its cost (length plus zone_deviation_weight * deviation / 45)
is at least detour_upgrade_min_saving lower, without adding more than
detour_upgrade_max_extra_zone_deviation_m of zone-deviated length.

- PlannerConfig: detour_upgrade_enabled (true), detour_upgrade_time_limit_s
  [s] (2.0), detour_upgrade_min_saving (0.15, in [0, 1)),
  detour_upgrade_max_extra_zone_deviation_m [m] (0.5); validated in
  PlannerConfig::validate().
- PlanInfo: detour_upgrade_outcome (off, not_triggered, taken, kept_graph,
  kept_graph_zone_deviation, lattice_failed, cancelled), graph/lattice length,
  cost, zone deviation, time and lattice reason.
- lane_route_eval: overrides for the new keys, outcome fields in the JSON.
- Tests: lane_route_core_test 135/135.
2026-11-16 14:01:11 +07:00
..