Skip to content

Commit

Permalink
fix(behavior_path_planner): pull over emergency stop velocity
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 committed Dec 23, 2022
1 parent c958fdd commit a4342d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ PathWithLaneId PullOverModule::generateEmergencyStopPath()
common_parameters.ego_nearest_yaw_threshold);
const double distance_to_target = calcSignedArcLength(
stop_path.points, current_pose.position, ego_idx, p.pose.position, target_idx);
if (0.0 < distance_to_target) {
if (0.0 < distance_to_target && 0.01 < current_vel) {
p.longitudinal_velocity_mps = std::clamp(
static_cast<float>(
current_vel * (min_stop_distance - distance_to_target) / min_stop_distance),
Expand Down

0 comments on commit a4342d5

Please sign in to comment.