Skip to content

Commit 5974015

Browse files
authored
refactor(obstacle_cruise_planner): apply clang-tidy check (#7553)
obstacle_cruise Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
1 parent f8d2f2d commit 5974015

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

planning/autoware_obstacle_cruise_planner/src/planner_interface.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,9 @@ std::vector<TrajectoryPoint> PlannerInterface::generateSlowDownTrajectory(
598598
obstacle.uuid.c_str());
599599
continue;
600600
}
601-
const auto [dist_to_slow_down_start, dist_to_slow_down_end, feasible_slow_down_vel] =
602-
*dist_vec_to_slow_down;
601+
const auto dist_to_slow_down_start = std::get<0>(*dist_vec_to_slow_down);
602+
const auto dist_to_slow_down_end = std::get<1>(*dist_vec_to_slow_down);
603+
const auto feasible_slow_down_vel = std::get<2>(*dist_vec_to_slow_down);
603604

604605
// calculate slow down end distance, and insert slow down velocity
605606
// NOTE: slow_down_start_idx will not be wrong since inserted back point is after inserted

0 commit comments

Comments
 (0)