Skip to content

Commit e120407

Browse files
authored
Use full debug topic as dsd name (#109)
2 parents a6683df + 1e60026 commit e120407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dynamic_stack_decider_visualization/dynamic_stack_decider_visualization/dsd_visualization_plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def discover_dsd_instances(self):
146146
for topic_name, topic_types in topics:
147147
if topic_name.endswith("/dsd_tree") and "std_msgs/msg/String" in topic_types:
148148
# Extract the dsd name from the topic name
149-
dsd_name = topic_name.split("/")[-2].upper()
149+
dsd_name = "/".join(topic_name.split("/")[:-1]).upper()
150150
# Store the dsd name and the debug topic namespace (not just the tree topic)
151151
dsd_instances[dsd_name] = topic_name.replace("/dsd_tree", "")
152152

0 commit comments

Comments
 (0)