Skip to content

Commit a031dfc

Browse files
authored
Merge pull request #197 from JdeRobot/kill-all-harmonic
Kill all gazebo harmonic before launching
2 parents 4c9f178 + 992723b commit a031dfc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

manager/manager/manager.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,12 @@ def on_launch_world(self, event):
245245
The method logs the start of the launch transition and the configuration details for debugging and traceability.
246246
"""
247247

248+
try:
249+
self.terminate_harmonic_processes()
250+
LogManager.logger.info("Removing old processes")
251+
except:
252+
pass
253+
248254
cfg_dict = event.kwargs.get("data", {})
249255
world_cfg = cfg_dict['world']
250256
robot_cfg = cfg_dict['robot']

0 commit comments

Comments
 (0)