Software
EGO-Planner (swarm)
By ZJU FAST Lab, China (checked on github.com/ZJU-FAST-Lab (opens in a new tab)), from github.com/ZJU-FAST-Lab/ego-planner-swarm (opens in a new tab)
- Drones and boats
- Library
- GPL-3.0-only
A decentralized, asynchronous planner that lets a swarm of quadrotors navigate unknown, obstacle-rich scenes using only onboard resources.
- Stale. No commit in 12 months: the newest is from 8 Mar 2025.
Facts
- GitHub stars
- 2,269read on 28 Nov 2026
- Last update
- 8 Mar 2025Newest commit on master
- Maintenance
- Staleno commit in 12 months
- Difficulty
- Advanced
- Hardware it needs, as the project states it
- Ubuntu 16.04, 18.04 or 20.04 with ros-desktop-full installed; an Nvidia GPU with CUDA is optional for rendering depth images; the author notes the simulation of 15 drones was the upper limit on an i7 9700KF CPU.
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- GPL-3.0-only (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (GPL-3.0-only) at commit 92fe9f7 (opens in a new tab), on 16 Oct 2026.
- Commercial use
- Yes
Copyleft: Modified source must be published.
At a glance
- What it is
- Extends the EGO-Planner work from single drones to multi-drone swarm navigation.
- Runs fully autonomously and decentralized, with each drone planning on its own onboard information.
- Includes a simulator with simulated sensors that can produce depth images or point clouds.
- Can use a simplified fake-drone model by default, or a more realistic quadrotor dynamics model when enabled.
- Provides a ROS1 version; a ROS2 version is maintained on a separate branch.
- Targets the ROS desktop setup on Ubuntu 16.04, 18.04 and 20.04.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- GPL-3.0-only. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Stale, last commit on 8 Mar 2025.
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/ZJU-FAST-Lab/ego-planner-swarm (opens in a new tab)
- The version Robotheca read92fe9f7 (opens in a new tab)
- Latest releaseNone published on GitHub
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by ZJU FAST Lab, at commit 92fe9f7, under GPL-3.0-only (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
Update: ROS2 Support
For the ROS2 version, please refer to the branch ros2_version (opens in a new tab).
Quick Start within 3 Minutes
Compiling tests passed on ubuntu 16.04, 18.04, and 20.04 with ros installed. You can just execute the following commands one by one.
sudo apt-get install libarmadillo-dev
git clone https://github.com/ZJU-FAST-Lab/ego-planner-swarm.git
cd ego-planner-swarm
catkin_make -j1
source devel/setup.bash
roslaunch ego_planner simple_run.launch
If you find this work useful or interesting, please kindly give us a star :star:, thanks!:grinning:
Acknowledgements
- This work extends EGO-Planner (opens in a new tab) to swarm navigation.
EGO-Swarm
EGO-Swarm: A Fully Autonomous and Decentralized Quadrotor Swarm System in Cluttered Environments
EGO-Swarm is a decentralized and asynchronous systematic solution for multi-robot autonomous navigation in unknown obstacle-rich scenes using merely onboard resources.

Video Links: YouTube (opens in a new tab), bilibili (opens in a new tab) (for Mainland China)
1. Related Paper
EGO-Swarm: A Fully Autonomous and Decentralized Quadrotor Swarm System in Cluttered Environments, Xin Zhou, Jiangchao Zhu, Hongyu Zhou, Chao Xu, and Fei Gao (Published in ICRA2021). Paper link (opens in a new tab) and Science (opens in a new tab) report.
2. Standard Compilation
Requirements: ubuntu 16.04, 18.04 or 20.04 with ros-desktop-full installation.
Step 1. Install Armadillo (opens in a new tab), which is required by uav_simulator.
sudo apt-get install libarmadillo-dev
Step 2. Clone the code from github or gitee. These two repositories synchronize automatically.
From github,
git clone https://github.com/ZJU-FAST-Lab/ego-planner-swarm.git
Step 3. Compile,
cd ego-planner
catkin_make -DCMAKE_BUILD_TYPE=Release -j1
Step 4. Run.
In a terminal at the ego-planner-swarm/ folder, open the rviz for visualization and interactions
source devel/setup.bash
roslaunch ego_planner rviz.launch
In another terminal at the ego-planner-swarm/, run the planner in simulation by
source devel/setup.bash
roslaunch ego_planner swarm.launch
Then you can follow the gif below to control the drone.

3. Using an IDE
We recommend using vscode (opens in a new tab), the project file has been included in the code you have cloned, which is the .vscode folder. This folder is hidden by default. Follow the steps below to configure the IDE for auto code completion & jump. It will take 3 minutes.
Step 1. Install C++ and CMake extentions in vscode.
Step 2. Re-compile the code using the command
catkin_make -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=Yes
It will export a compile commands file, which can help vscode to determine the code architecture.
Step 3. Launch vscode and select the ego-planner folder to open.
code ~/<......>/ego-planner-swarm/
Press Ctrl+Shift+B in vscode to compile the code. This command is defined in .vscode/tasks.json. You can add customized arguments after "args". The default is "-DCMAKE_BUILD_TYPE=Release".
Step 4. Close and re-launch vscode, you will see the vscode has already understood the code architecture and can perform auto completion & jump.
4. Use GPU or Not
Packages in this repo, local_sensing have GPU, CPU two different versions. By default, they are in CPU version for better compatibility. By changing
set(ENABLE_CUDA false)
in the CMakeList.txt in local_sensing packages, to
set(ENABLE_CUDA true)
CUDA will be turned-on to generate depth images as a real depth camera does.
Please remember to also change the 'arch' and 'code' flags in the line of
set(CUDA_NVCC_FLAGS
-gencode arch=compute_61,code=sm_61;
)
in CMakeList.txt. If you encounter compiling error due to different Nvidia graphics card you use or you can not see proper depth images as expected, you can check the right code via link1 (opens in a new tab) or link2 (opens in a new tab).
Don't forget to re-compile the code!
local_sensing is the simulated sensors. If ENABLE_CUDA true, it mimics the depth measured by stereo cameras and renders a depth image by GPU. If ENABLE_CUDA false, it will publish pointclouds with no ray-casting. Our local mapping module automatically selects whether depth images or pointclouds as its input.
For installation of CUDA, please go to CUDA ToolKit (opens in a new tab)
5. Use Drone Simulation Considering Dynamics or Not
Typical simulations use a dynamic model to calculate the motion of the drone under given commands. However, it requires continuous iterations to solve a differential equation, which consumes quite a lot computation. When launching a swarm of drones, this computation burden may cause significant lag. On an i7 9700KF CPU I use, 15 drones are the upper limit. Therefore, for compatibility and scalability purposes, I use a "fake_drone (opens in a new tab)" package to convert commands to drone odometry directly by default.
If you want to use a more realistic quadrotor model, you can un-comment the node quadrotor_simulator_so3 and so3_control/SO3ControlNodelet in simulator.xml (opens in a new tab) to enable quadrotor simulation considering dynamics.
Please don't forget to comment the package poscmd_2_odom right after the above two nodes.
6. Utilize the Full Performance of CPU
The computation time of our planner is too short for the OS to increase CPU frequency, which makes the computation time tend to be longer and unstable.
Therefore, we recommend you to manually set the CPU frequency to the maximum. Firstly, install a tool by
sudo apt install cpufrequtils
Then you can set the CPU frequency to the maximum allowed by
sudo cpufreq-set -g performance
More information can be found in http://www.thinkwiki.org/wiki/How_to_use_cpufrequtils (opens in a new tab).
Note that CPU frequency may still decrease due to high temperature in high load.
Licence
The source code is released under GPLv3 (opens in a new tab) license.
Maintenance
We are still working on extending the proposed system and improving code reliability.
For any technical issues, please contact Xin Zhou (iszhouxin@zju.edu.cn (opens in a new tab)) or Fei GAO (fgaoaa@zju.edu.cn (opens in a new tab)).
For commercial inquiries, please contact Fei GAO (fgaoaa@zju.edu.cn (opens in a new tab)).
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.