Overview of NeuroMechFly v2 (FlyGym)
mainFlyGym is a Python library providing a digital twin of the adult fruit fly Drosophila melanogaster. It is designed for simulating embodied sensorimotor control.
Key features include:
- Biomechanical Model: Based on micro-CT scans of a real adult female fly with adjusted body segments (e.g., antennae).
- Vision: Simulated compound eyes with ommatidia arranged on a hexagonal lattice.
- Olfaction: Simulated odor/chemical intensity at receptors in the antennae and maxillary palps.
- Hierarchical Control: Supports a two-part CNS model consisting of a Brain (sensory integration and decision making) and a Ventral Nerve Cord (VNC) (motor control), connected via descending and ascending representations.
- Leg Adhesion: Simulates specialized adhesive structures at leg tips, which can be toggled on/off during leg stance/swing to model locomotion on vertical or overhanging surfaces.
- Mechanosensory Feedback: Provides access to joint angles, actuator forces, contact forces, and user-defined anatomical joint-site positions.