Skip to content

Commit

Permalink
refactor(obstacle_cruise_planner): apply clang-tidy check (autowarefo…
Browse files Browse the repository at this point in the history
…undation#7553)

obstacle_cruise

Signed-off-by: Mamoru Sobue <[email protected]>
Signed-off-by: Simon Eisenmann <[email protected]>
  • Loading branch information
soblin authored and simon-eisenmann-driveblocks committed Jun 26, 2024
1 parent 6466bd2 commit 933ccdd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,9 @@ std::vector<TrajectoryPoint> 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
Expand Down

0 comments on commit 933ccdd

Please sign in to comment.