diff --git a/robomaster_pi/command_executer.py b/robomaster_pi/command_executer.py
index 9d8bd9790e290e29841638ce4af311b75b9ee974..4b838690a871c75fc010eba3d15f116fcaf27112 100644
--- a/robomaster_pi/command_executer.py
+++ b/robomaster_pi/command_executer.py
@@ -18,14 +18,12 @@ class CommandExecutor(Node):
     def execute_command_callback(self, msg):
         command = msg.data.split()  # Split the received string into command and name
         if command[0] == "kill":
-            kill_node(command[1])
-            
+            self.kill_node(command[1])  # Call the kill_node method using 'self'
         else:
             name = command[0]
             launch_command = " ".join(command[1:])
             # Execute the launch command in a separate thread
             threading.Thread(target=self.execute_command, args=(name, launch_command)).start()
-            self.get_logger().error("Invalid command format.")
 
     def execute_command(self, name, launch_command):
         try:
@@ -60,4 +58,4 @@ def main(args=None):
     rclpy.shutdown()
 
 if __name__ == '__main__':
-    main()
+    main()
\ No newline at end of file