Skip to content

Commit

Permalink
fix(autoware_behavior_path_lane_change_module): fix clang-diagnostic-…
Browse files Browse the repository at this point in the history
…error (#9402)

Signed-off-by: kobayu858 <[email protected]>
  • Loading branch information
kobayu858 authored Nov 26, 2024
1 parent 2244f28 commit f9159c1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,10 @@ std::vector<double> 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;
Expand Down

0 comments on commit f9159c1

Please sign in to comment.