feature/multiple-compose #10

Merged
traverseda merged 9 commits from feature/multiple-compose into master 2024-11-15 11:17:55 -04:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit d5c0b68ceb - Show all commits

View File

@ -89,6 +89,7 @@ class Robot:
robots.add(self) robots.add(self)
#Ros doesn't like dashes in node names #Ros doesn't like dashes in node names
self.robot_name = f"{self.robot_type}_{self.sysid}".replace("-","_") self.robot_name = f"{self.robot_type}_{self.sysid}".replace("-","_")
self.world_name = "citadel_hill"
async def ui_containers(self, element): async def ui_containers(self, element):
docker_elements = {} docker_elements = {}
@ -137,7 +138,7 @@ class Robot:
scroll_area.clear() scroll_area.clear()
#Filter for topics that start with self.robot_name #Filter for topics that start with self.robot_name
for topic in node_dummy.get_topic_names_and_types(): 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]) ui.label(topic[0])
await asyncio.sleep(10) await asyncio.sleep(10)