9 Commits

Author SHA1 Message Date
4853576912 feat(lane_route_planner): load allow_unknown and print it at boot (R2.14)
Adds the allow_unknown key to the plugin config with a load test. Default false.
2026-11-20 16:30:47 +07:00
f66764e93c feat(lane_route_planner): load detour upgrade keys, log the outcome
- Load detour_upgrade_enabled, detour_upgrade_time_limit_s,
  detour_upgrade_min_saving and detour_upgrade_max_extra_zone_deviation_m;
  clamp them to their valid ranges and print them in the boot summary.
- The debug_plan line reports the detour outcome, graph and lattice length,
  cost and zone deviation, time and lattice reason.
- Tests: lane_route_planner_test 30/30.
2026-11-16 14:01:11 +07:00
cca126551c feat(lane_route_planner): trim endpoint spin fans, load zone_deviation_weight (R2.12)
- New output_endpoint_spins (default false): the published plan starts at the
  first driving pose and ends with one goal pose. The local planner turns in
  place by itself; the planner still verifies both spins are collision free.
- Load and clamp zone_deviation_weight; print both keys in the boot line.
- Tests for the trim helper (29 pass).
2026-11-11 14:31:32 +07:00
ab8fc7a540 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
53a0686b48 feat(lane_route): heuristic-only standability relax for the lattice field (R2.9)
- lattice_field_standability_relax_m (default 0): shrinks the inflated
  footprint half sizes for the lattice heuristic field only; graph
  reference, C-space and verification stay strict.
- Plugin loads it, prints it on the fallback boot line; README and eval
  override key.
- Measured 10/11: with extra field clearance 0 any relax reopens the sim
  post gaps (dumps 1, 2, 4 time out); with extra clearance 0.1 a relax of
  0.035 keeps them and gains one kit query.
2026-11-10 10:36:02 +07:00
88a2328ae8 feat(lane_route): radius ladder and failure dumps (R2.6)
Radius ladder: the first graph pass, the lattice and the smoother use
only radii at or above regular_turn_radius_m (1.06 m), as before. When
min_turn_radius_m is lower, the graph runs a second pass with all
corner_radii_m if the first fails or returns a long detour, and keeps
it only when at least 20% shorter. Optional lattice tight arcs exist
behind lattice_tight_arcs (off: they cost many queries to timeouts).
C++ defaults keep the old 1.06 m floor; regress7 output is identical.
With a 0.4 m floor: graph-only coverage +5 (hook_150) and +8 (kit),
none lost; with fallback, coverage unchanged and 27/29 queries move
from lattice to graph; tight corners used 0.9 m.

Failure dumps: with debug/dump_dir set, the plugin writes each failed
query as lane_route_eval input (static cost, master cost, direction
codes, poses, settings), at most debug/dump_max_files per session.
2026-11-09 20:09:43 +07:00
17ec2466b1 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.
2026-11-09 17:42:48 +07:00
ad326f535c feat(lane_route): smooth lattice paths (R2) and expose the lattice tier in the plugin (R3)
- lane_route_core: port of the S3 smoother for lattice paths (direct,
  greedy and bounded graph improvement over witness anchors, then
  clothoid corners when budget remains), shape metrics and smoother
  diagnostics in PlanInfo and lane_route_eval.
- lane_route_planner: loads the lattice keys from YAML, logs a config
  summary at start-up and one debug/fallback line per lattice request.

regress7: coverage unchanged from R1, every lattice path smoothed, 0 bad
in the independent recheck. Local snapshot for history only; not pushed.
2026-11-09 16:11:34 +07:00
0c2179fe54 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