English | 简体中文
A simulation engine combining fine-grained physical interaction with large-scale parallelism.
MotrixSim integrates multibody dynamics, fine-grained contact, soft-body simulation, and CPU/GPU parallel computing, and provides visual and tactile observations. Through a unified physical scene and Python interface, it supports robot control, reinforcement learning, complex mechanism analysis, and embodied AI research. Technical details and full experiments are available in the technical report.
Documentation · Technical Report · Web Simulation
motrixsim-prom-10m.mp4
Multibody systems in MotrixSim: humanoids, quadrupeds, robot arms, dexterous hands, and construction machinery.
- Core Features
- Performance
- Quick Start
- Featured Examples
- Supported Platforms
- Ecosystem and Research
- Community and Feedback
- Repository Contents and License
- Citation
Physics stepping throughput with 4096 parallel environments (Go2, G1, and Spot; CPUs: Ryzen 9 9950X (32 threads) and AMD EPYC 9J14; GPU: RTX 5090; unit: million physics steps/s):
The following installs the repository-pinned motrixsim SDK with example dependencies and runs the Spot scene, demonstrating model loading, physics stepping, and synchronized rendering.
1. Clone the repository
git lfs install
git clone https://github.com/Motphys/motrixsim.git
cd motrixsim
git lfs pull2. Install dependencies
uv sync3. Run the first simulation
From the repository root, this opens the Spot simulation window:
uv run python examples/getting_started/hello_motrixsim.pymacOS Apple Silicon: launch windowed examples with mxpython
Examples with a rendering window must be launched via mxpython:
uv run mxpython examples/getting_started/hello_motrixsim.pyThe Spot simulation window opens and keeps stepping physics with synchronized rendering. The example uses default control inputs; policy execution is shown in the robot control examples. A graphical display environment and Git LFS model assets are required.
If you already have a Python project, install the SDK directly without cloning this repository:
uv add motrixsim # or pip install motrixsimLoad your own MJCF scene, create the state data, and step the simulation:
import motrixsim as mx
model = mx.load_model("path/to/your_scene.xml")
with mx.render.RenderApp("warn") as render:
render.launch(model)
data = mx.SceneData(model)
while True:
model.step(data)
render.sync(data)For model loading and runtime configuration (including GPU requirements), see the installation guide.
Repository examples cover core simulation, complex mechanisms, batched environments, and robot control. Run them from the repository root with uv run python <example path>; on macOS, windowed examples use mxpython instead of python. See each example for extra configuration.
| Task | Example | Path | Description | Screenshot |
|---|---|---|---|---|
| Complex mechanisms | Strandbeest | examples/physics/strandbeest.py |
A multi-leg closed-chain mechanism driven by a single crank, with constraint error checks. | |
| Batched simulation | Parallel simulation | examples/parallel/parallelsim.py |
State management, batched control, and visualization of 100 independent environments. | |
| Locomotion policies | robot_locomotion | examples/control/robot_locomotion.py |
Keyboard-driven walking for G1, Go2, and other robots. | |
| Sensor panels | robot_locomotion | examples/control/robot_locomotion.py --robot go2 --lidar ouster_os0_rev6_128ch_10hz_512res or --depth-camera |
Lidar point-cloud BEV panel and depth camera view. Use --list-lidars to list all lidar profiles (hesai_xt32, ouster_os0/os1/os2, and other channel/frequency combinations); depth camera is Go2-only. |
|
| Visual scenes | G1 + 3DGS | examples/viewer/g1_3dgs_locomotion.py |
Robot locomotion and an onboard camera in a scanned environment; requires the corresponding rendering features and scene assets. | |
| Viewer UI | UI Gallery | examples/viewer/ui_gallery.py |
A tour of viewer panels, widgets, image display, and window lifecycle APIs. |
More examples: getting started collection, physics collection, and the user guide and API docs.
| Item | Support |
|---|---|
| Python | 3.10–3.13 |
| Linux | x86_64 |
| Windows | x86_64 |
| macOS | Apple Silicon (arm64) |
These are the CPU simulation ranges. GPU simulation and rendering features have additional requirements; see the installation guide.
The following projects use MotrixSim as the physics backend for robot RL, high-fidelity embodied simulation, and heterogeneous training systems.
MotrixLab (robot RL): environment registration, training configuration, RL framework adapters, evaluation, and replay for quadrupeds, humanoids, arms, and dexterous hands. Repository · Documentation
GS-Playground (high-fidelity embodied simulation): developed by Tsinghua AIR DISCOVER Lab with Motphys and collaborators; combines MotrixSim parallel physics with 3DGS rendering for visual navigation, manipulation, locomotion, and Sim2Real research. Accepted at RSS 2026. Repository · Paper · Project page
UniLab (heterogeneous simulation and learning): connects CPU simulation and GPU learning in a unified training runtime, using MotrixSim as the CPU-batched physics backend for large-scale sampling and cross-platform training. Repository · Paper
- GitHub Issues: bug reports and feature requests.
- GitHub Discussions: usage questions and discussion.
This repository hosts the documentation, examples, tests, and supporting assets; the simulation runtime is distributed separately as the binary Python package motrixsim.
Repository code is licensed under Apache-2.0. Third-party models and assets carry their own licenses; the runtime's terms are stated in the SDK notice.
Tests run via uv run --with pytest pytest tests; see the test configuration for extra dependencies and graphical environment requirements.
If you use MotrixSim in research, please cite:
@software{motrixsim2026,
title = {MotrixSim: A Physics Simulation Engine for Robotics and Embodied AI},
author = {{Motphys Team}},
year = {2026},
url = {https://motrixsim.readthedocs.io/},
note = {Python binary package}
}