From e670e38ba1f5f3206eef22118608ae00aa3e425a Mon Sep 17 00:00:00 2001 From: Alex Davies Date: Thu, 14 Nov 2024 13:36:46 -0400 Subject: [PATCH] Added logger catch so adding robot twice doesn't throw a real error --- guiTools/spiri_sdk_guitools/sim_drone.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guiTools/spiri_sdk_guitools/sim_drone.py b/guiTools/spiri_sdk_guitools/sim_drone.py index 6de2e5f..9c9907f 100644 --- a/guiTools/spiri_sdk_guitools/sim_drone.py +++ b/guiTools/spiri_sdk_guitools/sim_drone.py @@ -245,6 +245,7 @@ class Robot: stderr=subprocess.PIPE, ) + @logger.catch def spawn_gz_model(self): sysid = self.sysid logger.info("") @@ -280,6 +281,7 @@ class Robot: ros2_gz_create_proc.kill() return + @logger.catch def delete_gz_model(self): sysid = self.sysid env = os.environ