From 5d693bc9e9dd8f7661d0e5d7ee8ada9868f9b8fb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 21 Jan 2024 17:05:23 +0000 Subject: [PATCH] style(pre-commit): autofix --- tools/reaction_analyzer/include/reaction_analyzer_node.hpp | 2 +- tools/reaction_analyzer/launch/reaction_analyzer.launch.xml | 2 +- tools/reaction_analyzer/package.xml | 4 ++-- tools/reaction_analyzer/src/reaction_analyzer_node.cpp | 6 ++---- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/tools/reaction_analyzer/include/reaction_analyzer_node.hpp b/tools/reaction_analyzer/include/reaction_analyzer_node.hpp index b431baab59f70..73252b1b79cfe 100644 --- a/tools/reaction_analyzer/include/reaction_analyzer_node.hpp +++ b/tools/reaction_analyzer/include/reaction_analyzer_node.hpp @@ -17,6 +17,7 @@ #include #include +#include #include #include @@ -36,7 +37,6 @@ #include #include #include -#include #include #include diff --git a/tools/reaction_analyzer/launch/reaction_analyzer.launch.xml b/tools/reaction_analyzer/launch/reaction_analyzer.launch.xml index a9fab8f1539aa..dcac10ce409c1 100644 --- a/tools/reaction_analyzer/launch/reaction_analyzer.launch.xml +++ b/tools/reaction_analyzer/launch/reaction_analyzer.launch.xml @@ -3,7 +3,7 @@ - + diff --git a/tools/reaction_analyzer/package.xml b/tools/reaction_analyzer/package.xml index 8c7f282d3fec6..518b21b26164d 100644 --- a/tools/reaction_analyzer/package.xml +++ b/tools/reaction_analyzer/package.xml @@ -23,16 +23,16 @@ eigen libpcl-all-dev motion_utils - rosbag2_cpp pcl_conversions pcl_ros rclcpp rclcpp_components + rosbag2_cpp sensor_msgs tf2 - tf2_ros tf2_eigen tf2_geometry_msgs + tf2_ros tier4_autoware_utils ament_cmake_ros diff --git a/tools/reaction_analyzer/src/reaction_analyzer_node.cpp b/tools/reaction_analyzer/src/reaction_analyzer_node.cpp index ad659bc704f36..d5ce39c72a9b5 100644 --- a/tools/reaction_analyzer/src/reaction_analyzer_node.cpp +++ b/tools/reaction_analyzer/src/reaction_analyzer_node.cpp @@ -108,11 +108,10 @@ void ReactionAnalyzerNode::pointcloud2OutputCallback( mutex_.lock(); auto variant = message_buffers_[node_name]; const auto current_odometry_ptr = odometry_; -// const auto is_spawned = spawn_cmd_time_; + // const auto is_spawned = spawn_cmd_time_; mutex_.unlock(); if (!current_odometry_ptr) return; - if (!std::holds_alternative(variant)) { // If the variant doesn't hold a Trajectory message yet, initialize it PointCloud2Buffer buffer(std::nullopt); @@ -171,7 +170,6 @@ void ReactionAnalyzerNode::predictedObjectsOutputCallback( if (searchPredictedObjectsNearEntity(*msg_ptr)) { std::get(variant) = *msg_ptr; std::cout << "Reacted " << node_name << std::endl; - } // if (!is_spawned) return; mutex_.lock(); @@ -465,7 +463,7 @@ void ReactionAnalyzerNode::onTimer() *msg_cloud_pub = *msg_cloud_with_obj_; msg_cloud_pub->header.stamp = this->now(); pub_pointcloud_->publish(std::move(msg_cloud_pub)); - } else{ + } else { std::unique_ptr msg_cloud_pub = std::make_unique(); *msg_cloud_pub = *msg_cloud_empty_; msg_cloud_pub->header.stamp = this->now();