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
…#3327)

only zero hold velocity

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
  • Loading branch information
soblin committed Apr 10, 2023
1 parent bd9f336 commit fe488e9
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 fe488e9

Please sign in to comment.