Simplified ros topic filter
Build Docs / build (push) Failing after 44s Details

This commit is contained in:
Alex Davies 2024-11-15 12:59:31 -04:00
parent f035a09321
commit af170070ab
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ class Robot:
scroll_area.clear()
#Filter for topics that start with self.robot_name
for topic in node_dummy.get_topic_names_and_types():
if topic[0].startswith(f"/{self.robot_name}/") or topic[0].startswith(f"/world/{self.world_name}/model/{self.robot_name}/"):
if self.robot_name in topic[0]:
ui.label(topic[0])
await asyncio.sleep(10)