The kscale-mujoco-viewer project
Project description
kscale-mujoco-viewer
Mujoco viewer maintained by K-Scale Labs.
https://github.com/user-attachments/assets/5312fa03-7215-4c1b-9d66-acaa18b96a3c
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, time
from kmv.app.viewer import QtViewer
model = mujoco.MjModel.from_xml_path("path/to/model.xml")
data = mujoco.MjData(model)
viewer = QtViewer(model)
while viewer.is_open:
mujoco.mj_step(model, data)
# send state
viewer.push_state(data.qpos, data.qvel, sim_time=data.time)
# send a few scalars to the “Debug” plot group
viewer.push_plot_metrics(
scalars={
"qpos0": float(data.qpos[0]),
"qvel0": float(data.qvel[0]),
},
group="Debug",
)
time.sleep(model.opt.timestep)
viewer.close()
Acknowledgements
Originally referenced from mujoco-python-viewer.
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.3.14.tar.gz
(22.1 kB
view details)
File details
Details for the file kmv-0.3.14.tar.gz.
File metadata
- Download URL: kmv-0.3.14.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0aa01669ba8f7e24db5ce8d2789506403063d144a70e6c42852972c385e51dee
|
|
| MD5 |
6ff6426a469fff28e6274c25b7510117
|
|
| BLAKE2b-256 |
e2eb9e1b5b44d303ae344c3a45ee4ca1d07ed8dbec2540ac9e62d2ac29c5e4cb
|
Provenance
The following attestation bundles were made for kmv-0.3.14.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.3.14.tar.gz -
Subject digest:
0aa01669ba8f7e24db5ce8d2789506403063d144a70e6c42852972c385e51dee - Sigstore transparency entry: 231859224
- Sigstore integration time:
-
Permalink:
kscalelabs/kscale-mujoco-viewer@bcb0506cd09561595255f4e1e7e1abce19a309f5 -
Branch / Tag:
refs/tags/0.3.14 - Owner: https://github.com/kscalelabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bcb0506cd09561595255f4e1e7e1abce19a309f5 -
Trigger Event:
release
-
Statement type: