diff --git a/rosplane/include/param_manager.hpp b/rosplane/include/param_manager.hpp index 27d4279..de70e11 100644 --- a/rosplane/include/param_manager.hpp +++ b/rosplane/include/param_manager.hpp @@ -55,10 +55,10 @@ class param_manager * This function sets a previously declared parameter to a new value in both the parameter object * and the ROS system. */ - void set_parameter(std::string param_name, double value); - void set_parameter(std::string param_name, bool value); + void set_double(std::string param_name, double value); + void set_bool(std::string param_name, bool value); void set_int(std::string param_name, int64_t value); - void set_parameter(std::string param_name, std::string value); + void set_string(std::string param_name, std::string value); /** * This function should be called in the parametersCallback function in a containing ROS node. diff --git a/rosplane/src/param_manager.cpp b/rosplane/src/param_manager.cpp index 2b7ac29..2001b6b 100644 --- a/rosplane/src/param_manager.cpp +++ b/rosplane/src/param_manager.cpp @@ -37,7 +37,7 @@ void param_manager::declare_string(std::string param_name, std::string value) container_node_->declare_parameter(param_name, value); } -void param_manager::set_parameter(std::string param_name, double value) +void param_manager::set_double(std::string param_name, double value) { // Check that the parameter is in the parameter struct if (params_.find(param_name) == params_.end()) @@ -52,7 +52,7 @@ void param_manager::set_parameter(std::string param_name, double value) container_node_->set_parameter(rclcpp::Parameter(param_name, value)); } -void param_manager::set_parameter(std::string param_name, bool value) +void param_manager::set_bool(std::string param_name, bool value) { // Check that the parameter is in the parameter struct if (params_.find(param_name) == params_.end()) @@ -82,7 +82,7 @@ void param_manager::set_int(std::string param_name, int64_t value) container_node_->set_parameter(rclcpp::Parameter(param_name, value)); } -void param_manager::set_parameter(std::string param_name, std::string value) +void param_manager::set_string(std::string param_name, std::string value) { // Check that the parameter is in the parameter struct if (params_.find(param_name) == params_.end())