Fully Onboard SLAM for Distributed Mapping With a Swarm of Nano-Drones

Carl Friess, Vlad Niculescu, Tommaso Polonelli, Michele Magno, Luca Benini

This research paper, presented by a team from ETH Zürich and the University of Bologna, marks a significant milestone in micro-robotics: achieving fully onboard, distributed Simultaneous Localization and Mapping (SLAM) using a swarm of nano-drones.

TL;DR

The authors demonstrate a swarm of 35g nano-drones capable of mapping unknown indoor environments entirely onboard, without any external infrastructure or offboard processing. By optimizing Graph-SLAM and Iterative Closest Point (ICP) algorithms to fit within just 50 kB of RAM, they achieved 12 cm mapping accuracy and proved that swarm coordination linearly reduces mission latency.

What Problem Does This Paper Address?

Nano-drones (weighing <50g) are ideal for navigating cramped, indoor environments or disaster zones where larger UAVs cannot go. However, their extreme payload and power constraints make traditional SLAM nearly impossible. Standard SLAM typically requires heavy LiDAR sensors, power-hungry GPUs, and gigabytes of memory.

Previous attempts at nano-drone mapping usually offloaded computation to a powerful base station via Wi-Fi, which limits operating range and increases power consumption. This paper tackles the challenge of running the entire sensing, communication, and SLAM pipeline locally on the drones' resource-constrained microcontrollers (MCUs).

Methods

The system is built on the Bitcraze Crazyflie 2.1 platform, powered by an STM32F405 MCU (168 MHz, 192 kB RAM).

  • Sensing: The drones use a custom "Quad ToF Deck" featuring four VL53L5CX Time-of-Flight (ToF) sensors. Each sensor provides an 8x8 depth matrix. To make this data manageable for 2D SLAM, the system reduces each 8x8 matrix to an 8-element array using median filtering to mitigate noise.
  • Scan Matching (ICP): The authors implemented a highly optimized version of the Iterative Closest Point (ICP) algorithm. This is the first work to enable onboard ICP for nano-drones, allowing them to calculate the rigid-body transformation between two different scans to detect when they have revisited a location (loop closure).
  • Graph-based SLAM: The system models the trajectory as a graph where nodes are poses and edges are odometry measurements. When ICP detects a loop closure, a "virtual edge" is added to the graph. A Gauss-Newton optimizer then corrects the entire past trajectory.
  • Distributed Coordination: The swarm uses a custom, lightweight Peer-to-Peer (P2P) communication protocol based on ALOHAnet. While all drones explore, one is elected as the "main drone" to aggregate the pose graph and perform the global optimization, though the architecture is designed to be fault-tolerant so any drone can assume this role.
Overview of the system architecture, showing the flow from sensors to the SLAM and exploration algorithms.

Datasets

The system was evaluated in a dedicated testing arena equipped with a Vicon Vero 2.2 motion capture system, which provided millimeter-accurate ground truth for the drones' actual positions. The researchers constructed three distinct maze environments using chipboard panels to test different geometric challenges (corners, intersections, and long corridors).

Key Insights and Ideas

  • Sparse Sensing is Sufficient: You don't need high-resolution LiDAR for effective mapping. By stacking 15 sparse ToF frames and using median filtering, the drones generate enough environmental "texture" for ICP to work accurately.
  • Extreme Memory Optimization: The most impressive feat is fitting the SLAM backend into 50 kB of RAM. This was achieved by using a lightweight graph representation and only requesting high-bandwidth scan data from other drones when a potential loop closure is identified.
  • Linear Scalability: The communication protocol and computational strategy allow the swarm to scale linearly. Adding more drones directly reduces the time required to map an area without overwhelming the network or the main drone's processor.

Key Results

  • Accuracy: The system achieved a mapping accuracy (RMSE) of 10–15 cm, which is comparable to results from much larger and more expensive UAVs.
  • Trajectory Correction: SLAM optimization reduced odometry errors by up to 55%.
  • Swarm Efficiency: In field tests, a swarm of four drones mapped the same area in less than half the time required by two drones (2 min 38 s vs. 5 min 28 s).
  • Onboard Performance: The optimized ICP algorithm runs in approximately 500 ms on the Cortex-M4 MCU. The system supports swarms of up to 20 agents and can map areas up to 180 m² within its memory limits.
Illustrations of the ToF sensor FOV and the pose graphs used for single and multi-drone SLAM.

Limitations and Future Work

  • 2D Mapping: Currently, the system is limited to 2D mapping. While the sensors could support 3D, the computational and memory overhead for 3D scan matching is currently too high for the STM32F4 MCU.
  • Odometry Bias: The authors noted that the drones' internal state estimators consistently overestimate distances, suggesting a need for better odometry calibration in future iterations.
  • Memory Ceiling: The 50 kB RAM limit caps the total number of poses (around 180) the system can optimize at once. Future work could explore using more advanced low-power MCUs, such as multi-core RISC-V SoCs, to handle larger graphs and potentially 3D SLAM.

Summary updated

BibTeX
@article{friess2024fully,
  author = {Carl Friess and Vlad Niculescu and Tommaso Polonelli and Michele Magno and Luca Benini},
  title = {{Fully Onboard SLAM for Distributed Mapping With a Swarm of Nano-Drones}},
  journal = {IEEE Internet of Things Journal},
  year = {2024},
  doi = {10.1109/jiot.2024.3367451},
}
Figure