Skip to content

Commit

Permalink
Fix usage of deprecated AsyncParametersClient constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
achim-k committed Jul 30, 2024
1 parent efbcaef commit 8bab64c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ros2_foxglove_bridge/src/parameter_interface.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "foxglove_bridge/parameter_interface.hpp"

#include <nlohmann/json.hpp>
#include <rclcpp/qos.hpp>

#include <foxglove_bridge/regex_utils.hpp>
#include <foxglove_bridge/utils.hpp>
Expand Down Expand Up @@ -196,7 +197,7 @@ ParameterList ParameterInterface::getParams(const std::vector<std::string>& 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;
}

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -282,7 +283,7 @@ void ParameterInterface::subscribeParams(const std::vector<std::string>& 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;
}

Expand Down

0 comments on commit 8bab64c

Please sign in to comment.