Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Takagi <[email protected]>
  • Loading branch information
yuki-takagi-66 committed Oct 30, 2024
1 parent 1faa0b5 commit c467da6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions planning/obstacle_cruise_planner/src/planner_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,10 @@ std::vector<TrajectoryPoint> PlannerInterface::generateStopTrajectory(
planner_data.traj_points, 0, planner_data.ego_pose.position) +
calcMinimumDistanceToStop(
planner_data.ego_vel, longitudinal_info_.limit_max_accel, preferred_acc_for_unknown_);
const double liimit_margin_stop_dist =
const double limit_margin_stop_dist =
std::max(0.0, dist_to_collide_on_ref_traj - limit_margin_for_unknown_);
if (pref_acc_stop_dist > candidate_zero_vel_dist) {
candidate_zero_vel_dist = std::min(pref_acc_stop_dist, liimit_margin_stop_dist);
candidate_zero_vel_dist = std::min(pref_acc_stop_dist, limit_margin_stop_dist);
}
}

Expand Down

0 comments on commit c467da6

Please sign in to comment.