Commit Graph

4 Commits

Author SHA1 Message Date
4cb395f525 feat(lane_route_core): zone deviation cost and graph/lattice completeness fixes (R2.12)
- Graph tier: add zone_deviation_cost (weight * ds * dev_deg/45) to compiled,
  query and shortcut edges, so aligned travel is preferred and a diagonal is
  only used where a straight move is not possible.
- Drop the route_too_long rejection; its relaxed standability reference
  ignored heading continuity and discarded verified long routes.
- Graph retries: skip duplicate candidates and block the edge pair nearest
  the verifier failure location.
- Lattice: heading-sector guide field, zone-transition retry, finer-bin
  refinement before reporting lattice_approx_exhausted, analytic connector
  best-cost choice. The lattice plans with zone_deviation_weight 0.
- lane_route_eval: zone_deviation_weight and time_limit_s keys,
  zone_dev_len_m / zone_dev_integral output.

Sim config: random 300 scenes hook 224 vs 212, kit 199 vs 196; regress7
3416 = R2.11 baseline; independent recheck 0 violations; 128 tests pass.
2026-11-11 14:31:32 +07:00
447ce46c29 feat(lane_route): footprint-zone rule with entry/exit transition, longer lane-end links (R2.11)
- A footprint may overlap a direction zone against its heading only within
  zone_transition_m (default 1.0 m) of path where the centre is inside that
  same zone, or at a parked endpoint. Checked on whole paths by the verifier.
- The lattice C-space keeps the strict per-pose rule so its paths always pass.
- Lane-end junction links reach 8 m with up to 24 links (was 6 m / 12 tries).
- lane_route_eval can dump the graph, attempts and routes per query.
2026-11-10 16:32:02 +07:00
527071827f 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.
2026-11-09 23:30:46 +07:00
24822f5408 feat(lane_route): add lane_route_core and lane_route_planner (R0 + R1)
lane_route_core plans on a precomputed coarse graph (Voronoi ridges and
direction-zone lanes) and, when enabled, falls back to a weighted A*
search over an SE(2) lattice that enforces forward motion, the minimum
turn radius, end-only spins, the footprint gap and direction zones.

- R0: route_planner.cpp split into graph search, path building and the
  graph tier; regress7 output identical to the previous build.
- R1: lattice tier (lazy packed C-space tiles, direction-aware heuristic
  field, analytic Dubins and point connectors, end-gap floors counting
  unknown cells). Off by default (lattice_enabled = false).
- lane_route_eval takes an optional tier mode and LANE_ROUTE_EVAL_SET
  overrides for offline tuning.

Local snapshot for history only; not pushed.
2026-11-09 13:44:17 +07:00