Skip to content

Commit

Permalink
fix(motion_velocity_planner): use the slowdown velocity (instead of 0) (
Browse files Browse the repository at this point in the history
autowarefoundation#7840)

Signed-off-by: Maxime CLEMENT <[email protected]>
  • Loading branch information
maxime-clem committed Jul 4, 2024
1 parent a28bbd2 commit 7c1c421
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ void MotionVelocityPlannerNode::insert_slowdown(
autoware::motion_utils::insertTargetPoint(to_seg_idx, slowdown_interval.to, trajectory.points);
if (from_insert_idx && to_insert_idx) {
for (auto idx = *from_insert_idx; idx <= *to_insert_idx; ++idx)
trajectory.points[idx].longitudinal_velocity_mps = 0.0;
trajectory.points[idx].longitudinal_velocity_mps = slowdown_interval.velocity;
} else {
RCLCPP_WARN(get_logger(), "Failed to insert slowdown point");
}
Expand Down

0 comments on commit 7c1c421

Please sign in to comment.