Skip to main content

vuer-sim

Simulation materials for MuJoCo and USD scenes.

  • PhysicsMaterial: friction (slide, torsion, roll), restitution, density, solref, solimp, condim, priority, margin, with from_mjcf/to_mjcf (geom attributes and <default> classes) and from_usd/to_usd (UsdPhysics plus MuJoCo's mjcPhysics schema names, pinned at MuJoCo 4.0.1).
  • Restitution in MuJoCo through the solref damping ratio: z = -ln(e) / sqrt(π² + ln(e)²). The docs give the limits and measured bounce values.
  • infer_physics: a visual-to-physics lookup table (wood, metal, plastic, rubber, glass, fabric, ceramic, ...) with sources and a confidence.
  • SensorMaterial and lidar_returns: dropout, glass, black surfaces, range noise and intensity for the per-ray geom ids of a ray-cast LiDAR.
  • MaterialTable: materials.json in a scene bundle; load, save, apply(model).
  • Editor: @vuer-ai/vuer-sim (TypeScript) edits a table in the browser and saves it through vuer events that vuer_sim.viewer handles.

The core needs only numpy. vuer is optional.

pip install vuer-sim              # core
pip install 'vuer-sim[mujoco]'    # apply tables to MuJoCo models
pip install 'vuer-sim[usd]'       # USD converters (usd-core)
pip install 'vuer-sim[viewer]'    # editor events (vuer)
import mujoco
from vuer_sim import MaterialTable, infer_physics

spec = mujoco.MjSpec.from_file("examples/lab_table/scene.xml")
table = MaterialTable()
for m in spec.materials:
    guess = infer_physics({"name": m.name, "base_color": list(m.rgba)}, name=m.name)
    table.add(guess.material)
    table.assign[f"material:{m.name}"] = m.name
table.save("examples/lab_table")  # materials.json
table.apply(spec)
model = spec.compile()

See examples/build_material_table.py and examples/edit_materials.py.

Docs

The docs are a dockit site in docs/ (pnpm --dir docs dev). The agent skill is generated into skills/vuer-sim/.

Development

uv sync --group dev --group heavy
make check                  # lint, typecheck, fast tests: what PR CI runs
./scripts/local-checks.sh   # MuJoCo, USD and vuer tests, and the example

Release: a Release vX.Y.Z PR bumps pyproject.toml and CHANGELOG.md; after the merge, make release tags vX.Y.Z and publishes to PyPI.

License

MIT

Metadata

Release files for vuer-sim 0.0.1

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

Source distribution (sdist)

Source distribution for vuer-sim 0.0.1
File Size Uploaded Provenance Actions
vuer_sim-0.0.1.tar.gz 22.9 kB Without provenance Details for vuer_sim-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vuer-sim 0.0.1
File Interpreter ABI Platform Actions
vuer_sim-0.0.1-py3-none-any.whl Python 3 none any Details for vuer_sim-0.0.1-py3-none-any.whl

Total release size: 49.3 kB

Release files / vuer_sim-0.0.1.tar.gz

Download URL vuer_sim-0.0.1.tar.gz
Size 22.9 kB
Tags Source
SHA-256 checksum
How to use checksums
51cac30de668400b4ef544bde68f0d8bca91be76ebe0ac8609fba0764fe9f34c
BLAKE2b-256 checksum
How to use checksums
5736c5fbbd937148082997dc15f2d8dd3353a02df79c9abd27bc72bf36fabb13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / vuer_sim-0.0.1-py3-none-any.whl

Download URL vuer_sim-0.0.1-py3-none-any.whl
Size 26.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48e8232aedd3e60c1a589cfbd897f8c905b6375cd97157fa64d2948f24bd438d
BLAKE2b-256 checksum
How to use checksums
35cc30ad517e09f5fad915be473990b63410e30d6007cb52babfec74aead6eb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for vuer-sim 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

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