From 2936c9b3f09682cb4e12c017816077208e946d5c Mon Sep 17 00:00:00 2001 From: Shintaro Sakoda Date: Fri, 19 Jan 2024 13:47:45 +0900 Subject: [PATCH] Fixed as pointed out by cpplint Signed-off-by: Shintaro Sakoda --- .../include/deviation_estimator/validation_module.hpp | 2 ++ .../include/deviation_evaluator/deviation_evaluator.hpp | 2 +- .../deviation_evaluator/src/deviation_evaluator.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/localization/deviation_estimation_tools/deviation_estimator/include/deviation_estimator/validation_module.hpp b/localization/deviation_estimation_tools/deviation_estimator/include/deviation_estimator/validation_module.hpp index ada582bc..c6c01567 100644 --- a/localization/deviation_estimation_tools/deviation_estimator/include/deviation_estimator/validation_module.hpp +++ b/localization/deviation_estimation_tools/deviation_estimator/include/deviation_estimator/validation_module.hpp @@ -22,6 +22,8 @@ #include #include +#include +#include #include #include diff --git a/localization/deviation_estimation_tools/deviation_evaluator/include/deviation_evaluator/deviation_evaluator.hpp b/localization/deviation_estimation_tools/deviation_evaluator/include/deviation_evaluator/deviation_evaluator.hpp index 278b1913..8ac92a48 100644 --- a/localization/deviation_estimation_tools/deviation_evaluator/include/deviation_evaluator/deviation_evaluator.hpp +++ b/localization/deviation_estimation_tools/deviation_evaluator/include/deviation_evaluator/deviation_evaluator.hpp @@ -49,7 +49,7 @@ class DeviationEvaluator : public rclcpp::Node { double lateral; double long_radius; - Errors() : lateral(0), long_radius(0){}; + Errors() : lateral(0), long_radius(0) {} }; public: diff --git a/localization/deviation_estimation_tools/deviation_evaluator/src/deviation_evaluator.cpp b/localization/deviation_estimation_tools/deviation_evaluator/src/deviation_evaluator.cpp index 9bc3329d..2ba5c285 100644 --- a/localization/deviation_estimation_tools/deviation_evaluator/src/deviation_evaluator.cpp +++ b/localization/deviation_estimation_tools/deviation_evaluator/src/deviation_evaluator.cpp @@ -31,7 +31,7 @@ // clang-format on using std::placeholders::_1; -using namespace std::chrono_literals; +using std::chrono_literals::operator""s; double double_round(const double x, const int n) { return std::round(x * pow(10, n)) / pow(10, n); }