Skip to content

Commit

Permalink
feat(motion_utils): use setLongitudinalVelocity in insertStopPoint fo…
Browse files Browse the repository at this point in the history
…r PathPointWithLaneId (autowarefoundation#2206)

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: yoshiri <yoshiyoshidetteiu@gmail.com>
  • Loading branch information
kosuke55 authored and YoshiRi committed Jan 11, 2023
1 parent 5c42de1 commit 8ac99a7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ inline boost::optional<size_t> insertStopPoint(
}

for (size_t i = *stop_idx; i < points_with_twist.size(); ++i) {
points_with_twist.at(i).longitudinal_velocity_mps = 0.0;
tier4_autoware_utils::setLongitudinalVelocity(0.0, points_with_twist.at(i));
}

return stop_idx;
Expand Down Expand Up @@ -1099,7 +1099,7 @@ inline boost::optional<size_t> insertStopPoint(
}

for (size_t i = *stop_idx; i < points_with_twist.size(); ++i) {
points_with_twist.at(i).longitudinal_velocity_mps = 0.0;
tier4_autoware_utils::setLongitudinalVelocity(0.0, points_with_twist.at(i));
}

return stop_idx;
Expand Down

0 comments on commit 8ac99a7

Please sign in to comment.