diff --git a/shared/patch/ros2-rko-lio.patch b/shared/patch/ros2-rko-lio.patch new file mode 100644 index 00000000..4e7fb1cb --- /dev/null +++ b/shared/patch/ros2-rko-lio.patch @@ -0,0 +1,14 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index cfef6f3..f227839 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -29,7 +29,8 @@ option(RKO_LIO_FETCH_CONTENT_DEPS "Fetch dependencies via FetchContent instead o + include(cmake/dependencies.cmake) + include(cmake/compat_target_sources.cmake) + +-find_package(Eigen3 3.4 REQUIRED CONFIG) ++# no minimum version: Eigen 5 (conda-forge) rejects a 3.x request (SameMajorVersion) ++find_package(Eigen3 REQUIRED CONFIG) + find_package(Sophus REQUIRED CONFIG) + find_package(TBB REQUIRED CONFIG) + find_package(tsl-robin-map REQUIRED CONFIG) diff --git a/shared/robostack.yaml b/shared/robostack.yaml index e1dd8aea..49dc36fa 100644 --- a/shared/robostack.yaml +++ b/shared/robostack.yaml @@ -1212,6 +1212,8 @@ rapidjson-dev: robostack: [rapidjson] rmw_opensplice_cpp: robostack: [] +robin-map-dev: + robostack: [tsl_robin_map] roboticstoolbox-python: robostack: [roboticstoolbox-python] rsync: diff --git a/shared/tests/ros2-rko-lio.yaml b/shared/tests/ros2-rko-lio.yaml new file mode 100644 index 00000000..4bec639b --- /dev/null +++ b/shared/tests/ros2-rko-lio.yaml @@ -0,0 +1,6 @@ +tests: + # Smoke test: `rko_lio/online_node` (the odometry node) starts (loads its libraries and the RMW) and is still running after 5 s. + - if: unix + then: + script: + - python -c "import os, subprocess, sys, time; p = subprocess.Popen([os.path.join(os.environ['PREFIX'], 'lib', 'rko_lio', 'online_node')]); time.sleep(5); r = p.poll(); p.terminate(); sys.exit(0 if r is None else 1)" diff --git a/shared/vinca.yaml b/shared/vinca.yaml index c93bc085..044e98aa 100644 --- a/shared/vinca.yaml +++ b/shared/vinca.yaml @@ -266,6 +266,7 @@ packages_select_by_deps: - realsense2_camera # IntelRealSense - realsense2_description # IntelRealSense - realtime_tools + - rko_lio # LiDAR-inertial odometry (PRBonn); requested in https://github.com/RoboStack/ros-kilted/pull/104 - rmf_demos - rmw - rmw_stats_shim