Skip to content

Commit

Permalink
Change Parameter Type
Browse files Browse the repository at this point in the history
  • Loading branch information
TaeJung Kim committed Aug 8, 2023
1 parent 0681c08 commit 983df83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ClpeNode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string>();
const std::string & password = this->get_parameter(kPassword).get_value<std::string>();
const auto result = this->clpe_api.Clpe_Connection(password);
if (result != 0) {
RCLCPP_FATAL(
Expand Down Expand Up @@ -404,7 +404,7 @@ class ClpeNode : public rclcpp::Node

std::string GetEncoding_()
{
const auto enc = this->get_parameter(kEncoding).get_value<std::string>();
const std::string enc = this->get_parameter(kEncoding).get_value<std::string>();
if (std::find(kSupportedEncodings.begin(), kSupportedEncodings.end(), enc) ==
kSupportedEncodings.end())
{
Expand All @@ -416,7 +416,7 @@ class ClpeNode : public rclcpp::Node

std::string GetTimeStamp_()
{
const auto enc = this->get_parameter(kTimeStamp).get_value<std::string>();
const std::string enc = this->get_parameter(kTimeStamp).get_value<std::string>();
if (std::find(kSupportedTimeStamps.begin(), kSupportedTimeStamps.end(), enc) ==
kSupportedTimeStamps.end())
{
Expand Down

0 comments on commit 983df83

Please sign in to comment.