From 8bab64c353326bc9a11906c8612b503d18ac6839 Mon Sep 17 00:00:00 2001 From: Hans-Joachim Krauch Date: Tue, 30 Jul 2024 08:02:30 +0000 Subject: [PATCH] Fix usage of deprecated AsyncParametersClient constructor --- ros2_foxglove_bridge/src/parameter_interface.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ros2_foxglove_bridge/src/parameter_interface.cpp b/ros2_foxglove_bridge/src/parameter_interface.cpp index 7135af4..9e2c030 100644 --- a/ros2_foxglove_bridge/src/parameter_interface.cpp +++ b/ros2_foxglove_bridge/src/parameter_interface.cpp @@ -1,6 +1,7 @@ #include "foxglove_bridge/parameter_interface.hpp" #include +#include #include #include @@ -196,7 +197,7 @@ ParameterList ParameterInterface::getParams(const std::vector& para if (paramClientIt == _paramClientsByNode.end()) { const auto insertedPair = _paramClientsByNode.emplace( nodeName, rclcpp::AsyncParametersClient::make_shared( - _node, nodeName, rmw_qos_profile_parameters, _callbackGroup)); + _node, nodeName, rclcpp::ParametersQoS(), _callbackGroup)); paramClientIt = insertedPair.first; } @@ -239,7 +240,7 @@ void ParameterInterface::setParams(const ParameterList& parameters, if (paramClientIt == _paramClientsByNode.end()) { const auto insertedPair = _paramClientsByNode.emplace( nodeName, rclcpp::AsyncParametersClient::make_shared( - _node, nodeName, rmw_qos_profile_parameters, _callbackGroup)); + _node, nodeName, rclcpp::ParametersQoS(), _callbackGroup)); paramClientIt = insertedPair.first; } @@ -282,7 +283,7 @@ void ParameterInterface::subscribeParams(const std::vector& paramNa if (paramClientIt == _paramClientsByNode.end()) { const auto insertedPair = _paramClientsByNode.emplace( nodeName, rclcpp::AsyncParametersClient::make_shared( - _node, nodeName, rmw_qos_profile_parameters, _callbackGroup)); + _node, nodeName, rclcpp::ParametersQoS(), _callbackGroup)); paramClientIt = insertedPair.first; }