From 465bd9f6e88e0c86b217a9ee306beb0a2aae5379 Mon Sep 17 00:00:00 2001 From: john-maidbot Date: Sat, 11 May 2024 13:02:43 -0500 Subject: [PATCH] more descriptive variable name in getParam --- .../include/point_cloud_transport/simple_publisher_plugin.hpp | 4 ++-- .../point_cloud_transport/simple_subscriber_plugin.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 ee19122..38d2ad1 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 @@ -91,14 +91,14 @@ class SimplePublisherPlugin : public point_cloud_transport::PublisherPlugin //! template function for getting parameter of a given type template - bool getParam(const std::string & name, T & value) const + bool getParam(const std::string & parameter_name, T & value) const { if (simple_impl_) { 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 + "." + name; + std::string param_name = param_base_name + "." + parameter_name; return simple_impl_->node_->get_parameter(param_name, value); } diff --git a/point_cloud_transport/include/point_cloud_transport/simple_subscriber_plugin.hpp b/point_cloud_transport/include/point_cloud_transport/simple_subscriber_plugin.hpp index 051e935..a4958ff 100644 --- a/point_cloud_transport/include/point_cloud_transport/simple_subscriber_plugin.hpp +++ b/point_cloud_transport/include/point_cloud_transport/simple_subscriber_plugin.hpp @@ -89,14 +89,14 @@ class SimpleSubscriberPlugin : public SubscriberPlugin //! template function for getting parameter of a given type template - bool getParam(const std::string & name, T & value) const + bool getParam(const std::string & parameter_name, T & value) const { if (impl_) { uint ns_len = 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 + "." + name; + std::string param_name = param_base_name + "." + parameter_name; return impl_->node_->get_parameter(param_name, value); }