From f9159c1b0d93e654b9e602f62588ad754007e354 Mon Sep 17 00:00:00 2001 From: kobayu858 <129580202+kobayu858@users.noreply.github.com> Date: Tue, 26 Nov 2024 21:00:31 +0900 Subject: [PATCH] fix(autoware_behavior_path_lane_change_module): fix clang-diagnostic-error (#9402) Signed-off-by: kobayu858 --- .../src/utils/calculation.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/utils/calculation.cpp b/planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/utils/calculation.cpp index b73e242a9a70f..9cbf9d4beb5ff 100644 --- a/planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/utils/calculation.cpp +++ b/planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/utils/calculation.cpp @@ -355,8 +355,10 @@ std::vector calc_lon_acceleration_samples( const auto goal_pose = common_data_ptr->route_handler_ptr->getGoalPose(); const auto sampling_num = common_data_ptr->lc_param_ptr->trajectory.lon_acc_sampling_num; - const auto [min_accel, max_accel] = + const auto min_max_accel = calc_min_max_acceleration(common_data_ptr, max_path_velocity, prepare_duration); + const auto & min_accel = min_max_accel.first; + const auto & max_accel = min_max_accel.second; const auto is_sampling_required = std::invoke([&]() -> bool { if (max_accel < 0.0 || transient_data.is_ego_stuck) return true;