mujaco-gym-lite is a lightweight task suite for robotic manipulation with the Kinova Jaco2 arm in MuJoCo.
It includes:
- MuJoCo-based manipulation tasks (drawer, button, door, assembly ring, hinged box, lever, soccer, lidded box)
- Example scripts for scripted demos and environment debugging
- Linux (this repository is developed and tested on Linux)
- Python 3.10
- MuJoCo Python bindings (
mujoco) available in your environment - OpenGL/GLFW runtime libraries for rendering
If you run with local rendering and miss system libraries, install them on Ubuntu/Debian:
sudo apt update
sudo apt install -y libglfw3 libgl1 libosmesa6 libopenblas0python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip setuptools wheel
pip install mujaco-gym-lite
# Required for MuJoCo tasks
pip install mujoco "gymnasium[mujoco]"git clone <your-fork-or-this-repo-url>
cd mujaco-gym-lite
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip setuptools wheel
pip install -e .
# Required for MuJoCo tasks
pip install mujoco "gymnasium[mujoco]"CUDA 12.6 Docker scripts are included in dockerfiles/cuda126.
cd dockerfiles/cuda126
./build.sh
./launch.shRun any demo from the repository root.
python examples/run_drawer_open_demo.py
python examples/run_assembly_ring_demo.py
python examples/run_soccer_demo.pySome demos support options such as recording:
python examples/run_drawer_open_demo.py --render_mode rgb_array --recordRecorded demos converted from examples/demo_result and stored in docs/demo_gifs.
Registered Gymnasium IDs:
DrawerRobot-v0ButtonRobot-v0SlidingDoorRobot-v0AssemblyRingRobot-v0HingedBoxRobot-v0LeverRobot-v0SoccerRobot-v0LiddedBoxRobot-v0
MuJoCo robot environments use gymnasium.spaces.Dict action spaces.
Typical keys include:
robot/end_effector/position(3D target position)robot/end_effector/rotation(quaternion)robot/home(home command flag)camera/<name>/position,camera/<name>/rotation(for mocap camera control)
Exact keys can vary by task and wrappers.
Observations are also dictionaries and usually include:
- Robot state (end-effector pose, joint angles, contacts)
- Task/object state (for example object pose, handle position, joint positions)
- Camera outputs when enabled (color/depth/segmentation and camera parameters)
- Low-level simulator state (
qpos,qvel)
Rewards are task-specific and generally dense/shaped to support learning. For many manipulation tasks, reward terms combine:
- Progress toward the task goal (for example object alignment or opening distance)
- Control/interaction quality (for example grasp or caging quality)
- A success-related bonus when the task condition is met
Additional reward diagnostics are exposed through the info dictionary (for example reward/* keys and task/success).
mujaco_gym_lite/: main package (environments, builders, wrappers, tools)examples/: runnable demo scriptsassets/: object meshes, robot files, texturesdockerfiles/: Docker build/run scripts
Source code in this repository (excluding asset content) is licensed under the MIT License.
Asset licensing and attribution may differ by source. Please check the files inside the asset directories:
assets/objects/metaworld/README.mdassets/robots/README.mdassets/textures/README.md
Use those asset files as the primary reference for origin and license/usage terms.







