From 2706c08d78c43b50fb6feda133d02a9aa37f133c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 27 Dec 2024 08:58:49 +0000 Subject: [PATCH] ci(pre-commit): autofix --- .../decoders/hesai_decoder.hpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/nebula_decoders/include/nebula_decoders/nebula_decoders_hesai/decoders/hesai_decoder.hpp b/nebula_decoders/include/nebula_decoders/nebula_decoders_hesai/decoders/hesai_decoder.hpp index a8905632..228454ca 100644 --- a/nebula_decoders/include/nebula_decoders/nebula_decoders_hesai/decoders/hesai_decoder.hpp +++ b/nebula_decoders/include/nebula_decoders/nebula_decoders_hesai/decoders/hesai_decoder.hpp @@ -18,13 +18,16 @@ #include "nebula_decoders/nebula_decoders_hesai/decoders/angle_corrector.hpp" #include "nebula_decoders/nebula_decoders_hesai/decoders/hesai_packet.hpp" #include "nebula_decoders/nebula_decoders_hesai/decoders/hesai_scan_decoder.hpp" + #include #include #include #include #include #include + #include + #include #include #include @@ -109,24 +112,20 @@ struct HesaiDecodeFilteredInfo multiple_j, }); j["total_kept_point_count"] = total_kept_point_count; - + return j; } void get_minmax_info(const NebulaPoint & point) { - cloud_azimuth_min_rad = - std::min(cloud_azimuth_min_rad, point.azimuth); - cloud_azimuth_max_rad = - std::max(cloud_azimuth_max_rad, point.azimuth); + cloud_azimuth_min_rad = std::min(cloud_azimuth_min_rad, point.azimuth); + cloud_azimuth_max_rad = std::max(cloud_azimuth_max_rad, point.azimuth); packet_timestamp_min_ns = std::min(packet_timestamp_min_ns, static_cast(point.time_stamp)); packet_timestamp_max_ns = std::max(packet_timestamp_max_ns, static_cast(point.time_stamp)); - cloud_distance_min_m = - std::min(cloud_distance_min_m, point.distance); - cloud_distance_max_m = - std::max(cloud_distance_max_m, point.distance); + cloud_distance_min_m = std::min(cloud_distance_min_m, point.distance); + cloud_distance_max_m = std::max(cloud_distance_max_m, point.distance); } }; @@ -429,7 +428,7 @@ class HesaiDecoder : public HesaiScanDecoder nlohmann::ordered_json j = decode_filtered_info_.to_json(); std::cout << "=======================" << std::endl; for (const auto & [key, value] : j.items()) { - std::cout << key << ": " << std::endl; + std::cout << key << ": " << std::endl; for (const auto & [k, v] : value.items()) { std::cout << k << ": " << v << std::endl; }