Skip to content

Commit

Permalink
fix(behavior_velocity_planner::intersection): only zero hold velocity (
Browse files Browse the repository at this point in the history
…autowarefoundation#3327)

only zero hold velocity

Signed-off-by: Mamoru Sobue <[email protected]>
  • Loading branch information
soblin authored and 0x126 committed Apr 12, 2023
1 parent ff52326 commit 8447465
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 8447465

Please sign in to comment.