5 Commits

Author SHA1 Message Date
07bffab7fa build(lane_route_core): turn tests off by default in catkin and standalone builds
BUILD_LANE_ROUTE_TESTS now defaults to OFF in both build modes instead of
following BUILDING_WITH_CATKIN. It also gates the lane_route_eval tool.
Enable with -DBUILD_LANE_ROUTE_TESTS=ON.
2026-11-17 20:36:43 +07:00
d36921f5b3 fix(lane_route): put standalone .so files at the top of the build directory
PluginLoaderHelper looks only at the top of each PNKX_NAV_CORE_LIBRARY_PATH
directory. In the standalone build liblane_route_planner.so ended up in its
subdirectory, so move_base2 on the robot could not load LaneRoutePlanner.
Set LIBRARY_OUTPUT_DIRECTORY and BUILD_RPATH to CMAKE_BINARY_DIR for both
lane_route_planner and lane_route_core, as the other plugin packages do.
The catkin branch is unchanged.
2026-11-10 22:27:14 +07:00
4453f454a9 feat(lane_route): footprint standability, unknown cells in graph gap (R2.8)
- Standability: a cell is passable for the graph length reference and the
  lattice heuristic field only when the footprint plus the minimum gap fits
  at one of 16 headings; memoised per 32x32 tile, open space skips the test.
- Graph reference no longer cuts diagonal corners; route_too_long reports
  the reference length.
- Lattice field: coarse block passability decided lazily on first touch.
- ReferenceMemo: one route_too_long reference search per core pass instead
  of one per candidate.
- Graph tier counts unknown cells as obstacles for the footprint gap, like
  the lattice (user ruling 10/11).
- PlanInfo and eval JSON: standability counters, graph reference length.
2026-11-10 10:01:39 +07:00
b0a3954541 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
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