Ask Your Question

Revision history [back]

You'll want to write a:

  1. keyboard publisher node that publishes key-presses as strings
    • e.g. this one: https://github.com/ros-teleop/teleop_twist_keyboard/blob/master/teleop_twist_keyboard.py
  2. a subscriber node that subscribes to the key-presses topic.

(or you could handle it all in one script, but this is a more elegant approach)

You'll want to write a:

  1. keyboard publisher node that publishes key-presses as strings
    • e.g. this one: https://github.com/ros-teleop/teleop_twist_keyboard/blob/master/teleop_twist_keyboard.py
  2. a subscriber node that subscribes to the key-presses topic.

(or you could handle it all in one script, but this is a more elegant approach)


Also, see these related answers: https://answers.ros.org/question/63491/keyboard-key-pressed/

You'll want to write a: write:

  1. a keyboard publisher node that publishes key-presses as strings
    • e.g. this one: https://github.com/ros-teleop/teleop_twist_keyboard/blob/master/teleop_twist_keyboard.py
  2. a subscriber node that subscribes to the key-presses topic.

(or you could handle it all in one script, but this is a more elegant approach)


Also, see these related answers: https://answers.ros.org/question/63491/keyboard-key-pressed/