Skip to content

Commit

Permalink
cancel announce (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
yabuta authored Jul 31, 2024
1 parent f5d8ac6 commit 36341f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/signage/src/signage/route_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ def announce_engage_when_starting(self):

if (
self._autoware.information.localization_init_state
== LocalizationInitializationState.UNINITIALIZED
== LocalizationInitializationState.UNINITIALIZED or
self._autoware.information.autoware_control == False
):
self._prev_motion_state = 0
return
Expand Down Expand Up @@ -281,7 +282,7 @@ def route_checker_callback(self):
):
self._service_interface.trigger_external_signage(True)
self._trigger_external_signage = True
if not self._announce_engage and self._parameter.signage_stand_alone:
if not self._announce_engage and self._parameter.signage_stand_alone and self._autoware.information.autoware_control:
self._announce_interface.send_announce("engage")
self._service_interface.trigger_external_signage(True)
self._trigger_external_signage = True
Expand Down

0 comments on commit 36341f0

Please sign in to comment.