feat(depth): observed_volume depth clearing as deployed 2026-10-14
Baseline commit of the working-tree refactor built on 2026-10-14 17:24 and running on the KIT robot, recorded in one commit before further changes. - VoxelLayer clearing looks up TF at the depth image stamp. - ObservationBuffer: per-source cloud preparation at the measurement stamp, height/range gate before the PCL VoxelGrid. - DepthFramePairer: pairs the marking cloud with the clearing image by source and stamp, bounded queue and age. - DepthVisibilityChecker and the observed_volume clearing mode in VoxelLayer; the legacy frustum mode stays the default. - Tests: depth_observation_buffer_test, depth_visibility_test.
This commit is contained in:
@@ -23,6 +23,7 @@ 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)
|
||||
|
||||
if (NOT BUILDING_WITH_CATKIN)
|
||||
|
||||
@@ -107,12 +108,16 @@ add_library(robot_costmap_2d SHARED
|
||||
src/array_parser.cpp
|
||||
src/costmap_2d.cpp
|
||||
src/observation_buffer.cpp
|
||||
src/depth_visibility.cpp
|
||||
src/layer.cpp
|
||||
src/layered_costmap.cpp
|
||||
src/costmap_math.cpp
|
||||
src/footprint.cpp
|
||||
src/costmap_layer.cpp
|
||||
)
|
||||
target_include_directories(robot_costmap_2d SYSTEM PRIVATE ${PCL_INCLUDE_DIRS})
|
||||
target_compile_options(robot_costmap_2d PRIVATE ${PCL_DEFINITIONS})
|
||||
target_link_libraries(robot_costmap_2d PRIVATE ${PCL_LIBRARIES})
|
||||
|
||||
if(BUILDING_WITH_CATKIN)
|
||||
add_dependencies(robot_costmap_2d ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
|
||||
@@ -281,6 +286,19 @@ endif()
|
||||
option(BUILD_COSTMAP_TESTS "Build robot_costmap_2d test executables"
|
||||
${BUILDING_WITH_CATKIN})
|
||||
|
||||
option(BUILD_DEPTH_MARKING_TESTS "Build depth observation buffer regression tests" OFF)
|
||||
if(BUILD_DEPTH_MARKING_TESTS)
|
||||
find_package(GTest REQUIRED)
|
||||
add_executable(depth_observation_buffer_test test/depth_observation_buffer_test.cpp)
|
||||
target_compile_definitions(depth_observation_buffer_test PRIVATE
|
||||
DEPTH_MARKING_TEST_PLUGIN_PATH="$<TARGET_FILE:plugins>")
|
||||
target_link_libraries(depth_observation_buffer_test PRIVATE
|
||||
plugins robot_costmap_2d GTest::GTest GTest::Main)
|
||||
add_executable(depth_visibility_test test/depth_visibility_test.cpp)
|
||||
target_link_libraries(depth_visibility_test PRIVATE
|
||||
plugins robot_costmap_2d GTest::GTest GTest::Main)
|
||||
endif()
|
||||
|
||||
if(BUILD_COSTMAP_TESTS)
|
||||
find_package(GTest REQUIRED)
|
||||
find_package(Boost REQUIRED COMPONENTS system thread filesystem)
|
||||
|
||||
Reference in New Issue
Block a user