wip: state before depth cleanup

Uncommitted work as it ran on the KIT robot until 2026-10-20: the ROC observed_volume tuning patch on top of 63707c9 and the DepthCameraObstacleLayer plugin (clone of tsengapola/costmap_depth_camera noetic, B6 window fix), its 17 unit tests and the CMake wiring. Kept as one commit so the cleanup that follows has a recoverable starting point; not meant to be pushed.
This commit is contained in:
2026-10-20 09:36:53 +07:00
parent 63707c968c
commit 9a67eee148
16 changed files with 1816 additions and 13 deletions

View File

@@ -23,7 +23,8 @@ find_package(Boost REQUIRED COMPONENTS system thread filesystem)
# still configure. The test block below requires it where it is actually used.
find_package(GTest QUIET)
find_package(yaml-cpp REQUIRED)
find_package(PCL REQUIRED COMPONENTS common filters)
# kdtree/search/segmentation: DepthCameraObstacleLayer (kd-tree clearing, Euclidean clustering).
find_package(PCL REQUIRED COMPONENTS common filters kdtree search segmentation)
if (NOT BUILDING_WITH_CATKIN)
@@ -181,7 +182,12 @@ add_library(plugins SHARED
plugins/directional_layer.cpp
plugins/preferred_layer.cpp
plugins/unpreferred_layer.cpp
plugins/depth_camera_obstacle_layer.cpp
)
# PCL stays private to the plugin library, like robot_costmap_2d: no PCL type in public headers.
target_include_directories(plugins SYSTEM PRIVATE ${PCL_INCLUDE_DIRS})
target_compile_options(plugins PRIVATE ${PCL_DEFINITIONS})
target_link_libraries(plugins PRIVATE ${PCL_LIBRARIES})
if(BUILDING_WITH_CATKIN)
add_dependencies(plugins ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
@@ -301,6 +307,9 @@ if(BUILD_DEPTH_MARKING_TESTS)
add_executable(depth_evidence_store_test test/depth_evidence_store_test.cpp)
target_link_libraries(depth_evidence_store_test PRIVATE
robot_costmap_2d GTest::GTest GTest::Main)
add_executable(depth_camera_obstacle_layer_test test/depth_camera_obstacle_layer_test.cpp)
target_link_libraries(depth_camera_obstacle_layer_test PRIVATE
plugins robot_costmap_2d GTest::GTest GTest::Main)
endif()
if(BUILD_COSTMAP_TESTS)