Skip to content

Commit 7c1c421

Browse files
committed
fix(motion_velocity_planner): use the slowdown velocity (instead of 0) (autowarefoundation#7840)
Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
1 parent a28bbd2 commit 7c1c421

File tree

1 file changed

+1
-1
lines changed
  • planning/motion_velocity_planner/autoware_motion_velocity_planner_node/src

1 file changed

+1
-1
lines changed

planning/motion_velocity_planner/autoware_motion_velocity_planner_node/src/node.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ void MotionVelocityPlannerNode::insert_slowdown(
325325
autoware::motion_utils::insertTargetPoint(to_seg_idx, slowdown_interval.to, trajectory.points);
326326
if (from_insert_idx && to_insert_idx) {
327327
for (auto idx = *from_insert_idx; idx <= *to_insert_idx; ++idx)
328-
trajectory.points[idx].longitudinal_velocity_mps = 0.0;
328+
trajectory.points[idx].longitudinal_velocity_mps = slowdown_interval.velocity;
329329
} else {
330330
RCLCPP_WARN(get_logger(), "Failed to insert slowdown point");
331331
}

0 commit comments

Comments
 (0)