How to implement a custom teleop node?
Hi everyone. I have a Raspberry Pi running ROS2 Foxy connected via usb to an Arduino Uno.
The first sends custom commands ("packets" created by me) to the other through serial (/dev/ttyACM0) in order to move a robot for 1 second every time a command is received.
Since I stay connected via SSH to the RPi, I would like to implement a node that allows me to move the robot as long as I keep certain keys pressed on my keyboard.
How can I do that? Is there a way to reuse my custom commands mechanism, or do I have to come up with something else?