Skip to content

Commit

Permalink
fix delete code
Browse files Browse the repository at this point in the history
  • Loading branch information
yabuta committed Jun 26, 2024
1 parent 71824a9 commit 79a9165
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 142 deletions.
136 changes: 0 additions & 136 deletions src/signage/src/signage/external_signage.py

This file was deleted.

4 changes: 1 addition & 3 deletions src/signage/src/signage/route_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,13 @@ def __init__(
autoware_interface,
parameter_interface,
ros_service_interface,
external_signage,
):
self._node = node
self._viewController = viewController
self._announce_interface = announceController
self._autoware = autoware_interface
self._parameter = parameter_interface.parameter
self._service_interface = ros_service_interface
self._external_signage = external_signage
self.AUTOWARE_IP = os.getenv("AUTOWARE_IP", "localhost")
self._fms_payload = {
"method": "get",
Expand Down Expand Up @@ -285,7 +283,7 @@ def route_checker_callback(self):
self._trigger_external_signage = True
if not self._announce_engage and self._parameter.signage_stand_alone:
self._announce_interface.send_announce("engage")
self._external_signage.trigger()
self._service_interface.trigger_external_signage(True)
self._trigger_external_signage = True
self._announce_engage = True
elif self._autoware.information.route_state == RouteState.ARRIVED:
Expand Down
3 changes: 0 additions & 3 deletions src/signage/src/signage/signage.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from signage.parameter_interface import ParameterInterface
from signage.route_handler import RouteHandler
from signage.ros_service_interface import RosServiceInterface
from signage.external_signage import ExternalSignage
from ament_index_python.packages import get_package_share_directory


Expand All @@ -34,15 +33,13 @@ def main(args=None):
ros_service_interface = RosServiceInterface(node, parameter_interface)
viewController = ViewControllerProperty(node, parameter_interface)
announceController = AnnounceControllerProperty(node, autoware_interface, parameter_interface)
external_signage = ExternalSignage(node)
route_handler = RouteHandler(
node,
viewController,
announceController,
autoware_interface,
parameter_interface,
ros_service_interface,
external_signage,
)

ctx = engine.rootContext()
Expand Down

0 comments on commit 79a9165

Please sign in to comment.