From cbe13bf9b0ac11188c749e40cf65d102d4f009bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Fatih=20C=C4=B1r=C4=B1t?= Date: Wed, 4 Dec 2024 21:14:44 +0300 Subject: [PATCH] fix(cpplint): include what you use - sensing (#9571) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: M. Fatih Cırıt --- .../autoware_image_diagnostics/src/image_diagnostics_node.cpp | 1 + .../src/gyro_bias_estimation_module.cpp | 2 ++ sensing/autoware_imu_corrector/src/gyro_bias_estimator.cpp | 2 ++ sensing/autoware_imu_corrector/src/imu_corrector_core.cpp | 3 +++ .../test/test_gyro_bias_estimation_module.cpp | 2 ++ .../src/blockage_diag/blockage_diag_node.cpp | 2 ++ .../concatenate_data/concatenate_and_time_sync_nodelet.cpp | 1 + .../src/crop_box_filter/crop_box_filter_node.cpp | 1 + .../src/distortion_corrector/distortion_corrector.cpp | 4 ++++ .../src/distortion_corrector/distortion_corrector_node.cpp | 4 ++++ .../downsample_filter/faster_voxel_grid_downsample_filter.cpp | 1 + .../pickup_based_voxel_grid_downsample_filter_node.cpp | 3 +++ .../src/downsample_filter/robin_hood.h | 3 ++- .../src/outlier_filter/ring_outlier_filter_node.cpp | 2 ++ .../src/polygon_remover/polygon_remover.cpp | 2 ++ .../src/time_synchronizer/time_synchronizer_node.cpp | 1 + .../autoware_pointcloud_preprocessor/src/utility/geometry.cpp | 2 ++ .../vector_map_filter/vector_map_inside_area_filter_node.cpp | 4 ++++ .../test/test_distortion_corrector_node.cpp | 4 ++++ .../test_radar_tracks_noise_filter_is_noise.cpp | 2 ++ .../src/vehicle_velocity_converter.cpp | 2 ++ 21 files changed, 47 insertions(+), 1 deletion(-) diff --git a/sensing/autoware_image_diagnostics/src/image_diagnostics_node.cpp b/sensing/autoware_image_diagnostics/src/image_diagnostics_node.cpp index 829e0e3ee8d81..681e9ae70a89c 100644 --- a/sensing/autoware_image_diagnostics/src/image_diagnostics_node.cpp +++ b/sensing/autoware_image_diagnostics/src/image_diagnostics_node.cpp @@ -16,6 +16,7 @@ #include +#include #include namespace autoware::image_diagnostics diff --git a/sensing/autoware_imu_corrector/src/gyro_bias_estimation_module.cpp b/sensing/autoware_imu_corrector/src/gyro_bias_estimation_module.cpp index 18d7965470f05..2fbd5d4a6a39e 100644 --- a/sensing/autoware_imu_corrector/src/gyro_bias_estimation_module.cpp +++ b/sensing/autoware_imu_corrector/src/gyro_bias_estimation_module.cpp @@ -17,6 +17,8 @@ #include #include +#include + namespace autoware::imu_corrector { diff --git a/sensing/autoware_imu_corrector/src/gyro_bias_estimator.cpp b/sensing/autoware_imu_corrector/src/gyro_bias_estimator.cpp index ec91311455911..8dcc024ffc2b4 100644 --- a/sensing/autoware_imu_corrector/src/gyro_bias_estimator.cpp +++ b/sensing/autoware_imu_corrector/src/gyro_bias_estimator.cpp @@ -19,7 +19,9 @@ #include #include +#include #include +#include namespace autoware::imu_corrector { diff --git a/sensing/autoware_imu_corrector/src/imu_corrector_core.cpp b/sensing/autoware_imu_corrector/src/imu_corrector_core.cpp index a9acb45888945..d615a721ca5eb 100644 --- a/sensing/autoware_imu_corrector/src/imu_corrector_core.cpp +++ b/sensing/autoware_imu_corrector/src/imu_corrector_core.cpp @@ -14,6 +14,9 @@ #include "imu_corrector_core.hpp" +#include +#include + #ifdef ROS_DISTRO_GALACTIC #include #else diff --git a/sensing/autoware_imu_corrector/test/test_gyro_bias_estimation_module.cpp b/sensing/autoware_imu_corrector/test/test_gyro_bias_estimation_module.cpp index 573dbe84d6027..2d75c6d50de55 100644 --- a/sensing/autoware_imu_corrector/test/test_gyro_bias_estimation_module.cpp +++ b/sensing/autoware_imu_corrector/test/test_gyro_bias_estimation_module.cpp @@ -18,6 +18,8 @@ #include +#include + namespace autoware::imu_corrector { class GyroBiasEstimationModuleTest : public ::testing::Test diff --git a/sensing/autoware_pointcloud_preprocessor/src/blockage_diag/blockage_diag_node.cpp b/sensing/autoware_pointcloud_preprocessor/src/blockage_diag/blockage_diag_node.cpp index 26be762acca43..5021a3551c939 100644 --- a/sensing/autoware_pointcloud_preprocessor/src/blockage_diag/blockage_diag_node.cpp +++ b/sensing/autoware_pointcloud_preprocessor/src/blockage_diag/blockage_diag_node.cpp @@ -18,6 +18,8 @@ #include #include +#include +#include namespace autoware::pointcloud_preprocessor { diff --git a/sensing/autoware_pointcloud_preprocessor/src/concatenate_data/concatenate_and_time_sync_nodelet.cpp b/sensing/autoware_pointcloud_preprocessor/src/concatenate_data/concatenate_and_time_sync_nodelet.cpp index a67c9f7f018e1..f8baae3405873 100644 --- a/sensing/autoware_pointcloud_preprocessor/src/concatenate_data/concatenate_and_time_sync_nodelet.cpp +++ b/sensing/autoware_pointcloud_preprocessor/src/concatenate_data/concatenate_and_time_sync_nodelet.cpp @@ -58,6 +58,7 @@ #include #include +#include #include #include #include diff --git a/sensing/autoware_pointcloud_preprocessor/src/crop_box_filter/crop_box_filter_node.cpp b/sensing/autoware_pointcloud_preprocessor/src/crop_box_filter/crop_box_filter_node.cpp index c1b3605c8b97c..ecbc5b8fd13ef 100644 --- a/sensing/autoware_pointcloud_preprocessor/src/crop_box_filter/crop_box_filter_node.cpp +++ b/sensing/autoware_pointcloud_preprocessor/src/crop_box_filter/crop_box_filter_node.cpp @@ -53,6 +53,7 @@ #include +#include #include namespace autoware::pointcloud_preprocessor diff --git a/sensing/autoware_pointcloud_preprocessor/src/distortion_corrector/distortion_corrector.cpp b/sensing/autoware_pointcloud_preprocessor/src/distortion_corrector/distortion_corrector.cpp index 43a44f836b61a..8391894a4ada6 100644 --- a/sensing/autoware_pointcloud_preprocessor/src/distortion_corrector/distortion_corrector.cpp +++ b/sensing/autoware_pointcloud_preprocessor/src/distortion_corrector/distortion_corrector.cpp @@ -20,6 +20,10 @@ #include #include +#include +#include +#include + namespace autoware::pointcloud_preprocessor { diff --git a/sensing/autoware_pointcloud_preprocessor/src/distortion_corrector/distortion_corrector_node.cpp b/sensing/autoware_pointcloud_preprocessor/src/distortion_corrector/distortion_corrector_node.cpp index 896c7fe563e64..9eaafeae9dbc7 100644 --- a/sensing/autoware_pointcloud_preprocessor/src/distortion_corrector/distortion_corrector_node.cpp +++ b/sensing/autoware_pointcloud_preprocessor/src/distortion_corrector/distortion_corrector_node.cpp @@ -16,6 +16,10 @@ #include "autoware/pointcloud_preprocessor/distortion_corrector/distortion_corrector.hpp" +#include +#include +#include + namespace autoware::pointcloud_preprocessor { /** @brief Constructor. */ diff --git a/sensing/autoware_pointcloud_preprocessor/src/downsample_filter/faster_voxel_grid_downsample_filter.cpp b/sensing/autoware_pointcloud_preprocessor/src/downsample_filter/faster_voxel_grid_downsample_filter.cpp index 9a01ba3ddc1b1..804a91591271d 100644 --- a/sensing/autoware_pointcloud_preprocessor/src/downsample_filter/faster_voxel_grid_downsample_filter.cpp +++ b/sensing/autoware_pointcloud_preprocessor/src/downsample_filter/faster_voxel_grid_downsample_filter.cpp @@ -15,6 +15,7 @@ #include "autoware/pointcloud_preprocessor/downsample_filter/faster_voxel_grid_downsample_filter.hpp" #include +#include namespace autoware::pointcloud_preprocessor { diff --git a/sensing/autoware_pointcloud_preprocessor/src/downsample_filter/pickup_based_voxel_grid_downsample_filter_node.cpp b/sensing/autoware_pointcloud_preprocessor/src/downsample_filter/pickup_based_voxel_grid_downsample_filter_node.cpp index e3c6af7433dda..10e2fa2511478 100644 --- a/sensing/autoware_pointcloud_preprocessor/src/downsample_filter/pickup_based_voxel_grid_downsample_filter_node.cpp +++ b/sensing/autoware_pointcloud_preprocessor/src/downsample_filter/pickup_based_voxel_grid_downsample_filter_node.cpp @@ -16,6 +16,9 @@ #include "robin_hood.h" +#include +#include + namespace { /** diff --git a/sensing/autoware_pointcloud_preprocessor/src/downsample_filter/robin_hood.h b/sensing/autoware_pointcloud_preprocessor/src/downsample_filter/robin_hood.h index dd5cc9d60dd76..55307a2aa5552 100644 --- a/sensing/autoware_pointcloud_preprocessor/src/downsample_filter/robin_hood.h +++ b/sensing/autoware_pointcloud_preprocessor/src/downsample_filter/robin_hood.h @@ -68,6 +68,7 @@ #include #include #include +#include #if __cplusplus >= 201703L #include #endif @@ -85,7 +86,7 @@ #ifdef ROBIN_HOOD_TRACE_ENABLED #include #define ROBIN_HOOD_TRACE(...) \ - std::cout << __FUNCTION__ << "@" << __LINE__ << ": " << __VA_ARGS__ << std::endl; + std::cout << __FUNCTION__ << "@" << __LINE__ << ": " << __VA_ARGS__ << std::endl; // NOLINT #else #define ROBIN_HOOD_TRACE(x) #endif diff --git a/sensing/autoware_pointcloud_preprocessor/src/outlier_filter/ring_outlier_filter_node.cpp b/sensing/autoware_pointcloud_preprocessor/src/outlier_filter/ring_outlier_filter_node.cpp index 59000d71b8ad6..fae9043143ba4 100644 --- a/sensing/autoware_pointcloud_preprocessor/src/outlier_filter/ring_outlier_filter_node.cpp +++ b/sensing/autoware_pointcloud_preprocessor/src/outlier_filter/ring_outlier_filter_node.cpp @@ -19,6 +19,8 @@ #include #include +#include +#include #include namespace autoware::pointcloud_preprocessor { diff --git a/sensing/autoware_pointcloud_preprocessor/src/polygon_remover/polygon_remover.cpp b/sensing/autoware_pointcloud_preprocessor/src/polygon_remover/polygon_remover.cpp index 71b4c2026396e..e4bac9e35c248 100644 --- a/sensing/autoware_pointcloud_preprocessor/src/polygon_remover/polygon_remover.cpp +++ b/sensing/autoware_pointcloud_preprocessor/src/polygon_remover/polygon_remover.cpp @@ -14,6 +14,8 @@ #include "autoware/pointcloud_preprocessor/polygon_remover/polygon_remover.hpp" +#include + namespace autoware::pointcloud_preprocessor { PolygonRemoverComponent::PolygonRemoverComponent(const rclcpp::NodeOptions & options) diff --git a/sensing/autoware_pointcloud_preprocessor/src/time_synchronizer/time_synchronizer_node.cpp b/sensing/autoware_pointcloud_preprocessor/src/time_synchronizer/time_synchronizer_node.cpp index 5bf5069f1200f..42170fd88ee36 100644 --- a/sensing/autoware_pointcloud_preprocessor/src/time_synchronizer/time_synchronizer_node.cpp +++ b/sensing/autoware_pointcloud_preprocessor/src/time_synchronizer/time_synchronizer_node.cpp @@ -28,6 +28,7 @@ #include #include +#include #include #include #include diff --git a/sensing/autoware_pointcloud_preprocessor/src/utility/geometry.cpp b/sensing/autoware_pointcloud_preprocessor/src/utility/geometry.cpp index 7e9604c3dd305..1d08df944ca18 100644 --- a/sensing/autoware_pointcloud_preprocessor/src/utility/geometry.cpp +++ b/sensing/autoware_pointcloud_preprocessor/src/utility/geometry.cpp @@ -14,6 +14,8 @@ #include "autoware/pointcloud_preprocessor/utility/geometry.hpp" +#include + namespace autoware::pointcloud_preprocessor::utils { void to_cgal_polygon(const geometry_msgs::msg::Polygon & polygon_in, PolygonCgal & polygon_out) diff --git a/sensing/autoware_pointcloud_preprocessor/src/vector_map_filter/vector_map_inside_area_filter_node.cpp b/sensing/autoware_pointcloud_preprocessor/src/vector_map_filter/vector_map_inside_area_filter_node.cpp index 6fdf7791601cf..310b86526193c 100644 --- a/sensing/autoware_pointcloud_preprocessor/src/vector_map_filter/vector_map_inside_area_filter_node.cpp +++ b/sensing/autoware_pointcloud_preprocessor/src/vector_map_filter/vector_map_inside_area_filter_node.cpp @@ -14,6 +14,10 @@ #include "autoware/pointcloud_preprocessor/vector_map_filter/vector_map_inside_area_filter_node.hpp" +#include +#include +#include + namespace { autoware::universe_utils::Box2d calcBoundingBox( diff --git a/sensing/autoware_pointcloud_preprocessor/test/test_distortion_corrector_node.cpp b/sensing/autoware_pointcloud_preprocessor/test/test_distortion_corrector_node.cpp index 895061229a994..aba3c354473eb 100644 --- a/sensing/autoware_pointcloud_preprocessor/test/test_distortion_corrector_node.cpp +++ b/sensing/autoware_pointcloud_preprocessor/test/test_distortion_corrector_node.cpp @@ -41,6 +41,10 @@ #include #include +#include +#include +#include +#include enum AngleCoordinateSystem { HESAI, VELODYNE, CARTESIAN }; class DistortionCorrectorTest : public ::testing::Test diff --git a/sensing/autoware_radar_tracks_noise_filter/test/radar_tracks_noise_filter/test_radar_tracks_noise_filter_is_noise.cpp b/sensing/autoware_radar_tracks_noise_filter/test/radar_tracks_noise_filter/test_radar_tracks_noise_filter_is_noise.cpp index ea2dfc28b5a4c..e8551ae922f19 100644 --- a/sensing/autoware_radar_tracks_noise_filter/test/radar_tracks_noise_filter/test_radar_tracks_noise_filter_is_noise.cpp +++ b/sensing/autoware_radar_tracks_noise_filter/test/radar_tracks_noise_filter/test_radar_tracks_noise_filter_is_noise.cpp @@ -18,6 +18,8 @@ #include +#include + std::shared_ptr get_node( float velocity_y_threshold) { diff --git a/sensing/vehicle_velocity_converter/src/vehicle_velocity_converter.cpp b/sensing/vehicle_velocity_converter/src/vehicle_velocity_converter.cpp index c382f0f16f6e5..ab9787fb6020d 100644 --- a/sensing/vehicle_velocity_converter/src/vehicle_velocity_converter.cpp +++ b/sensing/vehicle_velocity_converter/src/vehicle_velocity_converter.cpp @@ -14,6 +14,8 @@ #include "vehicle_velocity_converter/vehicle_velocity_converter.hpp" +#include + VehicleVelocityConverter::VehicleVelocityConverter(const rclcpp::NodeOptions & options) : rclcpp::Node("vehicle_velocity_converter", options) {