From 9660600d13c42edfc41bc112eb07ff9d71ef8752 Mon Sep 17 00:00:00 2001 From: pawanw17 Date: Tue, 18 Jul 2023 21:27:17 +0530 Subject: [PATCH] removal of set_environment --- manager/manager/launcher/launcher_ros2_api.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/manager/manager/launcher/launcher_ros2_api.py b/manager/manager/launcher/launcher_ros2_api.py index e4bb0cc..2d6b8bb 100644 --- a/manager/manager/launcher/launcher_ros2_api.py +++ b/manager/manager/launcher/launcher_ros2_api.py @@ -27,7 +27,6 @@ def run(self,callback): logging.getLogger("roslaunch").setLevel(logging.CRITICAL) # expand variables in configuration paths - self._set_environment() launch_file = os.path.expandvars(self.launch_file) if (ACCELERATION_ENABLED): @@ -56,12 +55,3 @@ def terminate(self): subprocess.call(cmd, shell=True, stdout=subprocess.PIPE, bufsize=1024, universal_newlines=True) cmd = kill_cmd + 'spawn_model.launch.py' subprocess.call(cmd, shell=True, stdout=subprocess.PIPE, bufsize=1024, universal_newlines=True) - - def _set_environment(self): - resource_folders = [os.path.expandvars(path) for path in self.resource_folders] - model_folders = [os.path.expandvars(path) for path in self.model_folders] - plugin_folders = [os.path.expandvars(path) for path in self.plugin_folders] - - os.environ["GAZEBO_RESOURCE_PATH"] = f"{os.environ.get('GAZEBO_RESOURCE_PATH', '')}:{':'.join(resource_folders)}" - os.environ["GAZEBO_MODEL_PATH"] = f"{os.environ.get('GAZEBO_MODEL_PATH', '')}:{':'.join(model_folders)}" - os.environ["GAZEBO_PLUGIN_PATH"] = f"{os.environ.get('GAZEBO_PLUGIN_PATH', '')}:{':'.join(plugin_folders)}" \ No newline at end of file