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")