From 59740155aa7c396dd078afb0184745b28291ef75 Mon Sep 17 00:00:00 2001 From: Mamoru Sobue Date: Thu, 20 Jun 2024 14:40:39 +0900 Subject: [PATCH] refactor(obstacle_cruise_planner): apply clang-tidy check (#7553) obstacle_cruise Signed-off-by: Mamoru Sobue --- .../src/planner_interface.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/planning/autoware_obstacle_cruise_planner/src/planner_interface.cpp b/planning/autoware_obstacle_cruise_planner/src/planner_interface.cpp index 343cb720fb802..18e0fc7f5bb03 100644 --- a/planning/autoware_obstacle_cruise_planner/src/planner_interface.cpp +++ b/planning/autoware_obstacle_cruise_planner/src/planner_interface.cpp @@ -598,8 +598,9 @@ std::vector PlannerInterface::generateSlowDownTrajectory( obstacle.uuid.c_str()); continue; } - const auto [dist_to_slow_down_start, dist_to_slow_down_end, feasible_slow_down_vel] = - *dist_vec_to_slow_down; + const auto dist_to_slow_down_start = std::get<0>(*dist_vec_to_slow_down); + const auto dist_to_slow_down_end = std::get<1>(*dist_vec_to_slow_down); + const auto feasible_slow_down_vel = std::get<2>(*dist_vec_to_slow_down); // calculate slow down end distance, and insert slow down velocity // NOTE: slow_down_start_idx will not be wrong since inserted back point is after inserted