Skip to content

Commit

Permalink
fix(rtc_interface): update cooperateStatus state transition (#8883)
Browse files Browse the repository at this point in the history
fix state transition for failure/success

Signed-off-by: Go Sakayori <[email protected]>
  • Loading branch information
go-sakayori authored Sep 17, 2024
1 parent eeef0f2 commit 8ea618a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions planning/autoware_rtc_interface/src/rtc_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,11 @@ void RTCInterface::updateCooperateStatus(
return;
}

if (itr->state.type == state) {
update_status(*itr);
return;
}

RCLCPP_WARN_STREAM(
getLogger(), "[updateCooperateStatus] uuid : " << uuid_to_string(uuid)
<< " cannot transit from "
Expand Down

0 comments on commit 8ea618a

Please sign in to comment.