From 68cebb6a4f8a100051625eb016ebe7c6700c410c Mon Sep 17 00:00:00 2001 From: yabuta Date: Tue, 27 Aug 2024 19:33:37 +0900 Subject: [PATCH] fix condition (#114) --- src/signage/src/signage/route_handler.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/signage/src/signage/route_handler.py b/src/signage/src/signage/route_handler.py index 79cd4b1..8af0871 100644 --- a/src/signage/src/signage/route_handler.py +++ b/src/signage/src/signage/route_handler.py @@ -92,8 +92,11 @@ def emergency_checker_callback(self): MrmState.COMFORTABLE_STOP, MrmState.PULL_OVER, ]: - self._in_slowing_state == self._autoware.information.motion_state == MotionState.MOVING - self._in_slow_stop_state == self._autoware.information.motion_state == MotionState.STOPPED + self._in_slowing_state = self._autoware.information.motion_state == MotionState.MOVING + self._in_slow_stop_state = self._autoware.information.motion_state == MotionState.STOPPED + else: + self._in_slowing_state = False + self._in_slow_stop_state = False if in_emergency and not self._in_emergency_state: self._announce_interface.announce_emergency("emergency")