From 818b8f41a0ecea23ed9be04b53552cea8d47650a Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Thu, 26 Dec 2024 04:19:11 +0000
Subject: [PATCH] style(pre-commit): autofix
---
common/autoware_goal_distance_calculator/Readme.md | 4 ++--
common/autoware_path_distance_calculator/Readme.md | 4 ++--
common/autoware_universe_utils/package.xml | 2 +-
control/autoware_autonomous_emergency_braking/src/node.cpp | 3 ++-
.../autoware/control_validator/control_validator.hpp | 5 +++--
.../lane_departure_checker_node.cpp | 6 ++++--
.../include/autoware/mpc_lateral_controller/mpc.hpp | 4 ++--
control/autoware_mpc_lateral_controller/package.xml | 2 +-
8 files changed, 17 insertions(+), 13 deletions(-)
diff --git a/common/autoware_goal_distance_calculator/Readme.md b/common/autoware_goal_distance_calculator/Readme.md
index 130f0038820da..77a71bb23c2bc 100644
--- a/common/autoware_goal_distance_calculator/Readme.md
+++ b/common/autoware_goal_distance_calculator/Readme.md
@@ -17,8 +17,8 @@ This node publishes deviation of self-pose from goal pose.
### Output
-| Name | Type | Description |
-| ------------------------ | --------------------------------------- | ------------------------------------------------------------- |
+| Name | Type | Description |
+| ------------------------ | --------------------------------------------------- | ------------------------------------------------------------- |
| `deviation/lateral` | `autoware_internal_debug_msgs::msg::Float64Stamped` | publish lateral deviation of self-pose from goal pose[m] |
| `deviation/longitudinal` | `autoware_internal_debug_msgs::msg::Float64Stamped` | publish longitudinal deviation of self-pose from goal pose[m] |
| `deviation/yaw` | `autoware_internal_debug_msgs::msg::Float64Stamped` | publish yaw deviation of self-pose from goal pose[rad] |
diff --git a/common/autoware_path_distance_calculator/Readme.md b/common/autoware_path_distance_calculator/Readme.md
index 9263938b0498f..917ba0ff2a50a 100644
--- a/common/autoware_path_distance_calculator/Readme.md
+++ b/common/autoware_path_distance_calculator/Readme.md
@@ -18,8 +18,8 @@ Note that the distance means the arc-length along the path, not the Euclidean di
### Output
-| Name | Type | Description |
-| ------------ | --------------------------------------- | ----------------------------------------------------------------------------------------------------- |
+| Name | Type | Description |
+| ------------ | --------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| `~/distance` | `autoware_internal_debug_msgs::msg::Float64Stamped` | Publish a distance from the closest path point from the self-position to the end point of the path[m] |
## Parameters
diff --git a/common/autoware_universe_utils/package.xml b/common/autoware_universe_utils/package.xml
index 719009b4aefdc..723ec6e129ed4 100644
--- a/common/autoware_universe_utils/package.xml
+++ b/common/autoware_universe_utils/package.xml
@@ -12,6 +12,7 @@
ament_cmake_auto
autoware_cmake
+ autoware_internal_debug_msgs
autoware_internal_debug_msgs
autoware_internal_msgs
autoware_perception_msgs
@@ -27,7 +28,6 @@
tf2
tf2_eigen
tf2_geometry_msgs
- autoware_internal_debug_msgs
tier4_planning_msgs
unique_identifier_msgs
visualization_msgs
diff --git a/control/autoware_autonomous_emergency_braking/src/node.cpp b/control/autoware_autonomous_emergency_braking/src/node.cpp
index 0d2c6d78748d9..666b66eea9a21 100644
--- a/control/autoware_autonomous_emergency_braking/src/node.cpp
+++ b/control/autoware_autonomous_emergency_braking/src/node.cpp
@@ -155,7 +155,8 @@ AEB::AEB(const rclcpp::NodeOptions & node_options)
debug_marker_publisher_ = this->create_publisher("~/debug/markers", 1);
virtual_wall_publisher_ = this->create_publisher("~/virtual_wall", 1);
debug_rss_distance_publisher_ =
- this->create_publisher("~/debug/rss_distance", 1);
+ this->create_publisher(
+ "~/debug/rss_distance", 1);
metrics_pub_ = this->create_publisher("~/metrics", 1);
}
// Diagnostics
diff --git a/control/autoware_control_validator/include/autoware/control_validator/control_validator.hpp b/control/autoware_control_validator/include/autoware/control_validator/control_validator.hpp
index f78ccd65d6cb8..b828c8d07ac49 100644
--- a/control/autoware_control_validator/include/autoware/control_validator/control_validator.hpp
+++ b/control/autoware_control_validator/include/autoware/control_validator/control_validator.hpp
@@ -25,10 +25,10 @@
#include
#include
+#include
#include
#include
#include
-#include
#include
#include
@@ -139,7 +139,8 @@ class ControlValidator : public rclcpp::Node
universe_utils::InterProcessPollingSubscriber::SharedPtr sub_reference_traj_;
rclcpp::Publisher::SharedPtr pub_status_;
rclcpp::Publisher::SharedPtr pub_markers_;
- rclcpp::Publisher::SharedPtr pub_processing_time_;
+ rclcpp::Publisher::SharedPtr
+ pub_processing_time_;
// system parameters
int64_t diag_error_count_threshold_ = 0;
diff --git a/control/autoware_lane_departure_checker/src/lane_departure_checker_node/lane_departure_checker_node.cpp b/control/autoware_lane_departure_checker/src/lane_departure_checker_node/lane_departure_checker_node.cpp
index c7c21f03c12c1..d9775415d3ed3 100644
--- a/control/autoware_lane_departure_checker/src/lane_departure_checker_node/lane_departure_checker_node.cpp
+++ b/control/autoware_lane_departure_checker/src/lane_departure_checker_node/lane_departure_checker_node.cpp
@@ -171,7 +171,8 @@ LaneDepartureCheckerNode::LaneDepartureCheckerNode(const rclcpp::NodeOptions & o
// Publisher
processing_time_publisher_ =
- this->create_publisher("~/debug/processing_time_ms", 1);
+ this->create_publisher(
+ "~/debug/processing_time_ms", 1);
// Nothing
// Diagnostic Updater
@@ -344,7 +345,8 @@ void LaneDepartureCheckerNode::onTimer()
const auto & deviation = output_.trajectory_deviation;
debug_publisher_.publish(
"deviation/lateral", deviation.lateral);
- debug_publisher_.publish("deviation/yaw", deviation.yaw);
+ debug_publisher_.publish(
+ "deviation/yaw", deviation.yaw);
debug_publisher_.publish(
"deviation/yaw_deg", rad2deg(deviation.yaw));
}
diff --git a/control/autoware_mpc_lateral_controller/include/autoware/mpc_lateral_controller/mpc.hpp b/control/autoware_mpc_lateral_controller/include/autoware/mpc_lateral_controller/mpc.hpp
index 112022726eae7..166dfa1814562 100644
--- a/control/autoware_mpc_lateral_controller/include/autoware/mpc_lateral_controller/mpc.hpp
+++ b/control/autoware_mpc_lateral_controller/include/autoware/mpc_lateral_controller/mpc.hpp
@@ -24,11 +24,11 @@
#include "rclcpp/rclcpp.hpp"
#include "autoware_control_msgs/msg/lateral.hpp"
+#include "autoware_internal_debug_msgs/msg/float32_multi_array_stamped.hpp"
#include "autoware_planning_msgs/msg/trajectory.hpp"
#include "autoware_vehicle_msgs/msg/steering_report.hpp"
#include "geometry_msgs/msg/pose.hpp"
#include "nav_msgs/msg/odometry.hpp"
-#include "autoware_internal_debug_msgs/msg/float32_multi_array_stamped.hpp"
#include
#include
@@ -41,11 +41,11 @@ namespace autoware::motion::control::mpc_lateral_controller
using autoware::motion::control::trajectory_follower::LateralHorizon;
using autoware_control_msgs::msg::Lateral;
+using autoware_internal_debug_msgs::msg::Float32MultiArrayStamped;
using autoware_planning_msgs::msg::Trajectory;
using autoware_vehicle_msgs::msg::SteeringReport;
using geometry_msgs::msg::Pose;
using nav_msgs::msg::Odometry;
-using autoware_internal_debug_msgs::msg::Float32MultiArrayStamped;
using Eigen::MatrixXd;
using Eigen::VectorXd;
diff --git a/control/autoware_mpc_lateral_controller/package.xml b/control/autoware_mpc_lateral_controller/package.xml
index 648396e10fb38..719d11ef7948b 100644
--- a/control/autoware_mpc_lateral_controller/package.xml
+++ b/control/autoware_mpc_lateral_controller/package.xml
@@ -19,6 +19,7 @@
autoware_cmake
autoware_control_msgs
+ autoware_internal_debug_msgs
autoware_interpolation
autoware_motion_utils
autoware_osqp_interface
@@ -36,7 +37,6 @@
std_msgs
tf2
tf2_ros
- autoware_internal_debug_msgs
ament_cmake_ros
ament_lint_auto