Motphys/motrixsim
Über uns
A high-performance physics simulation engine designed for multibody dynamics and robotics simulation.
Wissenschaft und TechnikWhat you can do
- SDF-based fine interaction - Uses signed distance fields (SDF) to represent complex curved and non-convex surfaces, with multi-point contact and friction solving, for interactions that depend on local geometry such as dexterous grasping and gear meshing.
- Complex mechanisms and closed-loop constraints - Describes multibody systems in generalized coordinates and solves joints, limits, contacts, and closed-loop constraints jointly. The Strandbeest model drives 12 legs, 92 links, and 36 closed kinematic loops from a single crank; the companion example supports constraint residual checks.
- Soft bodies and rigid-soft coupling - Uses the material point method (MPM) to simulate compression, rebound, and large deformation, exchanging motion boundaries and contact reactions bidirectionally with multibody dynamics, as in a robot arm squeezing a sponge.
- CPU/GPU massive parallelism - Provides CPU/GPU batched simulation backends with a Python interface for managing the state and control of whole batches, single environments, and environment subsets, supporting RL sampling, parameter sweeps, and policy evaluation.
Gemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- Verlauf wird gesammelt
- in 15 days
- Verlauf wird gesammelt
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalMotrixSim
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
https://github.com/user-attachments/assets/30bbd874-4567-4f4e-81ec-388d9a707308
Multibody systems in MotrixSim: humanoids, quadrupeds, robot arms, dexterous hands, and construction machinery.
Table of Contents
- Core Features
- Performance
- Quick Start
- Featured Examples
- Supported Platforms
- Ecosystem and Research
- Community and Feedback
- Repository Contents and License
- Citation
Core Features
Performance
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):
Quick Start
Option 1: Clone This Repository and Run Examples
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 pull
2. Install dependencies
uv sync
3. Run the first simulation
From the repository root, this opens the Spot simulation window:
uv run python examples/getting_started/hello_motrixsim.py
macOS 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.py
The 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.
Option 2: Install into an Existing Project
If you already have a Python project, install the SDK directly without cloning this repository:
uv add motrixsim # or pip install motrixsim
Load 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.
Featured Examples
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.
Supported Platforms
| 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.
Ecosystem and Research
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
Community and Feedback
- GitHub Issues: bug reports and feature requests.
- GitHub Discussions: usage questions and discussion.
Repository Contents and License
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.
Citation
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}
}
Ähnliche Projekte entdecken
Wird geladen…







