Skip to content

Commit

Permalink
fix(motion_velocity_smoother): fix stop point (backport #1694) (#567)
Browse files Browse the repository at this point in the history
fix(motion_velocity_smoother): fix stop point (#1694)

Signed-off-by: tanaka3 <ttatcoder@outlook.jp>
Co-authored-by: taikitanaka3 <65527974+taikitanaka3@users.noreply.github.com>
  • Loading branch information
h-ohta and taikitanaka3 authored Jun 23, 2023
1 parent 5a1be89 commit 774bd17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ void MotionVelocitySmootherNode::overwriteStopPoint(
double optimized_stop_point_vel =
output.at(*nearest_output_point_idx).longitudinal_velocity_mps;
is_stop_velocity_exceeded = (optimized_stop_point_vel > over_stop_velocity_warn_thr_);
input_stop_vel = input.at(*nearest_output_point_idx).longitudinal_velocity_mps;
input_stop_vel = input.at(*stop_idx).longitudinal_velocity_mps;
output_stop_vel = output.at(*nearest_output_point_idx).longitudinal_velocity_mps;
trajectory_utils::applyMaximumVelocityLimit(
*nearest_output_point_idx, output.size(), 0.0, output);
Expand Down

0 comments on commit 774bd17

Please sign in to comment.