Simplifies drone control for camera calibration purposes as example.
Once teleop command is run the tab can be switched to a different one, as thankfully for pynput all keyboard events are listening in background mode and command terminal is not required to be active.
It is suitable for camera calibration purpose, because we can focus on RVIZ Images and not on linux terminal.
Use Arrows to control linear velocities:
↑ / ↓ : X axis : Move Forward & Backward by X-Axis
← / → : Z axis : Rotate/YAW Left & Right by Z-Axis
a / d : Y axis : Move Left & Right
w / s : X axis : Move Forward & Backward by X-Axis (Duplicated)
+ / - : Z axis : Move UP & DOWN
esc: QUIT,
other key: STOP movement
# publish twist messages into the default MavRos topic: /cmd_vel
ros2 run simple_teleop teleop
# OR
ros2 run simple_teleop teleop --ros-args -p topic:=/drone0/cmd_vel
topic = /cmd_vel,
step = 0.2,
publish_rate = 10