We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d563f1d commit 2a3eaeeCopy full SHA for 2a3eaee
planning/autoware_obstacle_cruise_planner/src/planner_interface.cpp
@@ -623,9 +623,9 @@ std::vector<TrajectoryPoint> PlannerInterface::generateSlowDownTrajectory(
623
}();
624
625
// insert slow down velocity between slow start and end
626
- for (size_t i = (slow_down_start_idx ? *slow_down_start_idx : 0); i <= *slow_down_end_idx;
627
- ++i) {
628
- auto & traj_point = slow_down_traj_points.at(i);
+ for (size_t j = (slow_down_start_idx ? *slow_down_start_idx : 0); j <= *slow_down_end_idx;
+ ++j) {
+ auto & traj_point = slow_down_traj_points.at(j);
629
traj_point.longitudinal_velocity_mps =
630
std::min(traj_point.longitudinal_velocity_mps, static_cast<float>(stable_slow_down_vel));
631
}
0 commit comments