HEXFELLOW Mujoco Driver
Project description
HEXFELLOW MUJOCO DRIVER
📖 Overview
What is hex_driver_mujoco
hex_driver_mujoco is a Python library for MuJoCo robot simulation with a unified interface. It supports the E3 Desktop (dual‑arm) and Archer Y6 (6‑DOF arm) robot models. The library runs each simulation in a separate process, streams robot states and camera images via shared‑memory ring buffers, and provides simple get_*_motor/get_*_color_img/get_*_depth_img APIs.
What problem it solves
- Unified simulation interface: Use the same API for different robot models (E3 Desktop, Archer Y6).
- Background simulation: Each simulation runs in its own process; the main thread only reads the latest state when needed.
- Low‑latency sharing: States and images are passed through shared‑memory ring buffers, avoiding serialization overhead.
- Real‑time control: Supports position and MIT (motor‑impedance‑torque) control modes with configurable gains.
Target users
- Robotics researchers prototyping manipulation pipelines with MuJoCo simulations.
- Developers who need a simple, consistent way to interface with simulated robots.
- Anyone who wants to switch between different robot models without changing client code.
📦 Installation
Requirements
- Python ≥ 3.10
- OS:
Linux(macOS/Windows may work but are less tested) - Core dependencies:
hex_util_runtime≥ 0.0.0, < 0.1.0opencv-python≥ 4.10.0mujoco≥ 3.3.0
Install from PyPI
pip install hex_driver_mujoco
Install from Source
For those who need examples, you can install the package from source code with examples.
Note: We use uv to manage the Python environment. Please install it first.
-
Clone and install in editable mode. The
venv.shscript expects uv.git clone https://github.com/hexfellow/hex_driver_mujoco.git cd hex_driver_mujoco ./venv.sh
./venv.sh— creates.venv, installshex_driver_mujocowith example dependencies../venv.sh --min— installs the core package only (without example dependencies). Some examples will not run../venv.sh --pkg-only— installs the package only, skips example-related dependencies.
-
Activate before running examples:
source .venv/bin/activate
📑 API
See API for details of all Mujoco driver classes and parameters.
💡 Example
See Example for usage examples of each robot model.
📚 Citation
If you want to cite this project in your work, you can use the following BibTeX entry:
@software{hex_zmq_servers,
author = {Dong, Zhaorui and Chen, Zejun},
title = {Hex ZMQ Servers: A ZeroMQ-Based Embodied AI Communication Framework},
year = {2025},
publisher = {Zenodo},
version = {v1.0.0},
doi = {10.5281/zenodo.18309960},
url = {https://doi.org/10.5281/zenodo.18309960}
}
📄 License
Apache License 2.0. See LICENSE.
🌟 Star History
👥 Contributors
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hex_driver_mujoco-0.0.1a3.tar.gz.
File metadata
- Download URL: hex_driver_mujoco-0.0.1a3.tar.gz
- Upload date:
- Size: 4.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d8217d617bb1d012ab3f22e57d062786dfb3df256756367950fe290c388c7fd
|
|
| MD5 |
c7ab49d3533e6f32b81a4ce7499d502a
|
|
| BLAKE2b-256 |
0d8da62abddd89b522926dc9683588513da2938b90b5ffda13f380e023f624de
|
File details
Details for the file hex_driver_mujoco-0.0.1a3-py3-none-any.whl.
File metadata
- Download URL: hex_driver_mujoco-0.0.1a3-py3-none-any.whl
- Upload date:
- Size: 4.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31861acf9e3e7f625228a385b32416505f1727fd5941e794b4747b1b044e94c1
|
|
| MD5 |
d8556b835bcc006b75b1d2da3edfb600
|
|
| BLAKE2b-256 |
dcb499a01e9ff7dbf168553c210fad689e187e3523f1be25303bf3d332409924
|