How evilbinary/miniduck works
miniduck is a bipedal robot platform: a shared robot definition drives simulation assets, Python trains and exports a policy, and yac software is intended to run the policy in a real-robot control loop. The principal workflow runs from robot configuration through generation and simulated PPO training to policy export and deployment. The graph also preserves the physical-modeling and visualization tools. Deployment internals and some mind subsystems are documented but unsampled; those links reflect README statements, not inspected implementation.
Main entry points: duck_env.py Stand environment · robot.yaml Robot definition · robotd Robot control loop · body URDF / MJCF assets
Components 18
Robot design
- Robot definition
body/robot.yaml - Asset generator
body/tools/gen.py - URDF / MJCF assets
body
Simulation tools
- Stance solver
body/tools/solve_stance.py - Physics checks
body/tools/check_physics.py - Actuator models
train/envs/actuators.py - Stand environment
train/envs/duck_env.py - Simulation viewer
train/scripts/view.py
Training and export
- Spec parser
train/envs/spec_loader.py - PPO trainer
train/ppo/train.py - Policy exporter
train/export.py - Policy artifacts
train
On-robot software
- Behavior specifications
mind/spec - Robot control loop
mind/robotd - Intent service
mind/mindd - OTA updater
mind/updaterd
Other components
- Robot engineer
- Physical robot
Connections 25
- Robot engineer → Robot definition: defines robot
README.md - Robot definition → Asset generator: configures generation
README.md - Asset generator → URDF / MJCF assets: generates assets
README.md - Robot definition → Stance solver: supplies geometry
README.md - URDF / MJCF assets → Stance solver: simulates stance
README.md - Stance solver → Robot definition: updates stance pose
README.md - URDF / MJCF assets → Physics checks: checks physics
README.md - Robot definition → Physics checks: checks robot model
README.md - Behavior specifications → Spec parser: parses specs
README.md - Behavior specifications → PPO trainer: sets training parameters
README.md - Behavior specifications → Robot control loop: defines runtime behavior
README.md - Robot definition → Stand environment: configures robot model
README.md - Spec parser → Stand environment: provides parsed specs
README.md - Stand environment → Actuator models: uses actuator models
train/envs/duck_env.py - Stand environment → URDF / MJCF assets: loads simulation model
train/envs/duck_env.py - PPO trainer → Stand environment: collects rollouts
train/ppo/train.py - PPO trainer → Spec parser: reads specs
train/ppo/train.py - Policy exporter → Spec parser: reads specs
train/export.py - Policy exporter → Policy artifacts: writes policy
README.md - Policy exporter → Stand environment: generates golden frames
train/export.py - Simulation viewer → Stand environment: drives simulation
train/scripts/view.py - Policy artifacts → Robot control loop: loads policy blob
README.md - Robot control loop → Physical robot: controls at 50 Hz
README.md - Intent service → Robot control loop: provides high-level intent
- OTA updater → Robot control loop: updates deployed software