Control the Crazyflie with a joystick - gsilano/crazyflie_nmpc GitHub Wiki

When using the crazyflie_controller package, you have the possibility of commanding the Crazyflie using our joystick node which was developed for the Logitech GAMEPAD F310.

Hence, for teleoperation use:

$ roslaunch crazyflie_controller teleop_logitech.launch

where the uri in this launch file specifies the uri of your Crazyflie. You can find valid uris using the scan command in the crazyflie_tools package.

If you rather use a ps3 or xbox 360 joystick, you should check the launch folder of the crazyflie_demo package.

Note By default the services of take-off and landing in teleoperation mode are disable, while the emergency service is always enable in any type of mode. The button mapping for each service can be found in crazyflie_nmpc/crazyflie_demo/scripts/controller.py