From 983df83f3d4f30f072cf46c3f427a99a621b5eae Mon Sep 17 00:00:00 2001 From: TaeJung Kim Date: Tue, 8 Aug 2023 18:41:58 +0900 Subject: [PATCH] Change Parameter Type --- src/ClpeNode.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ClpeNode.hpp b/src/ClpeNode.hpp index 7cbc7e5..3b446f0 100644 --- a/src/ClpeNode.hpp +++ b/src/ClpeNode.hpp @@ -109,7 +109,7 @@ class ClpeNode : public rclcpp::Node void Init() { // FIXME: This requires sudo password!! - const auto & password = this->get_parameter(kPassword).get_value(); + const std::string & password = this->get_parameter(kPassword).get_value(); const auto result = this->clpe_api.Clpe_Connection(password); if (result != 0) { RCLCPP_FATAL( @@ -404,7 +404,7 @@ class ClpeNode : public rclcpp::Node std::string GetEncoding_() { - const auto enc = this->get_parameter(kEncoding).get_value(); + const std::string enc = this->get_parameter(kEncoding).get_value(); if (std::find(kSupportedEncodings.begin(), kSupportedEncodings.end(), enc) == kSupportedEncodings.end()) { @@ -416,7 +416,7 @@ class ClpeNode : public rclcpp::Node std::string GetTimeStamp_() { - const auto enc = this->get_parameter(kTimeStamp).get_value(); + const std::string enc = this->get_parameter(kTimeStamp).get_value(); if (std::find(kSupportedTimeStamps.begin(), kSupportedTimeStamps.end(), enc) == kSupportedTimeStamps.end()) {