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
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
kmv-0.1.12.tar.gz
(16.3 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b82ed5f6e3788b0ac05420c8d30eacffac151117b421c8f35f25e1d21e770241
|
|
| MD5 |
cf5b4d8f68b8a7b6e1f488125c93c2a6
|
|
| BLAKE2b-256 |
5816def97eb8508b62606e588bb564dfe2eee65ea2c1c5425d190304d638831b
|
Provenance
The following attestation bundles were made for kmv-0.1.12.tar.gz:
Publisher:
publish.yml on kscalelabs/kscale-mujoco-viewer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kmv-0.1.12.tar.gz -
Subject digest:
b82ed5f6e3788b0ac05420c8d30eacffac151117b421c8f35f25e1d21e770241 - Sigstore transparency entry: 192135932
- Sigstore integration time:
-
Permalink:
kscalelabs/kscale-mujoco-viewer@6fa308261dfaedc50d92f0ab7a80e0cced71ee7f -
Branch / Tag:
refs/heads/master - Owner: https://github.com/kscalelabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6fa308261dfaedc50d92f0ab7a80e0cced71ee7f -
Trigger Event:
workflow_dispatch
-
Statement type: