lerobot / unitree-g1-mujoco

huggingface.co
Total runs: 122
24-hour runs: 0
7-day runs: -71
30-day runs: -330
Model's Last Updated: 2026年3月5日

Introduction of unitree-g1-mujoco

Model Details of unitree-g1-mujoco

Standalone MuJoCo Simulator for Unitree G1

This is a standalone MuJoCo physics simulator for the Unitree G1 robot, extracted from the GR00T-WholeBodyControl repository.

Features
  • Physics Simulation : Runs G1 robot in MuJoCo at 500Hz (2ms timestep)
  • DDS Communication : Uses Unitree SDK2 DDS for robot communication
  • Compatible : Works with existing unitree_g1.py control code via DDS
  • Visualization : Real-time 3D visualization of robot motion
Directory Structure
mujoco_sim_g1/
├── requirements.txt          # Python dependencies
├── run_sim.py               # Main launcher script
├── config.yaml              # Simulation configuration
├── sim/                     # Simulation modules
│   ├── base_sim.py
│   ├── simulator_factory.py
│   ├── unitree_sdk2py_bridge.py
│   └── ...
└── assets/                  # Robot models
    ├── g1_29dof_with_hand.xml
    └── meshes/*.STL
Installation
1. Create Virtual Environment (Recommended)
cd mujoco_sim_g1
python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
2. Install Dependencies
pip install -r requirements.txt

Note : If you encounter issues with rclpy , you can comment out the ROS2 imports in sim/base_sim.py (lines 11, 609-617) if you don't need camera publishing.

Usage
Basic Usage
# Activate environment
source venv/bin/activate

# Run the simulator
python run_sim.py

The simulator will:

  1. Load the G1 robot model
  2. Initialize DDS communication on domain 0
  3. Open a MuJoCo visualization window
  4. Start listening for motor commands via DDS
Running with Your Robot Control Code

Once the simulator is running, you can control it from another terminal:

# In another terminal
cd /home/yope/Documents/lerobot
conda activate unitree_lerobot

# Run your existing control code
python test_locomotion_minimal.py

Your unitree_g1.py code will automatically connect to the simulator via DDS!

Configuration

Edit config.yaml to customize:

  • SIMULATE_DT : Simulation timestep (default: 0.002s = 500Hz)
  • DOMAIN_ID : DDS domain ID (default: 0)
  • ENABLE_ONSCREEN : Show visualization (default: true)
  • USE_JOYSTICK : Enable gamepad control (default: false)
  • ROBOT_SCENE : Path to MuJoCo XML scene
PD Gains

The simulator uses the following PD gains (matching NVIDIA GR00T):

Legs (indices 0-11):

  • Hip joints: KP=150, KD=2
  • Knee joints: KP=300, KD=4
  • Ankle joints: KP=40, KD=2

Waist (indices 12-14):

  • All waist joints: KP=250, KD=5

Arms (indices 15-28):

  • Shoulders: KP=100, KD=2-5
  • Elbows/Wrists: KP=20-40, KD=1-2
Troubleshooting
ImportError: cannot import name 'ChannelFactoryInitialize'
pip install --upgrade unitree-sdk2py
ROS2/rclpy errors

If you don't need camera publishing, edit sim/base_sim.py :

  • Comment out line 11: import rclpy
  • Comment out lines 609-617 (ROS2 initialization)
Meshes not found

Make sure mesh paths in assets/g1_29dof_with_hand.xml are relative:

<mesh file="meshes/pelvis.STL"/>  <!-- Not absolute path -->
Robot falls immediately

Check that:

  1. PD gains match NVIDIA's values (see config.yaml)
  2. Velocity command scaling is correct (ang_vel_scale=0.25, cmd_scale=[2.0, 2.0, 0.25])
  3. Observations for missing joints are zeroed out (indices 12, 14, 20, 21, 27, 28)
Technical Details
Communication

The simulator publishes:

  • rt/lowstate : Robot state (joint positions, velocities, IMU, etc.)
  • rt/wirelesscontroller : Wireless remote controller state (if joystick enabled)

The simulator subscribes to:

  • rt/lowcmd : Motor commands (position, velocity, torque, KP, KD)
Coordinate Frames
  • World frame : Z-up
  • Joint ordering : 29 DOF (12 legs + 3 waist + 14 arms)
  • IMU : Quaternion in [w, x, y, z] format
Performance
  • Simulation runs at ~500Hz (2ms timestep)
  • Viewer updates at ~50Hz (20ms)
  • Typical CPU usage: 20-40% on single core
Files from GR00T-WholeBodyControl

This standalone simulator was extracted from:

  • gr00t_wbc/control/envs/g1/sim/ (simulation modules)
  • gr00t_wbc/control/robot_model/model_data/g1/ (robot model files)
  • gr00t_wbc/control/main/teleop/configs/g1_29dof_gear_wbc.yaml (configuration)
License

Follows the license of the original GR00T-WholeBodyControl repository.

Runs of lerobot unitree-g1-mujoco on huggingface.co

122
Total runs
0
24-hour runs
0
3-day runs
-71
7-day runs
-330
30-day runs

More Information About unitree-g1-mujoco huggingface.co Model

unitree-g1-mujoco huggingface.co

unitree-g1-mujoco huggingface.co is an AI model on huggingface.co that provides unitree-g1-mujoco's model effect (), which can be used instantly with this lerobot unitree-g1-mujoco model. huggingface.co supports a free trial of the unitree-g1-mujoco model, and also provides paid use of the unitree-g1-mujoco. Support call unitree-g1-mujoco model through api, including Node.js, Python, http.

unitree-g1-mujoco huggingface.co Url

https://huggingface.co/lerobot/unitree-g1-mujoco

lerobot unitree-g1-mujoco online free

unitree-g1-mujoco huggingface.co is an online trial and call api platform, which integrates unitree-g1-mujoco's modeling effects, including api services, and provides a free online trial of unitree-g1-mujoco, you can try unitree-g1-mujoco online for free by clicking the link below.

lerobot unitree-g1-mujoco online free url in huggingface.co:

https://huggingface.co/lerobot/unitree-g1-mujoco

unitree-g1-mujoco install

unitree-g1-mujoco is an open source model from GitHub that offers a free installation service, and any user can find unitree-g1-mujoco on GitHub to install. At the same time, huggingface.co provides the effect of unitree-g1-mujoco install, users can directly use unitree-g1-mujoco installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

unitree-g1-mujoco install url in huggingface.co:

https://huggingface.co/lerobot/unitree-g1-mujoco

Url of unitree-g1-mujoco

unitree-g1-mujoco huggingface.co Url

Provider of unitree-g1-mujoco huggingface.co

lerobot
ORGANIZATIONS

Other API from lerobot

huggingface.co

Total runs: 159.3K
Run Growth: 60.6K
Growth Rate: 38.03%
Updated:2026年9月17日
huggingface.co

Total runs: 26.9K
Run Growth: 15.6K
Growth Rate: 58.10%
Updated:2026年6月3日
huggingface.co

Total runs: 20.0K
Run Growth: -1.4K
Growth Rate: -6.93%
Updated:2026年7月29日
huggingface.co

Total runs: 6.1K
Run Growth: -5.5K
Growth Rate: -90.07%
Updated:2025年9月19日
huggingface.co

Total runs: 5.9K
Run Growth: -3.5K
Growth Rate: -59.22%
Updated:2026年2月21日
huggingface.co

Total runs: 3.2K
Run Growth: -100
Growth Rate: -3.10%
Updated:2026年3月2日
huggingface.co

Total runs: 2.2K
Run Growth: -5.0K
Growth Rate: -234.12%
Updated:2026年1月22日
huggingface.co

Total runs: 1.9K
Run Growth: -994
Growth Rate: -51.56%
Updated:2026年3月5日
huggingface.co

Total runs: 1.6K
Run Growth: -3.1K
Growth Rate: -189.28%
Updated:2025年9月19日
huggingface.co

Total runs: 1.1K
Run Growth: -3.6K
Growth Rate: -322.92%
Updated:2026年2月20日
huggingface.co

Total runs: 956
Run Growth: -3.8K
Growth Rate: -397.18%
Updated:2026年1月22日
huggingface.co

Total runs: 798
Run Growth: 798
Growth Rate: 100.00%
Updated:2026年4月20日
huggingface.co

Total runs: 545
Run Growth: -158
Growth Rate: -28.99%
Updated:2025年3月31日
huggingface.co

Total runs: 344
Run Growth: 115
Growth Rate: 33.43%
Updated:2026年6月5日
huggingface.co

Total runs: 151
Run Growth: 82
Growth Rate: 54.30%
Updated:2026年7月6日
huggingface.co

Total runs: 118
Run Growth: -4.0K
Growth Rate: -3347.46%
Updated:2025年3月7日
huggingface.co

Total runs: 64
Run Growth: 0
Growth Rate: 0.00%
Updated:2025年9月26日
huggingface.co

Total runs: 61
Run Growth: -107
Growth Rate: -175.41%
Updated:2026年2月27日
huggingface.co

Total runs: 35
Run Growth: 0
Growth Rate: 0.00%
Updated:2025年9月24日
huggingface.co

Total runs: 31
Run Growth: 31
Growth Rate: 100.00%
Updated:2026年8月11日
huggingface.co

Total runs: 28
Run Growth: 28
Growth Rate: 100.00%
Updated:2026年7月28日
huggingface.co

Total runs: 28
Run Growth: 28
Growth Rate: 100.00%
Updated:2026年7月21日
huggingface.co

Total runs: 20
Run Growth: -59
Growth Rate: -256.52%
Updated:2026年8月11日