|
15 | 15 | #include "autoware/velocity_smoother/node.hpp"
|
16 | 16 |
|
17 | 17 | #include "autoware/motion_utils/marker/marker_helper.hpp"
|
18 |
| -#include "autoware_utils/ros/update_param.hpp" |
19 | 18 | #include "autoware/velocity_smoother/smoother/jerk_filtered_smoother.hpp"
|
20 | 19 | #include "autoware/velocity_smoother/smoother/l2_pseudo_jerk_smoother.hpp"
|
21 | 20 | #include "autoware/velocity_smoother/smoother/linf_pseudo_jerk_smoother.hpp"
|
| 21 | +#include "autoware_utils/ros/update_param.hpp" |
22 | 22 |
|
23 | 23 | #include <autoware_vehicle_info_utils/vehicle_info_utils.hpp>
|
24 | 24 |
|
@@ -50,10 +50,9 @@ VelocitySmootherNode::VelocitySmootherNode(const rclcpp::NodeOptions & node_opti
|
50 | 50 |
|
51 | 51 | // create time_keeper and its publisher
|
52 | 52 | // NOTE: This has to be called before setupSmoother to pass the time_keeper to the smoother.
|
53 |
| - debug_processing_time_detail_ = create_publisher<autoware_utils::ProcessingTimeDetail>( |
54 |
| - "~/debug/processing_time_detail_ms", 1); |
55 |
| - time_keeper_ = |
56 |
| - std::make_shared<autoware_utils::TimeKeeper>(debug_processing_time_detail_); |
| 53 | + debug_processing_time_detail_ = |
| 54 | + create_publisher<autoware_utils::ProcessingTimeDetail>("~/debug/processing_time_detail_ms", 1); |
| 55 | + time_keeper_ = std::make_shared<autoware_utils::TimeKeeper>(debug_processing_time_detail_); |
57 | 56 |
|
58 | 57 | // create smoother
|
59 | 58 | setupSmoother(wheelbase_);
|
@@ -99,8 +98,7 @@ VelocitySmootherNode::VelocitySmootherNode(const rclcpp::NodeOptions & node_opti
|
99 | 98 | clock_ = get_clock();
|
100 | 99 |
|
101 | 100 | logger_configure_ = std::make_unique<autoware_utils::LoggerLevelConfigure>(this);
|
102 |
| - published_time_publisher_ = |
103 |
| - std::make_unique<autoware_utils::PublishedTimePublisher>(this); |
| 101 | + published_time_publisher_ = std::make_unique<autoware_utils::PublishedTimePublisher>(this); |
104 | 102 | }
|
105 | 103 |
|
106 | 104 | void VelocitySmootherNode::setupSmoother(const double wheelbase)
|
@@ -1075,8 +1073,7 @@ double VelocitySmootherNode::calcTravelDistance() const
|
1075 | 1073 | const auto closest_point = calcProjectedTrajectoryPointFromEgo(prev_output_);
|
1076 | 1074 |
|
1077 | 1075 | if (prev_closest_point_) {
|
1078 |
| - const double travel_dist = |
1079 |
| - autoware_utils::calc_distance2d(*prev_closest_point_, closest_point); |
| 1076 | + const double travel_dist = autoware_utils::calc_distance2d(*prev_closest_point_, closest_point); |
1080 | 1077 | return travel_dist;
|
1081 | 1078 | }
|
1082 | 1079 |
|
|
0 commit comments