From ed295674b5118e8a2f61f855b6242a8d803c5258 Mon Sep 17 00:00:00 2001 From: Jon Binney Date: Wed, 4 Sep 2024 20:25:17 +0000 Subject: [PATCH] Disable param callback code on humble --- CMakeLists.txt | 4 ++++ include/laser_filters/speckle_filter.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e7638cd..3ab3568 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,10 @@ if(${rclcpp_VERSION_MAJOR} GREATER_EQUAL 20) add_compile_definitions(RCLCPP_SUPPORTS_MATCHED_CALLBACKS) endif() +if(${rclcpp_VERSION_MAJOR} GREATER_EQUAL 17) + add_compile_definitions(RCLCPP_SUPPORTS_POST_SET_PARAMS_CALLBACK) +endif() + ament_auto_add_library(laser_scan_filters SHARED src/laser_scan_filters.cpp) ament_auto_add_library(laser_filter_chains SHARED src/scan_to_cloud_filter_chain.cpp diff --git a/include/laser_filters/speckle_filter.h b/include/laser_filters/speckle_filter.h index 2eccfec..b253bf3 100644 --- a/include/laser_filters/speckle_filter.h +++ b/include/laser_filters/speckle_filter.h @@ -214,8 +214,10 @@ class LaserScanSpeckleFilter : public filters::FilterBaseadd_post_set_parameters_callback( std::bind(&LaserScanSpeckleFilter::reconfigureCB, this, std::placeholders::_1)); + #endif return true; } @@ -300,7 +302,10 @@ class LaserScanSpeckleFilter : public filters::FilterBase