From e53b2a19b322630c1055beb0160ea17139233065 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 27 Dec 2023 20:08:05 +0000 Subject: [PATCH] style(pre-commit): autofix --- .../include/reaction_analyzer_node.hpp | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tools/reaction_analyzer/include/reaction_analyzer_node.hpp b/tools/reaction_analyzer/include/reaction_analyzer_node.hpp index f8a2eb8aa8f6a..93cd8d00d27c0 100644 --- a/tools/reaction_analyzer/include/reaction_analyzer_node.hpp +++ b/tools/reaction_analyzer/include/reaction_analyzer_node.hpp @@ -55,15 +55,15 @@ using autoware_auto_planning_msgs::msg::Trajectory; using geometry_msgs::msg::Pose; using nav_msgs::msg::Odometry; using sensor_msgs::msg::PointCloud2; -using ControlBuffer = std::pair, std::optional>; +using ControlBuffer = + std::pair, std::optional>; -using BufferVariant = std::variant< - ControlBuffer - // , std::vector // Add other message types here - >; +using BufferVariant = + std::variant // Add other message types here + >; -enum class MessageType -{ +enum class MessageType { Unknown = 0, AckermannControlCommand = 1, }; @@ -118,7 +118,8 @@ class ReactionAnalyzerNode : public rclcpp::Node private: void initObservers(const ChainModules & modules); std::vector subscribers_; - void controlCommandOutputCallback(const std::string & node_name, const AckermannControlCommand::ConstSharedPtr msg_ptr); + void controlCommandOutputCallback( + const std::string & node_name, const AckermannControlCommand::ConstSharedPtr msg_ptr); std::unordered_map messageBuffers_; @@ -164,8 +165,7 @@ class ReactionAnalyzerNode : public rclcpp::Node void onTimer(); void setControlCommandToBuffer( std::vector & buffer, const AckermannControlCommand & cmd); - std::optional findFirstBrakeIdx( - const std::vector & cmd_array); + std::optional findFirstBrakeIdx(const std::vector & cmd_array); // Callbacks void vehiclePoseCallback(const Odometry::ConstSharedPtr msg_ptr); @@ -183,8 +183,8 @@ class ReactionAnalyzerNode : public rclcpp::Node std::optional last_initialize_test_time_; // measurement for control cmd -// std::optional trajectory_follower_brake_cmd; -// std::optional vehicle_cmd_gate_brake_cmd; + // std::optional trajectory_follower_brake_cmd; + // std::optional vehicle_cmd_gate_brake_cmd; // Timer rclcpp::TimerBase::SharedPtr timer_;