Skip to content

Commit 759b75f

Browse files
committed
fix tags
1 parent 3710025 commit 759b75f

File tree

1 file changed

+4
-3
lines changed
  • formant_ros2_adapter/scripts

1 file changed

+4
-3
lines changed

formant_ros2_adapter/scripts/main.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -913,11 +913,12 @@ def handle_ros2_message(self, msg, subscriber_config):
913913
# Write subscriber_config for this message
914914
path_subscriber_config = copy.deepcopy(subscriber_config)
915915
del path_subscriber_config["ros2_message_paths"]
916-
path_subscriber_config["is_path"] = True
917916

918917
# Pass tags to the path subscriber config
919-
if "tags" in path_config:
920-
path_subscriber_config["tags"] = path_config["tags"]
918+
if "tag_key" in path_config and "tag_value" in path_config:
919+
path_subscriber_config["tags"] = {
920+
path_config["tag_key"]: path_config["tag_value"]
921+
}
921922

922923
# Recursively call this function with the message in the path
923924
self.handle_ros2_message(path_msg, path_subscriber_config)

0 commit comments

Comments
 (0)