ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
def publish_keypress(self, key_press):
    self.publish_keypress(key_press)

You call your function within itself so you end up in an infinite loop, I think you meant this instead : def publish_keypress(self, key_press): keyboard_publisher.publish(key_press)

def publish_keypress(self, key_press): self.publish_keypress(key_press)

self.publish_keypress(key_press)

You call your function within itself so you end up in an infinite loop, loop. I think you meant this instead : :

def publish_keypress(self, key_press):
        keyboard_publisher.publish(key_press)

keyboard_publisher.publish(key_press)

def publish_keypress(self, key_press): self.publish_keypress(key_press)

You call your function within itself so you end up in an infinite loop. I think you meant this instead :

def publish_keypress(self, key_press):
    keyboard_publisher.publish(key_press)

def publish_keypress(self, key_press): self.publish_keypress(key_press)

You call your function within itself so you end up in an infinite loop. I think you meant this instead :

def publish_keypress(self, key_press):
    keyboard_publisher.publish(key_press)

There is something wrong here :

def publish_keypress(self, key_press):
        self.publish_keypress(key_press)

self.publish_keypress(key_press)

You call your function within itself so you end up in an infinite loop. I think you meant this instead :

def publish_keypress(self, key_press):
    keyboard_publisher.publish(key_press)