Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge beta/v2.2.0 update #83

Merged
merged 6 commits into from
Nov 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/signage/src/signage/route_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from datetime import datetime
import signage.signage_utils as utils
from tier4_external_api_msgs.msg import DoorStatus
from autoware_adapi_v1_msgs.msg import (

Check warning on line 11 in src/signage/src/signage/route_handler.py

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (adapi)
RouteState,
MrmState,
OperationModeState,
Expand Down Expand Up @@ -48,6 +48,7 @@
self._display_phrase = ""
self._in_emergency_state = False
self._emergency_trigger_time = self._node.get_clock().now()
self._engage_trigger_time = self._node.get_clock().now()
self._is_stopping = True
self._is_driving = False
self._previous_driving_status = False
Expand All @@ -73,6 +74,8 @@
def emergency_checker_callback(self):
if self._parameter.ignore_emergency:
in_emergency = False
if self._autoware.information.operation_mode == OperationModeState.STOP:
in_emergency = False
else:
in_emergency = self._autoware.information.mrm_behavior == MrmState.EMERGENCY_STOP

Expand Down Expand Up @@ -133,8 +136,13 @@
):
if self._announce_engage and not self._skip_announce:
self._skip_announce = True
else:
elif utils.check_timeout(
self._node.get_clock().now(),
self._engage_trigger_time,
self._parameter.accept_start,
):
self._announce_interface.send_announce("engage")
self._engage_trigger_time = self._node.get_clock().now()

if self._autoware.information.motion_state == MotionState.STARTING:
self._service_interface.accept_start()
Expand Down
Loading