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 <gsakayori@gmail.com>
  • Loading branch information
go-sakayori authored and kyoichi-sugahara committed Aug 27, 2024
1 parent 123f1fd commit bbbcc82
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 bbbcc82

Please sign in to comment.