From 0ea300c31d24b3b2294a6be4484b426fc7f2c7bf Mon Sep 17 00:00:00 2001 From: liuXinGangChina Date: Mon, 6 Jan 2025 14:22:36 +0800 Subject: [PATCH] fix: fix ci-cpplint check error: v0.3 Signed-off-by: liuXinGangChina --- .../include/autoware/localization_util/covariance_ellipse.hpp | 2 -- .../localization_util/tree_structured_parzen_estimator.hpp | 3 --- .../include/autoware/localization_util/util_func.hpp | 2 -- .../autoware_localization_util/src/covariance_ellipse.cpp | 2 ++ .../src/tree_structured_parzen_estimator.cpp | 4 ++++ localization/autoware_localization_util/src/util_func.cpp | 3 +++ 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/localization/autoware_localization_util/include/autoware/localization_util/covariance_ellipse.hpp b/localization/autoware_localization_util/include/autoware/localization_util/covariance_ellipse.hpp index de73ebeb06..abd0af4685 100644 --- a/localization/autoware_localization_util/include/autoware/localization_util/covariance_ellipse.hpp +++ b/localization/autoware_localization_util/include/autoware/localization_util/covariance_ellipse.hpp @@ -20,8 +20,6 @@ #include #include -#include - namespace autoware::localization_util { diff --git a/localization/autoware_localization_util/include/autoware/localization_util/tree_structured_parzen_estimator.hpp b/localization/autoware_localization_util/include/autoware/localization_util/tree_structured_parzen_estimator.hpp index 1876586bb3..3469b9adf8 100644 --- a/localization/autoware_localization_util/include/autoware/localization_util/tree_structured_parzen_estimator.hpp +++ b/localization/autoware_localization_util/include/autoware/localization_util/tree_structured_parzen_estimator.hpp @@ -26,10 +26,7 @@ Optuna is also used as a reference for implementation. #include #include -#include -#include -#include namespace autoware::localization_util { diff --git a/localization/autoware_localization_util/include/autoware/localization_util/util_func.hpp b/localization/autoware_localization_util/include/autoware/localization_util/util_func.hpp index bef9968f34..624f6222bd 100644 --- a/localization/autoware_localization_util/include/autoware/localization_util/util_func.hpp +++ b/localization/autoware_localization_util/include/autoware/localization_util/util_func.hpp @@ -29,11 +29,9 @@ #include #endif -#include #include #include #include -#include #include namespace autoware::localization_util diff --git a/localization/autoware_localization_util/src/covariance_ellipse.cpp b/localization/autoware_localization_util/src/covariance_ellipse.cpp index 4a7d71909f..aff6e737f7 100644 --- a/localization/autoware_localization_util/src/covariance_ellipse.cpp +++ b/localization/autoware_localization_util/src/covariance_ellipse.cpp @@ -14,6 +14,8 @@ #include "autoware/localization_util/covariance_ellipse.hpp" +#include + #include #ifdef ROS_DISTRO_GALACTIC #include diff --git a/localization/autoware_localization_util/src/tree_structured_parzen_estimator.cpp b/localization/autoware_localization_util/src/tree_structured_parzen_estimator.cpp index 064b33ebe3..aa8f41f2bd 100644 --- a/localization/autoware_localization_util/src/tree_structured_parzen_estimator.cpp +++ b/localization/autoware_localization_util/src/tree_structured_parzen_estimator.cpp @@ -19,6 +19,10 @@ #include #include +#include +#include +#include + namespace autoware::localization_util { // random number generator diff --git a/localization/autoware_localization_util/src/util_func.cpp b/localization/autoware_localization_util/src/util_func.cpp index 6b019f7750..12679352ad 100644 --- a/localization/autoware_localization_util/src/util_func.cpp +++ b/localization/autoware_localization_util/src/util_func.cpp @@ -16,6 +16,9 @@ #include "autoware/localization_util/matrix_type.hpp" +#include +#include + namespace autoware::localization_util { // ref by http://takacity.blog.fc2.com/blog-entry-69.html