Skip to content

Commit

Permalink
fix(motion_velocity_smoother): make stopping_distance and stopping_ve…
Browse files Browse the repository at this point in the history
…locity be able to work (autowarefoundation#6037) (#1341)

Signed-off-by: Berkay Karaman <[email protected]>
Co-authored-by: Berkay Karaman <[email protected]>
  • Loading branch information
h-ohta and brkay54 authored Jun 19, 2024
1 parent fed4253 commit d6f95ed
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,9 @@ void MotionVelocitySmootherNode::onCurrentTrajectory(const Trajectory::ConstShar
return;
}

// Set 0 at the end of the trajectory
input_points.back().longitudinal_velocity_mps = 0.0;

// calculate prev closest point
if (!prev_output_.empty()) {
current_closest_point_from_prev_output_ = calcProjectedTrajectoryPointFromEgo(prev_output_);
Expand Down

0 comments on commit d6f95ed

Please sign in to comment.