From a3e7b9762fe43ba7995ddc02cefe8f2ae14b7c37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Fri, 26 Jul 2024 17:29:25 +0200 Subject: [PATCH] Fix to include changes in message filters related to variadic templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alejandro Hernández Cordero --- depth_image_proc/src/disparity.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/depth_image_proc/src/disparity.cpp b/depth_image_proc/src/disparity.cpp index 9e1c18329..3267bcc7c 100644 --- a/depth_image_proc/src/disparity.cpp +++ b/depth_image_proc/src/disparity.cpp @@ -95,7 +95,8 @@ DisparityNode::DisparityNode(const rclcpp::NodeOptions & options) delta_d_ = this->declare_parameter("delta_d", 0.125); // Synchronize inputs. Topic subscriptions happen on demand in the connection callback. - sync_ = std::make_shared(sub_depth_image_, sub_info_, queue_size); + sync_ = std::make_shared(queue_size); + sync_->connectInput(sub_depth_image_, sub_info_); sync_->registerCallback( std::bind( &DisparityNode::depthCb, this, std::placeholders::_1, std::placeholders::_2));