Swarm Lab
MULTI-AGENTFormations, flocking, coverage and encirclement with quadrotor dynamics, collision avoidance, wind and a lossy, delayed radio
Mission
A virtual leader flies to the goal; each drone holds a slot in the shape. Slots are assigned optimally (Hungarian algorithm) and drones correct each other with displacement-based consensus over the radio.
Click the ground to send the formation somewhere.
Shape
Slot gain
0.8
Consensus gain
0.4
Swarm
Drones
16
Spacing
6 m
Altitude
20 m
Max speed
8 m/s
Max tilt
30 °
Attitude lag τ
0.15 s
Collision avoidance
Safety distance
2.5 m
Navigation (GNSS)
GNSS error σ (horizontal)
1.5 m
GNSS rate
5 Hz
IMU
noise 180 µg/√Hz, bias up to ±4 mg
Every drone estimates its own position and velocity from GNSS, an IMU and a barometer. Control, avoidance and the radio all use this estimate, never the truth.
Obstacle sensing
120 beams, 3° apart, 40 m, ±3 cm. Sees all around, in one horizontal plane.
120° forward, 60 m, works in fog and darkness; coarse angle (±1.5°) and occasional false alarms.
Inspect drone #
0
Radio
Range
45 m
Packet loss
0.1
Latency
0.1 s
Broadcast rate
10 Hz
Environment
Wind
3 m/s
Wind direction
45 °
Gusts (RMS)
1.5 m/s
Buildings
Random seed
1
Each drone: tilt-limited acceleration, first-order attitude lag, quadratic drag in gusty wind, and hover power from momentum theory draining an 80 Wh battery. Drones only know about each other through the simulated radio.
t 0 s
Radio links
Rays
Detections
Nav estimate
Follow swarm
Trails
Collisions
0
Closest pair
—
Connectivity λ₂
—
connected
Formation error
—
RMS from slots
Area covered
—
Power / drone
—
Lowest battery
—
Nav error (RMS)
—
Packets delivered
—
0 msgs
Closest pair (m)
Navigation error (m)
Algebraic connectivity λ₂
Formation error (m)