rtabmap_util tests and doc (#1450)

* Initial tests

* more tests

* More in-depth deskew() testing

* slightly less verbose clamping corruption warning

* added tf buffer related tests

* added remaining tests

* Added rosdoc2, improve tests when we require sync of odom stamp and sensor stamp

* cleanup doc

* fixing ci

* rtabmap_util tests and doc

* Added db_player tests

* Added MapsManager tests

* Added map_assembler tests

* Documenting node first draft

* relative links

* Fixed british->usa english style. Reviewed all md files.

* added link to install ros1

* updated badges

* added Iron

* added ubuntu

* added codecov

* updated coverage ci

* fixing rosdep

* updated ci cov job

* ci bump

* fixing cov ci

* small doc cleanup
This commit is contained in:
matlabbe
2026-09-07 21:23:22 -07:00
committed by GitHub
parent f77dda2b58
commit 61edb4ee85
60 changed files with 9443 additions and 192 deletions
+37
View File
@@ -300,4 +300,41 @@ install(DIRECTORY include/
FILES_MATCHING PATTERN "*.h"
)
#############
## Testing ##
#############
if(BUILD_TESTING)
find_package(ament_cmake_gtest REQUIRED)
# Each node gets its own test binary: a crash or a stuck executor in one node cannot
# take the others down, and every binary starts with a clean DDS graph.
macro(rtabmap_util_add_node_test test_name)
ament_add_gtest(${test_name} test/${test_name}.cpp)
if(TARGET ${test_name})
target_include_directories(${test_name} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/test)
target_link_libraries(${test_name} rtabmap_util_plugins rtabmap_util)
if("$ENV{ROS_DISTRO}" STRLESS "lyrical")
ament_target_dependencies(${test_name} ${AmentLibraries})
else()
target_link_libraries(${test_name} ${Libraries} ${PublicLibraries})
endif()
endif()
endmacro()
rtabmap_util_add_node_test(test_imu_to_tf)
rtabmap_util_add_node_test(test_disparity_to_depth)
rtabmap_util_add_node_test(test_rgbd_relay)
rtabmap_util_add_node_test(test_rgbd_split)
rtabmap_util_add_node_test(test_lidar_deskewing)
rtabmap_util_add_node_test(test_obstacles_detection)
rtabmap_util_add_node_test(test_point_cloud_aggregator)
rtabmap_util_add_node_test(test_point_cloud_assembler)
rtabmap_util_add_node_test(test_point_cloud_xyz)
rtabmap_util_add_node_test(test_pointcloud_to_depthimage)
rtabmap_util_add_node_test(test_point_cloud_xyzrgb)
rtabmap_util_add_node_test(test_db_player)
rtabmap_util_add_node_test(test_maps_manager)
rtabmap_util_add_node_test(test_map_assembler)
endif()
ament_package()