Also show model topics in rot_topics tab
Build Docs / build (push) Failing after 45s Details

This commit is contained in:
Alex Davies 2024-11-14 13:57:35 -04:00
parent 5bebe95492
commit d5c0b68ceb
1 changed files with 2 additions and 1 deletions

View File

@ -89,6 +89,7 @@ class Robot:
robots.add(self)
#Ros doesn't like dashes in node names
self.robot_name = f"{self.robot_type}_{self.sysid}".replace("-","_")
self.world_name = "citadel_hill"
async def ui_containers(self, element):
docker_elements = {}
@ -137,7 +138,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}/"):
if topic[0].startswith(f"/{self.robot_name}/") or topic[0].startswith(f"/world/{self.world_name}/model/{self.robot_name}/"):
ui.label(topic[0])
await asyncio.sleep(10)