From 2156b386e4301a8496bb3bbd4e809f0b511c4f8d Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Fri, 4 Sep 2026 17:10:47 +0900 Subject: [PATCH 1/5] [GA] add kilted/lyrical test --- .github/workflows/ros2.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ros2.yaml b/.github/workflows/ros2.yaml index e5695f7..86d17d1 100644 --- a/.github/workflows/ros2.yaml +++ b/.github/workflows/ros2.yaml @@ -7,8 +7,12 @@ on: jobs: build_and_test: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + ROS_DISTRO: [jazzy, kilted, lyrical] steps: - uses: actions/checkout@v4 - uses: ros-industrial/industrial_ci@master env: - ROS_DISTRO: jazzy + ROS_DISTRO: ${{ matrix.ROS_DISTRO }} From 8d5b31fa90329933fb7e494d0b120367f086eaeb Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Sat, 5 Sep 2026 16:29:36 +0900 Subject: [PATCH 2/5] Fix ROS 2 message_filters includes in posedetection_msgs, .h -> .hpp --- .../include/posedetection_msgs/feature0d_to_image.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/posedetection_msgs/include/posedetection_msgs/feature0d_to_image.h b/posedetection_msgs/include/posedetection_msgs/feature0d_to_image.h index 7377b2a..980981e 100644 --- a/posedetection_msgs/include/posedetection_msgs/feature0d_to_image.h +++ b/posedetection_msgs/include/posedetection_msgs/feature0d_to_image.h @@ -70,10 +70,17 @@ #include #endif +#if ROS_VERSION_MAJOR == 1 #include #include #include #include +#else +#include +#include +#include +#include +#endif #if ROS_VERSION_MAJOR == 1 #if BOOST_VERSION < 106000 // since 1.60.0, boost uses placeholders namesapce for _1,_2... From 7170885e2be9fe4b18380bb0908a6bdb9ca32539 Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Sat, 5 Sep 2026 16:42:21 +0900 Subject: [PATCH 3/5] remove #include which is already defined in feature0d_to_image.h --- posedetection_msgs/src/feature0d_to_image.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/posedetection_msgs/src/feature0d_to_image.cpp b/posedetection_msgs/src/feature0d_to_image.cpp index da1f2df..d794efd 100644 --- a/posedetection_msgs/src/feature0d_to_image.cpp +++ b/posedetection_msgs/src/feature0d_to_image.cpp @@ -13,27 +13,11 @@ // limitations under the License. #include "posedetection_msgs/feature0d_to_image.h" -#if ROS_VERSION_MAJOR == 1 -#include -#include -#include -#else -#include -#include -#include -#endif - -#include -#if ROS_VERSION_MAJOR == 1 -#include -#endif - #if ROS_VERSION_MAJOR == 1 #include #else #include #endif -#include namespace posedetection_msgs { From 51588ed931799ef7ef0a5e2798cf50a3c77644a2 Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Sat, 5 Sep 2026 17:15:17 +0900 Subject: [PATCH 4/5] Fix message_filters::Subscriber API compatibility between Jazzy and Kilted The message_filters::Subscriber::subscribe() method has different signatures across ROS 2 distributions: - Jazzy and earlier: requires rclcpp::QoS(1).get_rmw_qos_profile() - Kilted and later: accepts rclcpp::QoS(1) directly Add preprocessor conditionals using ROS_DISTRO_NUMBER and ROS_DISTRO_JAZZY macros to call the correct API based on the target distribution. Fixes compilation error: error: no matching function for call to 'message_filters::Subscriber<...>::subscribe(...)' note: candidate expects 0 arguments, 3 provided --- .../include/posedetection_msgs/feature0d_to_image.h | 1 + posedetection_msgs/src/feature0d_to_image.cpp | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/posedetection_msgs/include/posedetection_msgs/feature0d_to_image.h b/posedetection_msgs/include/posedetection_msgs/feature0d_to_image.h index 980981e..9ec29d3 100644 --- a/posedetection_msgs/include/posedetection_msgs/feature0d_to_image.h +++ b/posedetection_msgs/include/posedetection_msgs/feature0d_to_image.h @@ -58,6 +58,7 @@ #include #else #include +#include #include #include diff --git a/posedetection_msgs/src/feature0d_to_image.cpp b/posedetection_msgs/src/feature0d_to_image.cpp index d794efd..3ef9142 100644 --- a/posedetection_msgs/src/feature0d_to_image.cpp +++ b/posedetection_msgs/src/feature0d_to_image.cpp @@ -42,8 +42,15 @@ namespace posedetection_msgs using std::placeholders::_1; using std::placeholders::_2; _pub = _node->create_publisher("~/output", 1); +#if !RCLCPP_VERSION_GTE(29, 0, 0) + // Jazzy and earlier: need to convert QoS to rmw_qos_profile _sub_image.subscribe(_node.get(), "image", rclcpp::QoS(1).get_rmw_qos_profile()); _sub_feature.subscribe(_node.get(), "Feature0D", rclcpp::QoS(1).get_rmw_qos_profile()); +#else + // Kilted and later: QoS object directly + _sub_image.subscribe(_node.get(), "image", rclcpp::QoS(1)); + _sub_feature.subscribe(_node.get(), "Feature0D", rclcpp::QoS(1)); +#endif _sync = std::make_shared>(100); _sync->connectInput(_sub_image, _sub_feature); _sync->registerCallback(std::bind( From 84ae24805c7038972e80761bb944f4243f774b1f Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Sun, 6 Sep 2026 14:00:50 +0900 Subject: [PATCH 5/5] add rolling test --- .github/workflows/ros2.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ros2.yaml b/.github/workflows/ros2.yaml index 86d17d1..0727ef8 100644 --- a/.github/workflows/ros2.yaml +++ b/.github/workflows/ros2.yaml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - ROS_DISTRO: [jazzy, kilted, lyrical] + ROS_DISTRO: [jazzy, kilted, lyrical, rolling] steps: - uses: actions/checkout@v4 - uses: ros-industrial/industrial_ci@master