From 2b43b636ba061f0f66c078c27f035d11340df5bb Mon Sep 17 00:00:00 2001 From: Emil Harlan <eharlan@uni-bremen.de> Date: Mon, 24 Jul 2023 09:24:06 +0200 Subject: [PATCH] a --- robomaster_pi/launch_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robomaster_pi/launch_node.py b/robomaster_pi/launch_node.py index 6f28c03..2c15645 100644 --- a/robomaster_pi/launch_node.py +++ b/robomaster_pi/launch_node.py @@ -22,8 +22,8 @@ class LaunchNode(Node): def on_message(self, msg): # Get the launch command and name from the message - name = msg.name - command = msg.command + data = msg.data + name, command = data.split(" ", 1) # If the launch command is "kill", send a SIGINT signal to the process with the given name if command == "kill": -- GitLab