feat(reflector_pair): add ReflectorPairMatcher for two flat reflective strips on a wall
Pure geometry core for the upcoming wall reflector detection action. The wall line is fitted from dark rays only; each strip edge is the half-step bearing between the intensity core and its neighbour, intersected with that line, so the range bias of bright returns never enters the pose. Exactly one valid pair is required; two or more report ambiguous. Synthetic tests cover geometry, quantisation, bloom, bright range bias, realistic range noise, wall ends, occluders, ambiguity and malformed input.
This commit is contained in:
@@ -69,6 +69,8 @@ add_library(dock_pattern_detector SHARED
|
||||
src/leg_profile.cpp
|
||||
src/leg_pose_fit.cpp
|
||||
src/leg_pattern_matcher.cpp
|
||||
src/reflector_pair_profile.cpp
|
||||
src/reflector_pair_matcher.cpp
|
||||
)
|
||||
|
||||
target_compile_options(dock_pattern_detector PRIVATE -Wall -Wextra)
|
||||
@@ -269,4 +271,14 @@ if(CATKIN_ENABLE_TESTING AND BUILDING_WITH_CATKIN)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
catkin_add_gtest(reflector_pair_matcher_test test/reflector_pair_matcher_test.cpp)
|
||||
if(TARGET reflector_pair_matcher_test)
|
||||
set_target_properties(reflector_pair_matcher_test PROPERTIES EXCLUDE_FROM_ALL FALSE)
|
||||
target_compile_options(reflector_pair_matcher_test PRIVATE -Wall -Wextra)
|
||||
target_include_directories(reflector_pair_matcher_test PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/test)
|
||||
target_include_directories(reflector_pair_matcher_test SYSTEM PRIVATE ${EIGEN3_INCLUDE_DIRS})
|
||||
target_link_libraries(reflector_pair_matcher_test dock_pattern_detector pthread)
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user