Skip to content

Commit

Permalink
fix(behavior_velocity): fix insertVelocity (#1768)
Browse files Browse the repository at this point in the history
Signed-off-by: tanaka3 <ttatcoder@outlook.jp>

Signed-off-by: tanaka3 <ttatcoder@outlook.jp>
  • Loading branch information
taikitanaka3 authored Sep 2, 2022
1 parent a470a73 commit 269b3bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ void insertVelocity(
std::min(static_cast<int>(insert_index + 1), static_cast<int>(path.points.size() - 1));
for (int i = min_idx; i <= max_idx; i++) {
if (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 269b3bd

Please sign in to comment.