2 Commits

Author SHA1 Message Date
e0d6f972cf build: turn tests off by default in catkin and standalone builds
BUILD_SBPL_LATTICE_TESTS now defaults to OFF in both build modes instead of following
BUILDING_WITH_CATKIN. Enable the tests with -DBUILD_SBPL_LATTICE_TESTS=ON.
2026-11-17 20:36:11 +07:00
f021a9ea59 feat(sbpl): plan only along allowed directions of the direction field
- DirectionalEnvironmentNAVXYTHETALAT overrides GetActionCost: after the
  base obstacle cost, it rejects an action when a cell crossed by the
  primitive's reference point has a direction code whose mask forbids
  that segment's displacement, or when the cell is outside the grid.
  Per-action (dx, dy, mask) tables are precomputed with the shared DDA.
- makePlan reads the direction snapshot once per call: PENDING or a
  geometry mismatch refuses to plan, a state or generation change forces
  planning from scratch, and the path is discarded if the field changed
  during the search. Environment init failure returns false instead of
  exit(1).
- The mask table records the deviation it was built with and is rebuilt
  when a ready field carries another max_deviation_deg; on failure the
  field is detached and planning is refused.

Full history: branch feature/direction-zone.
2026-11-04 13:24:16 +07:00

View File

@@ -237,7 +237,8 @@ else()
message(STATUS "=================================")
endif()
option(BUILD_SBPL_LATTICE_TESTS "Build sbpl_lattice_planner test executables" ${BUILDING_WITH_CATKIN})
# Tests are OFF by default in both build modes; enable with -DBUILD_SBPL_LATTICE_TESTS=ON.
option(BUILD_SBPL_LATTICE_TESTS "Build sbpl_lattice_planner test executables" OFF)
if(BUILD_SBPL_LATTICE_TESTS)
find_package(GTest REQUIRED)
add_executable(direction_environment_test test/direction_environment_test.cpp)