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

hotfix: 手動時に発進・再発進時の発話を行わないようにする #106

Merged
merged 2 commits into from
Jul 29, 2024
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
8 changes: 6 additions & 2 deletions 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 @@ -125,7 +125,8 @@

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 @@
):
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 Expand Up @@ -347,6 +348,9 @@
self._current_task_details.depart_time, self._node.get_clock().now().to_msg().sec
)

self._node.get_logger().info("_reach_final: " + str(self._reach_final))
self._node.get_logger().info("remain_minute: " + str(remain_minute))

if self._reach_final:
# display arrive to final station
self._display_phrase = utils.handle_phrase("final")
Expand Down
Loading