Boids Swarm

Robotics Engineering

How It Works

Boids swarm robotics models decentralized multi-agent collective flocking behaviors derived from Craig Reynolds' classical spatial interaction rules. Operating without centralized leadership or global coordinates, each individual agent computes three local behavioral steering vectors: Separation (averting crowding collisions with local neighbors), Alignment (synchronizing heading with adjacent flockmates), and Cohesion (steering toward the local cluster center of mass).

Governing Equation
$$ \vec{v}_i(t+1) = \vec{v}_i(t) + w_s \vec{F}_{\text{sep}} + w_a \vec{F}_{\text{align}} + w_c \vec{F}_{\text{coh}} \quad\vert\quad \vec{F}_{\text{sep}} = \sum_{j \neq i} \frac{\vec{r}_i - \vec{r}_j}{|\vec{r}_i - \vec{r}_j|^2} $$