Skip to content

Commit

Permalink
fix(static_obstacle_avoidance): suppress unnecessary warning (autowar…
Browse files Browse the repository at this point in the history
…efoundation#9142)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
  • Loading branch information
satoshi-ota authored Oct 23, 2024
1 parent b76d195 commit 8cfc3b8
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1634,11 +1634,6 @@ void StaticObstacleAvoidanceModule::insertReturnDeadLine(
universe_utils::ScopedTimeTrack st(__func__, *time_keeper_);
const auto & data = avoid_data_;

if (data.new_shift_line.empty()) {
RCLCPP_WARN(getLogger(), "module doesn't have return shift line.");
return;
}

if (data.to_return_point > planner_data_->parameters.forward_path_length) {
RCLCPP_DEBUG(getLogger(), "return dead line is far enough.");
return;
Expand All @@ -1651,6 +1646,11 @@ void StaticObstacleAvoidanceModule::insertReturnDeadLine(
return;
}

if (data.new_shift_line.empty()) {
RCLCPP_WARN(getLogger(), "module doesn't have return shift line.");
return;
}

if (!helper_->isFeasible(data.new_shift_line)) {
RCLCPP_WARN(getLogger(), "return shift line is not feasible. do nothing..");
return;
Expand Down

0 comments on commit 8cfc3b8

Please sign in to comment.