feature/multiple-compose #10
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue