Skip to content

Commit

Permalink
fix(lane_change): update rtc status for some failure condition (autow…
Browse files Browse the repository at this point in the history
…arefoundation#8604)

update rtc status for some failure condition

Signed-off-by: Go Sakayori <[email protected]>
  • Loading branch information
go-sakayori committed Sep 9, 2024
1 parent 3967636 commit b6650a5
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit b6650a5

Please sign in to comment.