Skip to content

Commit

Permalink
manual pre-commit
Browse files Browse the repository at this point in the history
Signed-off-by: xtk8532704 <1041084556@qq.com>
  • Loading branch information
xtk8532704 committed Nov 12, 2024
1 parent abe6477 commit f532918
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
#include "tf2_ros/transform_broadcaster.h"

#include <autoware/control_evaluator/control_evaluator_node.hpp>
#include <tier4_metric_msgs/msg/metric_array.hpp>

#include "autoware_planning_msgs/msg/trajectory.hpp"
#include "geometry_msgs/msg/transform_stamped.hpp"
#include <tier4_metric_msgs/msg/metric_array.hpp>

#include "boost/lexical_cast.hpp"

Expand Down Expand Up @@ -81,7 +82,8 @@ class EvalTest : public ::testing::Test
};
metric_sub_ = rclcpp::create_subscription<MetricArrayMsg>(
dummy_node, "/control_evaluator/metrics", 1, [=](const MetricArrayMsg::ConstSharedPtr msg) {
const auto it = std::find_if(msg->metric_array.begin(), msg->metric_array.end(), is_target_metric);
const auto it =
std::find_if(msg->metric_array.begin(), msg->metric_array.end(), is_target_metric);
if (it != msg->metric_array.end()) {
metric_value_ = boost::lexical_cast<double>(it->value);
metric_updated_ = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
#include "tf2_ros/transform_broadcaster.h"

#include <autoware/planning_evaluator/planning_evaluator_node.hpp>
#include <tier4_metric_msgs/msg/metric_array.hpp>

#include "autoware_perception_msgs/msg/predicted_objects.hpp"
#include "autoware_planning_msgs/msg/trajectory.hpp"
#include "geometry_msgs/msg/transform_stamped.hpp"
#include <tier4_metric_msgs/msg/metric_array.hpp>

#include "boost/lexical_cast.hpp"

Expand Down Expand Up @@ -94,7 +94,8 @@ class EvalTest : public ::testing::Test
};
metric_sub_ = rclcpp::create_subscription<MetricArrayMsg>(
dummy_node, "/planning_evaluator/metrics", 1, [=](const MetricArrayMsg::ConstSharedPtr msg) {
const auto it = std::find_if(msg->metric_array.begin(), msg->metric_array.end(), is_target_metric);
const auto it =
std::find_if(msg->metric_array.begin(), msg->metric_array.end(), is_target_metric);
if (it != msg->metric_array.end()) {
metric_value_ = boost::lexical_cast<double>(it->value);
metric_updated_ = true;
Expand Down

0 comments on commit f532918

Please sign in to comment.