Skip to content

Commit

Permalink
Merge pull request #1525 from tier4/fix/beta/v0.29.0/lc_rtc_status
Browse files Browse the repository at this point in the history
fix(lane_change): transit rtc status to failure for some condition
  • Loading branch information
shmpwk authored Sep 9, 2024
2 parents 3967636 + 13e3e60 commit 79dc610
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,17 @@ bool LaneChangeInterface::canTransitFailureState()

if (!module_type_->isValidPath()) {
log_debug_throttled("Transit to failure state due not to find valid path");
updateRTCStatus(
std::numeric_limits<double>::lowest(), std::numeric_limits<double>::lowest(), true,
State::FAILED);
return true;
}

if (module_type_->isAbortState() && module_type_->hasFinishedAbort()) {
log_debug_throttled("Abort process has completed.");
updateRTCStatus(
std::numeric_limits<double>::lowest(), std::numeric_limits<double>::lowest(), true,
State::FAILED);
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ class SceneModuleInterface
}

if (rtc.second->isTerminated(uuid_map_.at(rtc.first))) {
return true;
return false;
}

return rtc.second->isActivated(uuid_map_.at(rtc.first));
Expand Down

0 comments on commit 79dc610

Please sign in to comment.