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 5e80e05..0e5a15b 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;