Skip to main content
← All work

drone-swarm-sim

A browser simulation of a drone swarm searching terrain, where the agents see only what their sensors report.

Status

Active. The AR glasses viewer was verified headless only: its NEXT.md lists the axis convention, field of view and north alignment as not yet checked on a wearer.

Language
JavaScript (three.js)
Tests
179
Lines
20,096
Commits
342

Truth and belief are separate layers

The world layer holds the truth: terrain, four scenarios, targets and the sensors that sample them. The agent layer (estimator, belief grid, tracks, a tasking auction, a carrier drone, mini drones and a pilot) imports nothing from the world, and an npm check enforces that boundary. A third layer renders it with three.js in three looks: field, tactical and survey.

The estimator fuses GNSS, visual odometry and barometer in an odometry frame, so the agents work from the same kind of imperfect picture a real aircraft would.

Details from the notes

Recent work in NEXT.md includes a canopy-gap scan feeding the pilot's descent through forest, listen posts filtered by terrain line of sight, an upward rangefinder for flying under crowns, and a beacon handshake before a track is released.

A viewer for XREAL R1 glasses reads the glasses' IMU over a local bridge and fuses gyro and accelerometer into a head pose.