--- license: apache-2.0 library_name: onnxruntime tags: - robotics - mujoco - reinforcement-learning - ppo - onnx - quadruped - simulation --- # MicroCat: walking and recovery policies [Source and evaluation code](https://github.com/Linxiushen/microcat) ยท [Recorded simulation viewer](https://huggingface.co/spaces/Linxiushen/MicroCat) Two compact ONNX policies for the independent **16-actuator MicroCat simulation prototype**. The repository includes policy weights and schema-2 manifests. The later 10-motor Kitbo R1 revision is not compatible. | Artifact | Purpose | | --- | --- | | `microcat_walk.onnx` | Velocity-command locomotion | | `microcat_recover.onnx` | Learned posture recovery | | `*.manifest.json` | Observation layout, joint order, action scale and control rate | ## Interface - Input `obs`: float32, shape `[1, 66]`. - Output `actions`: float32, shape `[1, 16]`. - Control: 50 Hz target; physics: MuJoCo at 200 Hz. - Observation normalization is embedded in each model. - Action values are joint-position offsets, not raw servo commands. The runtime applies the documented home pose, a scale of 0.5, clipping and rate limits. - Features contain gyro, projected gravity, joint positions relative to home, joint velocities, previous actions, body/head/tail/velocity commands and a two-dimensional gait clock. Follow the exact manifest order. ## Minimal inference ```python import numpy as np import onnxruntime as ort from huggingface_hub import hf_hub_download path = hf_hub_download('Linxiushen/MicroCat-Policies', 'microcat_walk.onnx') session = ort.InferenceSession(path, providers=['CPUExecutionProvider']) actions = session.run(None, {'obs': np.zeros((1, 66), dtype=np.float32)})[0] print(actions.shape) # (1, 16); interface check only, not a valid sensor observation ``` Use the MicroCat runtime for correctly constructed observations and closed-loop simulation. A synthetic zero input only checks the tensor interface. ## Training and validation The policies were trained with PPO/GAE in a custom CPU MuJoCo environment. The training code includes friction, mass, gain, observation-noise and action-delay randomization. Normalization is baked into the ONNX graph, and export checks numerical agreement against PyTorch. Simulation runtime checks cover walking, lateral motion, turning, scripted gestures, a forced fall and recovery. Fixed-seed clean recovery evaluations are a restricted simulation benchmark. They do not establish real-world reliability or sim-to-real performance. See the source repository's evaluation script and machine-readable results for the exact protocol. ## Intended use and limitations Research, reproducible simulation, Agent-tool integration experiments, and evaluation of control/runtime boundaries. **No physical robot has been validated for this release.** Hardware electrical design, actuator loading, thermal/battery protection and real-world perception are not certified. Do not send the model's raw outputs to physical actuators. The nine gesture clips in the source repository are authored keyframes, not nine additional learned policies. There is no bundled language or vision model in these two policy files. ## Provenance and license Original MicroCat policies by Leon S Kennedy (Linxiushen), released under Apache-2.0. The implementation is informed by Pollen Robotics' Microduck ecosystem and is independent of Pollen Robotics. Source code and policy weights have a separate license from the robot geometry/media; this model repository contains only the original weights, manifests and documentation. See the source repository for its geometry attribution and license boundaries.