feat(lane_route): sharp corners as the last radius rung, heuristic field margin (R2.7)

max_kink_deg (default 45): in the graph's second pass, a corner where no
radius fits may become a sharp corner (two straight lines meeting at one
vertex pose, no turn in place) when the footprint can rotate at the
vertex; the verifier counts it in PathCheck::corners. The verifier's
bend limit now follows min_turn_radius_m (it blocked radii below ~0.72 m).

lattice_field_extra_clearance_m (default 0): extra clearance for a cell
to be passable in the lattice heuristic field only, with a rebuild of
the plain field when the margin field never reaches the start.

regress7 with the sim settings (0.4 m floor, margin 0.1): hook_150
1717/1757, kit 1716/1757 (R2.5: 1718, 1709); Python recheck finds no
curvature, corner, spin, zone or crossing errors. The graph tier's
30 mm gap still ignores unknown cells, as since R0.
This commit is contained in:
2026-11-09 23:30:46 +07:00
parent 88a2328ae8
commit ebb7b01333
2 changed files with 10 additions and 3 deletions

View File

@@ -40,8 +40,13 @@ Keys (defaults from `PlannerConfig`):
use only radii at or above it, as before. When `min_turn_radius_m` is lower, the graph adds a second
pass with all `corner_radii_m` (largest first) if the first pass fails or returns a long detour, and
keeps it only when it is at least 20% shorter.
- `max_kink_deg: 45`: bottom rung of the ladder. In the graph's second pass, a corner where no radius fits may become a sharp
corner (two straight lines meeting at a vertex, no turn in place) up to this heading change, when the footprint can rotate
at the vertex without touching an obstacle. The verifier counts such corners in `PathCheck::corners`. 0 disables them.
- `lattice_tight_arcs: false`, `lattice_tight_turn_cost_m: 0.15`: optional lattice arcs at
`min_turn_radius_m`; off because they cost many regress7 queries to timeouts.
- `lattice_field_extra_clearance_m: 0.0`: extra clearance a cell needs in the lattice heuristic field only, so the field
stays out of gaps barely wider than the robot; when that closes the only way to the start, the plain field is rebuilt.
- `debug/dump_dir: ""`, `debug/dump_max_files: 20`: when the directory is set, each failed query
writes its static cost, master cost, direction codes and poses as `lane_route_eval` input
(`<stem>.grid`, `.live`, `.scene`, `.txt`), at most that many per session. Off by default because