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.13.tar.gz
(16.5 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d73e352b54bcf651a7ee80a72dc14a8956b37a4f7306bd23fb8b51193a69a689
|
|
| MD5 |
59c0a2e47cdfb67687d6ff879f72299a
|
|
| BLAKE2b-256 |
c30c593b0e54ed6d19e242de8ce7fd680439fa6b617037a881173b73c5ea10a3
|
Provenance
The following attestation bundles were made for kmv-0.1.13.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.13.tar.gz -
Subject digest:
d73e352b54bcf651a7ee80a72dc14a8956b37a4f7306bd23fb8b51193a69a689 - Sigstore transparency entry: 192199689
- Sigstore integration time:
-
Permalink:
kscalelabs/kscale-mujoco-viewer@46a541a7de22508e1888e23114c9a77dfa74fe6a -
Branch / Tag:
refs/tags/0.1.13 - Owner: https://github.com/kscalelabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@46a541a7de22508e1888e23114c9a77dfa74fe6a -
Trigger Event:
release
-
Statement type: