We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2161605 commit ddef762Copy full SHA for ddef762
1 file changed
manager/manager/manager.py
@@ -120,6 +120,19 @@ def terminated_callback(name, code):
120
if launchers_configuration is None:
121
raise Exception("Launch configuration missing")
122
123
+ # check if launch file is sent
124
+ launch_file = configuration.get('launch_file', None)
125
+ if (launch_file is not None):
126
+ directory = "workspace/worlds/"
127
+ file_path = directory + launch_file.get('name', "world.launch")
128
+ # if folder does not exist, create it
129
+ if not os.path.exists(directory):
130
+ os.makedirs(directory)
131
+ # store the file
132
+ file = open(file_path, 'w')
133
+ file.write(launch_file.get('contents', None))
134
+ file.close()
135
+
136
LogManager.logger.info(
137
f"Launch transition started, configuration: {configuration}")
138
0 commit comments