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

a

parent 0cca11ef
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ class CommandExecutor(Node):
name, command = msg.data.split(" ", 1) # Split the received string into command and name
self.get_logger().info(f"name: '{name}' command: '{command}'.")
if command == "kill":
self.kill_node(command) # Call the kill_node method using 'self'
self.kill_node(name) # Call the kill_node method using 'self'
else:
# Execute the launch command in a separate thread
threading.Thread(target=self.execute_command, args=(name, command)).start()
......
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