fix world_name env variable
Some checks failed
Build Docs / build (push) Failing after 43s

This commit is contained in:
Burak Ozter 2024-12-04 13:20:15 -04:00
parent d4a7af18c1
commit 21e2d99d4a

View File

@ -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")