How chenyvhang/cyber-larva works
CyberLarva is an interactive closed-loop larval locomotion model, with a local scientific build and a reduced browser-only demo. The principal workflow senses habitat conditions, drives neural activity and segmental locomotor control, simulates body motion and contact, then returns pose and contact information to the sensory loop. Users can also edit habitats and silence neurons. The README documents these capabilities; some internal controller and browser wiring lies in unsampled source, so those links are shown only where documented.
Main entry points: connectome.py Sparse neural network · server.py Local API and loop · world.py Habitat and senses · physics.py MuJoCo body physics
Components 11
User interface
- 3D interface
web/main.js - Browser demo API
web/demo-api.js - Local API and loop
server.py
Habitat and sensing
- Habitat and senses
cyberlarva/world.py
Neural and motor control
- Sparse neural network
cyberlarva/connectome.py - Segmental motor control
cyberlarva/physics.py
Body simulation
- MuJoCo body physics
cyberlarva/physics.py
Scientific data
- Connectome topology
data/connectome - Trajectory calibration
config/trajectory_calibration.json - Neuron identities
data/connectome
Other components
- Experimenter
Connections 14
- Experimenter → 3D interface: interacts
README.md - 3D interface → Local API and loop: requests state
- 3D interface → Browser demo API: uses online
README.md - Local API and loop → Habitat and senses: initializes
server.py - Local API and loop → Sparse neural network: initializes
server.py - Local API and loop → MuJoCo body physics: initializes
server.py - Habitat and senses → Sparse neural network: provides senses
README.md - Sparse neural network → Segmental motor control: modulates drive
README.md - Segmental motor control → MuJoCo body physics: drives actuators
README.md - MuJoCo body physics → Habitat and senses: returns pose
README.md - Habitat and senses → Sparse neural network: returns contact
README.md - Sparse neural network → Connectome topology: loads network
README.md - Sparse neural network → Neuron identities: searches identities
README.md - MuJoCo body physics → Trajectory calibration: uses targets
README.md