Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yabuta committed Jan 26, 2024
1 parent 2e7e95f commit b06dc27
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/signage/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def package_files(directory):
("share/" + package_name, ["package.xml"]),
("share/" + package_name + "/launch", ["launch/signage.launch.xml"]),
("share/" + package_name + "/config", ["config/signage_param.yaml"]),
("share/" + package_name + "/config", ["config/announce_settings.yaml"]),
],
install_requires=["setuptools"],
zip_safe=True,
Expand Down
3 changes: 1 addition & 2 deletions src/signage/src/signage/announce_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from PyQt5.QtMultimedia import QSound
from rclpy.duration import Duration
from ament_index_python.packages import get_package_share_directory
from dataclasses import asdict

# The higher the value, the higher the priority
PRIORITY_DICT = {
Expand Down Expand Up @@ -67,7 +66,7 @@ def play_sound(self, message):
# skip announce by setting
def check_announce_or_not(self, message):
try:
return asdict(self._announce_settings).get(message, False)
return getattr(self._announce_settings, message)
except Exception as e:
self._node.get_logger().error("check announce or not: " + str(e))
return False
Expand Down

0 comments on commit b06dc27

Please sign in to comment.