diff --git a/robomaster_pi/launch_node.py b/robomaster_pi/launch_node.py index 6f28c03f1492b758ded1ecdd179fd8199db6d2a0..2c156455e9650f74861eea8db647dc854d188b49 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":