Skip to main content

The kscale-mujoco-viewer project

Project description

kscale-mujoco-viewer

Mujoco viewer maintained by K-Scale Labs.

Originally referenced from mujoco-python-viewer.

Installation

pip install kmv

Examples

Run the humanoid example script to see the viewer in action:

# cd to the root of the repo
python examples/default_humanoid.py

Usage

import mujoco
from kmv.viewer import launch_passive

# Load model and create data
model = mujoco.MjModel.from_xml_path("path/to/model.xml")
data = mujoco.MjData(model)

# Run viewer
with launch_passive(model, data, make_plots=True) as viewer:
    # Setup camera and other options if needed
    viewer.setup_camera(render_distance=4.0, render_lookat=[0.0, 0.0, 1.0])
    
    while running_simulation:
        # Update physics
        mujoco.mj_step(model, data)
        
        # Update visualization
        viewer.update_and_sync()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kmv-0.1.12.tar.gz (16.3 kB view details)

Uploaded Source

File details

Details for the file kmv-0.1.12.tar.gz.

File metadata

  • Download URL: kmv-0.1.12.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for kmv-0.1.12.tar.gz
Algorithm Hash digest
SHA256 b82ed5f6e3788b0ac05420c8d30eacffac151117b421c8f35f25e1d21e770241
MD5 cf5b4d8f68b8a7b6e1f488125c93c2a6
BLAKE2b-256 5816def97eb8508b62606e588bb564dfe2eee65ea2c1c5425d190304d638831b

See more details on using hashes here.

Provenance

The following attestation bundles were made for kmv-0.1.12.tar.gz:

Publisher: publish.yml on kscalelabs/kscale-mujoco-viewer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page