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.13.tar.gz (16.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: kmv-0.1.13.tar.gz
  • Upload date:
  • Size: 16.5 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.13.tar.gz
Algorithm Hash digest
SHA256 d73e352b54bcf651a7ee80a72dc14a8956b37a4f7306bd23fb8b51193a69a689
MD5 59c0a2e47cdfb67687d6ff879f72299a
BLAKE2b-256 c30c593b0e54ed6d19e242de8ce7fd680439fa6b617037a881173b73c5ea10a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for kmv-0.1.13.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