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

a

parent df345bdd
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,9 @@ class CommandExecutor(Node):
def execute_command_callback(self, msg):
command = msg.data.split() # Split the received string into command and name
if len(command) >= 2:
if command[0] == "kill":
kill_node(command[1])
else len(command) >= 2:
name = command[0]
launch_command = " ".join(command[1:])
# Execute the launch command in a separate thread
......
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