Skip to content

Commit

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

Signed-off-by: Go Sakayori <gsakayori@gmail.com>
  • Loading branch information
go-sakayori authored Aug 26, 2024
1 parent f021d06 commit c80eddc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,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 c80eddc

Please sign in to comment.