This release is a pre-release and may not be stable for production use.
unienv-mjwarp
MuJoCo Warp adaptor for UniEnv's node system (package unienv_mjwarp), the
counterpart of unienv-genesis for Genesis. Tested with mujoco 4.0.0,
mujoco-warp 4.0.0 and warp-lang 1.19.0.
-
MjWarpWorld: one MuJoCo model innworldcopies on the GPU.world.tensor("qpos")(or any other MuJoCo array name) is a torch view of that array, (nworld, ...): writing to it writes to the simulation. Onestep()is one physics step; it and the recomputation after a reset are recorded once as CUDA graphs and replayed. -
Nodes over named parts of the model:
node observation / action JointStateNodejoint_position,joint_velocity(N, n) of hinge and slide jointsActuatorControlNodeaction: the actuators' controls (N, n), within ctrlrangeBodyPoseNodebody_pose(N, 7: position, wxyz), world frameFreeBodyNodebody_poseandbody_velocity(N, 6) of a body on a free joint;set_pose,set_forceContactForceNodenet_force(N, bodies, 3): total contact force on each body, world frameContactPointsNodeno observation; contacts(): the points and frames of one body's contacts, in its frame
A reset is three calls, in UniEnv's order: world.reset(mask=...) puts the chosen worlds back to the model's default
state, the nodes (or the caller) write their start state through world.tensor(...), and world.after_reset()
recomputes positions and contacts for all worlds. After step(), positions and contacts are those from before the
step's integration (MuJoCo's convention).
Package unienv_mjwarp_collection holds specific robots and scenes (as unienv_genesis_collection does for Genesis):
the MANO and Wuji hands (load_hand), the hand + object scene (build_model, physics settings in SimConfig) and
HandNode, the hand's joint state and position targets.
Usage
import mujoco
from unienv_interface.world.env_composer import WorldEnv
from unienv_mjwarp import ActuatorControlNode, JointStateNode, MjWarpWorld
world = MjWarpWorld(mujoco.MjModel.from_xml_path("robot.xml"), nworld=4096)
env = WorldEnv(world, [JointStateNode(world, "robot_state", ["joint1", "joint2"]),
ActuatorControlNode(world, "robot_control", ["act1", "act2"])])
context, obs, info = env.reset()
# obs = {"joint_position": ..., "joint_velocity": ...} (one observation node: passed as-is)
obs, reward, terminated, truncated, info = env.step(controls) # (4096, 2)
As everywhere in UniEnv, observations and actions are dicts keyed by node name, except that a single node's value is passed as-is.
Install and test
pip install unienv-mjwarp
From a checkout, with the tests:
pip install -e '.[test]'
pytest # needs a CUDA GPU
Metadata
Release files for unienv-mjwarp 0.0.1a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unienv_mjwarp-0.0.1a1.tar.gz | 19.9 kB | With provenance | Details for unienv_mjwarp-0.0.1a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unienv_mjwarp-0.0.1a1-py3-none-any.whl | Python 3 | none | any | Details for unienv_mjwarp-0.0.1a1-py3-none-any.whl |
Total release size: 40.6 kB
Release files / unienv_mjwarp-0.0.1a1.tar.gz
| Download URL | unienv_mjwarp-0.0.1a1.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62f248525119b5aa9a640696e7c17ee65b25b156333e677fd7520162e869ea3a
|
|
BLAKE2b-256 checksum How to use checksums |
3b377532948818c903a119d7f12bc4d2916ed8ccd1e4849ab8171bfaa2d9e4a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / unienv_mjwarp-0.0.1a1-py3-none-any.whl
| Download URL | unienv_mjwarp-0.0.1a1-py3-none-any.whl |
|---|---|
| Size | 20.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
667dc6685556b62cc6c61ca2e4a8468a8073c22b30f5a6d2bd86d256a4a53e4e
|
|
BLAKE2b-256 checksum How to use checksums |
8845610de884f85c3a18329145ca310f922ea411e34c2fe27f5e7831c7134081
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logSecurity for unienv-mjwarp 0.0.1a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for unienv_mjwarp-0.0.1a1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.