From d4448f3347360bbc3caf4bd9ded6cc61f3d4c36c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Thu, 5 Oct 2023 10:50:02 +0200 Subject: [PATCH] Fix param name (#39) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alejandro Hernández Cordero (cherry picked from commit 7acc9458dbfd75dcb4e8e2c984fd16e5d5d5aac8) --- .../point_cloud_transport/simple_publisher_plugin.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/point_cloud_transport/include/point_cloud_transport/simple_publisher_plugin.hpp b/point_cloud_transport/include/point_cloud_transport/simple_publisher_plugin.hpp index ae1d480..82ccbdb 100644 --- a/point_cloud_transport/include/point_cloud_transport/simple_publisher_plugin.hpp +++ b/point_cloud_transport/include/point_cloud_transport/simple_publisher_plugin.hpp @@ -113,8 +113,11 @@ class SimplePublisherPlugin : public point_cloud_transport::PublisherPlugin std::string param_name = param_base_name + "." + parameter_name; + rcl_interfaces::msg::ParameterDescriptor param_descriptor = parameter_descriptor; + param_descriptor.name = param_name; + simple_impl_->node_->template declare_parameter( - param_name, value, parameter_descriptor); + param_name, value, param_descriptor); return true; } return false;