A ROS2 stack for the Crazyflie Nanoquadcopter.
This software stack was designed and testet with ROS2Lyrical on Ubuntu 26.04.
The documentation can be found here: https://dynamicswarms.github.io/ds-crazyflies/
Warning
This software is currently under development. Breaking changes will happen.
The crazyflies package allows the user to interchangeably use real hardware or a simulation. There are two implementations. You can either use a Crazyflie or a Safeflie. The Safeflie is a tuned down version of the crazyflie providing a topic "/cf_ID_/send_target" which allows to control the crazyflie without knowledge about the controller of the real hardware.
The framework.launch.py can be configured to use appropriate tracking hardware if real crazyflies are used. When launching this launch file the backend argument should be provided specifying if the simulation backend or the hardware backend shall be used.
Afterwards you can either implement your own node and either use or inherit from the Crazyflie or Safeflie class.
There are currently 2 backends which are integrated into this software stack. Crazyflie Hardware Crazyflie Simulation
With the hardware backend it is also possible to use a SITL crazyflie. Checkout this repository for more information. (The crazyflie sitl can even be used with the official crazyflie-client-python)
We use vcs for subrepository management. However there is a convenience script, for choosing different implemententations to be installed.
The get started quickly:
git clone https://github.com/DynamicSwarms/ds-crazyflies.git
cd ds-crazyflies
./setup.sh simulation
source /opt/ros/lyrical/setup.bash
colcon build