Skip to content

Commit

Permalink
Merge pull request autowarefoundation#354 from tier4/chore/cherry-pic…
Browse files Browse the repository at this point in the history
…k/fix/intersection-point-insertion

fix(behavior_velocity_planner::intersection): only zero hold velocity
  • Loading branch information
0x126 authored Apr 12, 2023
2 parents ff52326 + 8447465 commit a8f3371
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ std::optional<size_t> insertPoint(
} else {
// copy with velocity from prior point
const size_t prior_ind = closest_idx > 0 ? closest_idx - 1 : 0;
inserted_point = inout_path->points.at(prior_ind);
inserted_point.point.longitudinal_velocity_mps =
inout_path->points.at(prior_ind).point.longitudinal_velocity_mps;
}
inserted_point.point.pose = in_pose;

Expand Down

0 comments on commit a8f3371

Please sign in to comment.