From 21e2d99d4a9d5a14658d311b5b336e47246e7dc9 Mon Sep 17 00:00:00 2001 From: Burak Ozter Date: Wed, 4 Dec 2024 13:20:15 -0400 Subject: [PATCH] fix world_name env variable --- guiTools/spiri_sdk_guitools/sim_drone.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guiTools/spiri_sdk_guitools/sim_drone.py b/guiTools/spiri_sdk_guitools/sim_drone.py index a3ed2b4..aa2f89d 100644 --- a/guiTools/spiri_sdk_guitools/sim_drone.py +++ b/guiTools/spiri_sdk_guitools/sim_drone.py @@ -117,7 +117,7 @@ class Spirimu(Robot): robots.add(self) #Ros doesn't like dashes in node names self.robot_name = f"{self.robot_type}_{self.sysid}".replace("-","_") - self.wold_name = os.environ.get("WORLD_NAME", "citadel_hill") + # self.wold_name = os.environ.get("WORLD_NAME", "citadel_hill") @classmethod async def launch_widget(cls, robots_widget): @@ -317,7 +317,7 @@ class Spirimu(Robot): INSTANCE=str(instance), DRONE_SYS_ID=str(self.sysid), ROBOT_NAME=self.robot_name, - WORLD_NAME="citadel_hill", + WORLD_NAME=env["WORLD_NAME"], ): self.spawn_gz_model() logger.info("Starting drone stack, this may take some time")