Skip to content

Commit

Permalink
add handling for force goal (#120)
Browse files Browse the repository at this point in the history
Signed-off-by: tkhmy <[email protected]>
  • Loading branch information
tkhmy authored Sep 11, 2024
1 parent 1dc4f13 commit 76c2cd5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/signage/src/signage/route_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,12 @@ 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
Expand Down Expand Up @@ -301,7 +305,7 @@ def route_checker_callback(self):
self._service_interface.trigger_external_signage(True)
self._trigger_external_signage = True
self._announce_engage = True
elif self._autoware.information.route_state == RouteState.ARRIVED:
elif self._autoware.information.route_state in [RouteState.ARRIVED, RouteState.UNSET]:
# Check whether the vehicle arrive to goal
self._is_driving = False
self._is_stopping = True
Expand Down

0 comments on commit 76c2cd5

Please sign in to comment.