Skip to content

Unstable-Kernel/signal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

signal

Pheromone signaling systems for the Unstable Kernel ecosystem. Handles chemical communication between agents via grid-based signal fields.

Architecture

graph TD
    G[SignalGrid] --> D[Diffusion<br/>3x3 box blur]
    G --> E[Evaporation<br/>exponential decay]
    G --> DEP[Deposit<br/>agent writes signal]
    G --> SAM[Sample<br/>agent reads signal]
    F[Forager] --> SAM
    F --> |3-sensor chemotaxis| STEER[Steering Force]
Loading

Modules

Module Purpose
grid Multi-layer 2D signal field with diffusion and evaporation
forager Physarum-inspired 3-sensor chemotaxis steering

Usage

use kernel_signal::grid::SignalGrid;
use kernel_signal::forager::{forager_steer, ForagerParams};

let mut grid = SignalGrid::new(1200.0, 800.0, 4.0);
grid.add_layer("food_trail", 0.1, 0.02);
grid.deposit(0, 500.0, 400.0, 1.0);
grid.step(); // diffuse + evaporate

let (fx, fy) = forager_steer(100.0, 100.0, 1.0, 0.0, &grid, &ForagerParams::default());

License

MIT

About

Pheromone signaling systems -- diffusion, evaporation, chemotaxis, stigmergy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages