Skip to main content

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.

Metadata

Release files for rigyd-mujoco 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rigyd-mujoco 1.0.0
File Size Uploaded
rigyd_mujoco-1.0.0.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rigyd-mujoco 1.0.0
File Interpreter ABI Platform
rigyd_mujoco-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.1 kB

Release files / rigyd_mujoco-1.0.0.tar.gz

Download URL rigyd_mujoco-1.0.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7e4ea56575194c724f1ea93436bb12a046643f4fb4854c1ac1a2f085ce535120
BLAKE2b-256 checksum
How to use checksums
385ab5c59a8bd326d5e74e03ae6b85875f796d1c085646dbc983093391dec3c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / rigyd_mujoco-1.0.0-py3-none-any.whl

Download URL rigyd_mujoco-1.0.0-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73ffcb20f0a80f2601008d581aeefd240de48d53e5fe4e6b77c2e12116936f94
BLAKE2b-256 checksum
How to use checksums
d5f7a4ada7ebd2246138228895fe37482fc0faacbe2f3a57b54034910a93373a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page