Skip to content
Snippets Groups Projects
Commit 62f5001a authored by Emil Harlan's avatar Emil Harlan
Browse files

a

parent 91c25ec6
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ class CommandExecutor(Node):
def execute_command(self, name, launch_command):
try:
process_handle = subprocess.Popen(["ros2", "launch", launch_command], text=True)
process_handle = subprocess.Popen(launch_command, text=True)
self.running_processes[name] = process_handle
process_handle.wait() # Wait for the process to finish
if name in self.running_processes:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment