Convert any 3D model, text prompt, or image into a physics-enabled MuJoCo (MJCF) asset with Rigyd, and load it straight into MuJoCo.
Project description
rigyd-mujoco
Python SDK for Rigyd that converts any 3D model, text
prompt, or image into a physics-enabled MuJoCo (MJCF) asset and loads it
straight into MuJoCo as a mujoco.MjModel.
Rigyd emits a complete MJCF package —
.xml+ per-material visual STLs + CoACD collision hulls + textures, with inertials, friction, a free joint and a ground plane — so this SDK is a thin API client + loader, not a converter.Note: MuJoCo has no asset-import plugin hook (engine plugins only add actuators/sensors/forces/SDF), so the idiomatic integration is this SDK, not a compiled plugin.
Install
pip install rigyd-mujoco # or, from a clone: pip install -e .
export RIGYD_API_KEY=rgyd_live_xxx
Use
import rigyd
rigyd.configure() # reads RIGYD_API_KEY
# one call: convert + wait + return a loaded model
model = rigyd.load_model(prompt="a wooden dining chair") # text (2 credits)
model = rigyd.load_model(images=["front.png"]) # image (3 credits)
model = rigyd.load_model(file="chair.glb",
target_triangle_count=50_000) # 3D file (1 credit)
# lower level
job = rigyd.convert(prompt="a wooden dining chair")
job.wait(on_progress=lambda j: print(j.status, j.stage, j.progress))
xml = job.download(fmt="mjcf") # path to the .xml package
model = rigyd.load_model(...) ; print(rigyd.account()) # user + credit balance
Run it:
python examples/quickstart.py "a wooden dining chair" # opens the MuJoCo viewer
| Flow | Input | Cost |
|---|---|---|
| Text → SimReady | prompt= |
2 credits |
| Image → SimReady | images= (1 or 4: front, right, back, left) |
3 credits |
| 3D file → SimReady | file= (.glb/.gltf/.fbx/.obj/.stl/.ply/.usd*) |
1 credit |
How it works
Submits to api.rigyd.com, polls the job to completion, downloads the
format=mjcf result ZIP, extracts it (preserving the meshes/ + textures/
layout MuJoCo expects), and returns mujoco.MjModel.from_xml_path(...).
Layout
rigyd/
__init__.py # configure / convert / generate / load_model / account
client.py # stdlib urllib client for the Rigyd API
job.py # Job: status, wait(), download(), load()
cache.py # result-ZIP extraction + local cache
errors.py # RigydError
examples/quickstart.py
scripts/smoke_test.py
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rigyd_mujoco-1.0.0.tar.gz.
File metadata
- Download URL: rigyd_mujoco-1.0.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e4ea56575194c724f1ea93436bb12a046643f4fb4854c1ac1a2f085ce535120
|
|
| MD5 |
1fbbfc0a3066e16638a0fd3b834b3483
|
|
| BLAKE2b-256 |
385ab5c59a8bd326d5e74e03ae6b85875f796d1c085646dbc983093391dec3c9
|
File details
Details for the file rigyd_mujoco-1.0.0-py3-none-any.whl.
File metadata
- Download URL: rigyd_mujoco-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73ffcb20f0a80f2601008d581aeefd240de48d53e5fe4e6b77c2e12116936f94
|
|
| MD5 |
69c3d48e7db0032fbfe5acdbaddb63fb
|
|
| BLAKE2b-256 |
d5f7a4ada7ebd2246138228895fe37482fc0faacbe2f3a57b54034910a93373a
|