Skip to content

Commit

Permalink
fix condition (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
yabuta authored Aug 27, 2024
1 parent 8adadfb commit 68cebb6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/signage/src/signage/route_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 68cebb6

Please sign in to comment.