Skip to content

Commit cdeea66

Browse files
authored
fix(static_obstacle_avoidance): suppress unnecessary warning (autowarefoundation#9142) (#1606)
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
1 parent ed926b3 commit cdeea66

File tree

1 file changed

+5
-5
lines changed
  • planning/behavior_path_avoidance_module/src

1 file changed

+5
-5
lines changed

planning/behavior_path_avoidance_module/src/scene.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -1505,11 +1505,6 @@ void AvoidanceModule::insertReturnDeadLine(
15051505
{
15061506
const auto & data = avoid_data_;
15071507

1508-
if (data.new_shift_line.empty()) {
1509-
RCLCPP_WARN(getLogger(), "module doesn't have return shift line.");
1510-
return;
1511-
}
1512-
15131508
if (data.to_return_point > planner_data_->parameters.forward_path_length) {
15141509
RCLCPP_DEBUG(getLogger(), "return dead line is far enough.");
15151510
return;
@@ -1522,6 +1517,11 @@ void AvoidanceModule::insertReturnDeadLine(
15221517
return;
15231518
}
15241519

1520+
if (data.new_shift_line.empty()) {
1521+
RCLCPP_WARN(getLogger(), "module doesn't have return shift line.");
1522+
return;
1523+
}
1524+
15251525
if (!helper_->isFeasible(data.new_shift_line)) {
15261526
RCLCPP_WARN(getLogger(), "return shift line is not feasible. do nothing..");
15271527
return;

0 commit comments

Comments
 (0)