Skip to content

Commit 9660600

Browse files
committed
removal of set_environment
1 parent 19c7a4b commit 9660600

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

manager/manager/launcher/launcher_ros2_api.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def run(self,callback):
2727
logging.getLogger("roslaunch").setLevel(logging.CRITICAL)
2828

2929
# expand variables in configuration paths
30-
self._set_environment()
3130
launch_file = os.path.expandvars(self.launch_file)
3231

3332
if (ACCELERATION_ENABLED):
@@ -56,12 +55,3 @@ def terminate(self):
5655
subprocess.call(cmd, shell=True, stdout=subprocess.PIPE, bufsize=1024, universal_newlines=True)
5756
cmd = kill_cmd + 'spawn_model.launch.py'
5857
subprocess.call(cmd, shell=True, stdout=subprocess.PIPE, bufsize=1024, universal_newlines=True)
59-
60-
def _set_environment(self):
61-
resource_folders = [os.path.expandvars(path) for path in self.resource_folders]
62-
model_folders = [os.path.expandvars(path) for path in self.model_folders]
63-
plugin_folders = [os.path.expandvars(path) for path in self.plugin_folders]
64-
65-
os.environ["GAZEBO_RESOURCE_PATH"] = f"{os.environ.get('GAZEBO_RESOURCE_PATH', '')}:{':'.join(resource_folders)}"
66-
os.environ["GAZEBO_MODEL_PATH"] = f"{os.environ.get('GAZEBO_MODEL_PATH', '')}:{':'.join(model_folders)}"
67-
os.environ["GAZEBO_PLUGIN_PATH"] = f"{os.environ.get('GAZEBO_PLUGIN_PATH', '')}:{':'.join(plugin_folders)}"

0 commit comments

Comments
 (0)