Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 26, 2024
1 parent 7ac8ba4 commit 818b8f4
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 13 deletions.
4 changes: 2 additions & 2 deletions common/autoware_goal_distance_calculator/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] |
Expand Down
4 changes: 2 additions & 2 deletions common/autoware_path_distance_calculator/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion common/autoware_universe_utils/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<buildtool_depend>ament_cmake_auto</buildtool_depend>
<buildtool_depend>autoware_cmake</buildtool_depend>

<depend>autoware_internal_debug_msgs</depend>
<depend>autoware_internal_debug_msgs</depend>
<depend>autoware_internal_msgs</depend>
<depend>autoware_perception_msgs</depend>
Expand All @@ -27,7 +28,6 @@
<depend>tf2</depend>
<depend>tf2_eigen</depend>
<depend>tf2_geometry_msgs</depend>
<depend>autoware_internal_debug_msgs</depend>
<depend>tier4_planning_msgs</depend>
<depend>unique_identifier_msgs</depend>
<depend>visualization_msgs</depend>
Expand Down
3 changes: 2 additions & 1 deletion control/autoware_autonomous_emergency_braking/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ AEB::AEB(const rclcpp::NodeOptions & node_options)
debug_marker_publisher_ = this->create_publisher<MarkerArray>("~/debug/markers", 1);
virtual_wall_publisher_ = this->create_publisher<MarkerArray>("~/virtual_wall", 1);
debug_rss_distance_publisher_ =
this->create_publisher<autoware_internal_debug_msgs::msg::Float32Stamped>("~/debug/rss_distance", 1);
this->create_publisher<autoware_internal_debug_msgs::msg::Float32Stamped>(
"~/debug/rss_distance", 1);
metrics_pub_ = this->create_publisher<MetricArray>("~/metrics", 1);
}
// Diagnostics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
#include <autoware_control_validator/msg/control_validator_status.hpp>
#include <rclcpp/rclcpp.hpp>

#include <autoware_internal_debug_msgs/msg/float64_stamped.hpp>
#include <autoware_planning_msgs/msg/trajectory.hpp>
#include <diagnostic_msgs/msg/diagnostic_array.hpp>
#include <nav_msgs/msg/odometry.hpp>
#include <autoware_internal_debug_msgs/msg/float64_stamped.hpp>

#include <cstdint>
#include <memory>
Expand Down Expand Up @@ -139,7 +139,8 @@ class ControlValidator : public rclcpp::Node
universe_utils::InterProcessPollingSubscriber<Trajectory>::SharedPtr sub_reference_traj_;
rclcpp::Publisher<ControlValidatorStatus>::SharedPtr pub_status_;
rclcpp::Publisher<visualization_msgs::msg::MarkerArray>::SharedPtr pub_markers_;
rclcpp::Publisher<autoware_internal_debug_msgs::msg::Float64Stamped>::SharedPtr pub_processing_time_;
rclcpp::Publisher<autoware_internal_debug_msgs::msg::Float64Stamped>::SharedPtr
pub_processing_time_;

// system parameters
int64_t diag_error_count_threshold_ = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ LaneDepartureCheckerNode::LaneDepartureCheckerNode(const rclcpp::NodeOptions & o

// Publisher
processing_time_publisher_ =
this->create_publisher<autoware_internal_debug_msgs::msg::Float64Stamped>("~/debug/processing_time_ms", 1);
this->create_publisher<autoware_internal_debug_msgs::msg::Float64Stamped>(
"~/debug/processing_time_ms", 1);
// Nothing

// Diagnostic Updater
Expand Down Expand Up @@ -344,7 +345,8 @@ void LaneDepartureCheckerNode::onTimer()
const auto & deviation = output_.trajectory_deviation;
debug_publisher_.publish<autoware_internal_debug_msgs::msg::Float64Stamped>(
"deviation/lateral", deviation.lateral);
debug_publisher_.publish<autoware_internal_debug_msgs::msg::Float64Stamped>("deviation/yaw", deviation.yaw);
debug_publisher_.publish<autoware_internal_debug_msgs::msg::Float64Stamped>(
"deviation/yaw", deviation.yaw);
debug_publisher_.publish<autoware_internal_debug_msgs::msg::Float64Stamped>(
"deviation/yaw_deg", rad2deg(deviation.yaw));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <deque>
#include <memory>
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion control/autoware_mpc_lateral_controller/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<buildtool_depend>autoware_cmake</buildtool_depend>

<depend>autoware_control_msgs</depend>
<depend>autoware_internal_debug_msgs</depend>
<depend>autoware_interpolation</depend>
<depend>autoware_motion_utils</depend>
<depend>autoware_osqp_interface</depend>
Expand All @@ -36,7 +37,6 @@
<depend>std_msgs</depend>
<depend>tf2</depend>
<depend>tf2_ros</depend>
<depend>autoware_internal_debug_msgs</depend>

<test_depend>ament_cmake_ros</test_depend>
<test_depend>ament_lint_auto</test_depend>
Expand Down

0 comments on commit 818b8f4

Please sign in to comment.