Skip to content

Commit

Permalink
fix(behavior_velocity): fix insertVelocity (autowarefoundation#1768) (#…
Browse files Browse the repository at this point in the history
…102)

fix(behavior_velocity): fix insertVelocity (#1768)

Signed-off-by: tanaka3 <ttatcoder@outlook.jp>

Signed-off-by: tanaka3 <ttatcoder@outlook.jp>

Signed-off-by: tanaka3 <ttatcoder@outlook.jp>
  • Loading branch information
taikitanaka3 authored Sep 2, 2022
1 parent 69e7d73 commit 6c73362
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ void insertVelocity(
if (
tier4_autoware_utils::calcDistance2d(path.points.at(static_cast<size_t>(i)), path_point) <
min_distance) {
path.points.at(i).point.longitudinal_velocity_mps = 0;
path.points.at(i).point.longitudinal_velocity_mps = v;
already_has_path_point = true;
insert_index = static_cast<size_t>(i);
// set velocity from is going to insert min velocity later
Expand Down

0 comments on commit 6c73362

Please sign in to comment.