Skip to content

Commit

Permalink
add handling for force goal
Browse files Browse the repository at this point in the history
Signed-off-by: tkhmy <[email protected]>
  • Loading branch information
tkhmy committed Sep 11, 2024
1 parent 12c8dc0 commit 82578ba
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/signage/src/signage/route_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,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 @@ -286,7 +290,7 @@ def route_checker_callback(self):
self._is_driving = True
self._is_stopping = False
self._announced_depart = False

if (
not self._trigger_external_signage
and self._autoware.information.autoware_control
Expand All @@ -302,7 +306,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 82578ba

Please sign in to comment.