Skip to content

Latest commit

 

History

History
26 lines (11 loc) · 964 Bytes

README.md

File metadata and controls

26 lines (11 loc) · 964 Bytes

demo-teleop

key_teleop.py is very simple ROS keyboard teleop. We also provide a teleop dedicated for controlling a drone (safe_drone_teleop.py). This teleop catches cmd_vel commands, allowing to interupt an external control with the keybord.

examples for key_teleop.py

rosrun demo_teleop key_teleop.py

rosrun demo_teleop key_teleop.py --persist

rosrun demo_teleop key_teleop.py /cmd_vel:=/some_input_cmdvel_topic

examples for safe_drone_teleop.py

rosrun demo_teleop safe_drone_teleop.py reset:=/thedrone/reset takeoff:=/thedrone/takeoff land:=/thedrone/land cmd_vel_in:=/dronecontroller/cmd_vel cmd_vel_out:=/thedrone/cmd_vel

The keyboard allows for taking off and land. When it flyes, the controller controls the drone, but only if no key has been pressed during the last second. You can read the status of the safe_drone_teleop :

rostopic echo status

The node parameters can be managed by rqt_reconfigure (i.e. dynamic reconfigure support).