Skip to content

Commit

Permalink
fix(motion_velocity_smoother): fix stop point
Browse files Browse the repository at this point in the history
Signed-off-by: tanaka3 <ttatcoder@outlook.jp>
  • Loading branch information
taikitanaka3 committed Aug 25, 2022
1 parent 8f7f923 commit 123a555
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,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 123a555

Please sign in to comment.