feat(lane_route): keep a preferred footprint gap on lattice paths (R2.5)

The lattice tier first finds a path with the minimum gap, as before, so
coverage cannot drop. If that path is not legal under
lattice_preferred_gap_m (0.15 m) away from the ends, a bounded upgrade
search (lattice_preferred_time_fraction of the rung slice) tries a wider
path and replaces it on success. Smoothing keeps the margin of the
returned path. PlanInfo, eval JSON and the plugin debug/fallback line
report the gap pass, the minimum gap and the upgrade time. The plugin
loads the preferred-gap and smoother keys.

regress7 (3 s): coverage equal to R2c (hook_150 1718, kit 1709),
graph-only output identical, middle gap >= 0.15 m on 133/153 and
128/190 lattice paths (R2c 88 and 89), Python recheck 0 bad.
This commit is contained in:
2026-11-09 17:42:48 +07:00
parent ad326f535c
commit 17ec2466b1
3 changed files with 54 additions and 5 deletions

View File

@@ -31,6 +31,11 @@ Keys (defaults from `PlannerConfig`):
- `lattice_field_time_fraction: 0.4`, `lattice_field_cell_factor: 0`,
`lattice_field_max_cells: 1000000`, `fallback_time_limit_s: 3.0`,
`lattice_end_relax_radius_m: 1.0`, `lattice_max_memory_mb: 512` (MiB).
- `lattice_preferred_gap_m: 0.15`, `lattice_preferred_time_fraction: 0.25`: each rung first finds a
minimum-gap path, then checks it for the preferred gap away from the ends. If needed, a new search
uses at most the configured share of the rung budget. An unsuccessful upgrade retains the verified minimum path.
A preferred gap at or below `footprint_min_gap_m` disables the upgrade.
- `lattice_smooth_enabled: true`, `lattice_smooth_max_checks: 450000`.
- `debug/fallback: true` enables one diagnostic line per request when lattice ran; failure logs
remain enabled. See the runtime YAML for units, tuning effects and valid ranges.