Skip to content

File tree

1 file changed

+2
-2
lines changed
  • planning/behavior_path_planner/autoware_behavior_path_static_obstacle_avoidance_module/src

1 file changed

+2
-2
lines changed
 

‎planning/behavior_path_planner/autoware_behavior_path_static_obstacle_avoidance_module/src/scene.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,7 @@ void StaticObstacleAvoidanceModule::insertReturnDeadLine(
16791679
const auto min_return_distance =
16801680
helper_->getMinAvoidanceDistance(shift_length) + helper_->getNominalPrepareDistance(0.0);
16811681
const auto to_stop_line = data.to_return_point - min_return_distance - buffer;
1682-
if (to_stop_line < 0.0) {
1682+
if (to_stop_line < -1.0 * parameters_->stop_buffer) {
16831683
RCLCPP_WARN(getLogger(), "ego overran return shift dead line. do nothing.");
16841684
return;
16851685
}
@@ -1752,7 +1752,7 @@ void StaticObstacleAvoidanceModule::insertWaitPoint(
17521752
return;
17531753
}
17541754

1755-
if (data.to_stop_line < 0.0) {
1755+
if (data.to_stop_line < -1.0 * parameters_->stop_buffer) {
17561756
RCLCPP_WARN(getLogger(), "ego overran avoidance dead line. do nothing.");
17571757
return;
17581758
}

0 commit comments

Comments
 (0)
Please sign in to comment.