Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 committed Dec 27, 2024
1 parent 4673814 commit c6b78a7
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,15 @@ bool DetectionAreaModule::modifyPathVelocity(PathWithLaneId * path)
}

// Check state
last_obstacle_found_time_ = {};
if (!planner_param_.suppress_pass_judge_when_stopping || !is_stopped) {
state_ = State::GO;
const bool is_safe = detection_area::can_clear_stop_state(
last_obstacle_found_time_, clock_->now(), planner_param_.state_clear_time);
if (is_safe) {
last_obstacle_found_time_ = {};
if (!planner_param_.suppress_pass_judge_when_stopping || !is_stopped) {
state_ = State::GO;
}
return true;
}
return true;

// Force ignore objects after dead_line
if (planner_param_.use_dead_line) {
Expand Down

0 comments on commit c6b78a7

Please sign in to comment.