A ROS node designed to capture input from a keyboard or a PS5 gamepad and publish it to a specified ROS topic.
The keyboard node uses the pynput library.
pip install pynput
And the gamepad node uses the pygame library.
pip install pygame
The keyboard publishes to the topic "keyboard" as Int32
The gamepad publishes to the topic "controller" as an Float32MultiArray