From 424a0283cd8055fb0030412c7f8c22f98f3768b2 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 fb8d5a2..0e40989 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 e0fb772..232eb28 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); }