Files
lane_route_planner/README.md
duongtd 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

25 lines
1.7 KiB
Markdown

# LaneRoutePlanner
A `robot_nav_core::BaseGlobalPlanner` and `Preemptable` Boost.DLL plugin using
`lane_route_core` and the immutable `robot_costmap_2d` reference-graph and direction snapshots.
The `LaneRoutePlannerExternalGrid` capability accepts the caller's non-owning snapshot. The caller
must keep that grid alive throughout `makePlan`. A missing, pending or stale graph returns failure;
the navigation host decides whether to try another planner. No planner is selected by this package.
The cached compiled graphs are dropped when the reference generation, footprint, direction snapshot,
or the exact preferred-cell mask changes. Other master costs are read again at query time. The core
uses the worker's ridge parameters for a live rebuild. `time_limit_s` defaults to 20 seconds.
Cancellation is checked during graph compilation and core planning. Preferred-region centre-line
extraction does not itself accept cancellation: a request arriving during that call waits until it
returns. It runs only on compilation when the master has preferred cells; its worst-case time is
unmeasured. Live ridge skeleton and graph construction receive the cancellation flag.
Master cost 100 is interpreted as UNPREFERRED. Inflation can produce exactly 100 under some
parameter sets, causing a small penalty and potentially an extra neutral pass on failure. The
current inflation parameters have not produced that value; no normalization is applied.
The session tests exercise snapshots and grids without a real Costmap2DROBOT. Plugin loading,
NodeHandle parameter discovery, external-grid lifetime, snapshot synchronization, output headers,
and integration with the navigation host still require runtime validation.