diff --git a/include/point_cloud_transport/simple_publisher_plugin.hpp b/include/point_cloud_transport/simple_publisher_plugin.hpp index ae9562d..837bdaa 100644 --- a/include/point_cloud_transport/simple_publisher_plugin.hpp +++ b/include/point_cloud_transport/simple_publisher_plugin.hpp @@ -106,8 +106,23 @@ class SimplePublisherPlugin : public point_cloud_transport::PublisherPlugin rcl_interfaces::msg::ParameterDescriptor()) { if (simple_impl_) { +<<<<<<< Updated upstream:include/point_cloud_transport/simple_publisher_plugin.hpp simple_impl_->node_->template declare_parameter( parameter_name, value, parameter_descriptor); +======= + // Declare Parameters + uint ns_len = simple_impl_->node_->get_effective_namespace().length(); + std::string param_base_name = getTopic().substr(ns_len); + std::replace(param_base_name.begin(), param_base_name.end(), '/', '.'); + + 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, param_descriptor); +>>>>>>> Stashed changes:point_cloud_transport/include/point_cloud_transport/simple_publisher_plugin.hpp return true; } return false;