Software stack for loco-manipulation experiments across multiple humanoid platforms, with primary support for the Unitree G1. This repository provides whole-body control policies, a teleoperation stack, and a data exporter.
- Ubuntu 22.04
- NVIDIA GPU with a recent driver
- Docker and NVIDIA Container Toolkit (required for GPU access inside the container)
Install Git and Git LFS:
sudo apt update
sudo apt install git git-lfs
git lfs installClone the repository:
cd data
git clone https://github.com/NVlabs/GR00T-WholeBodyControl.git
cd GR00T-WholeBodyControl/decoupled_wbc
cp -r ../../teleop/ control/main/teleop
We provide a Docker image with all dependencies pre-installed.
To mount the src/openpi directory into the Docker container, apply the following changes to decoupled_wbc/docker/run_docker.sh:
- After the
PROJECT_DIRvariable (~line 144), add:
# EgoHumanoid repository root (3 levels up from GR00T-WholeBodyControl)
REPO_ROOT_DIR="$(cd "$PROJECT_DIR/../../.." && pwd)"
OPENPI_DIR="$REPO_ROOT_DIR/src/openpi"- In the
DOCKER_RUN_ARGSvolume mount section (~line 412), add the following line after the$PROJECT_DIRmount:
-v $OPENPI_DIR:$DOCKER_HOME_DIR/Projects/openpiThis expects the following directory structure:
EgoHumanoid/
├── src/
│ └── openpi/ # Mounted to /root/Projects/openpi
├── data_collection/
│ └── robot_data/
│ └── GR00T-WholeBodyControl/
│ └── decoupled_wbc/
│ └── docker/
│ └── run_docker.sh
Make sure src/openpi is present under the EgoHumanoid repo root before starting the container.
Install a fresh image and start a container:
./docker/run_docker.sh --install --rootThis pulls the latest decoupled_wbc image from docker.io/nvgear.
Start or re-enter a container:
./docker/run_docker.sh --rootInside the container, both projects will be available under /root/Projects/:
/root/Projects/GR00T-WholeBodyControl/root/Projects/openpi
Use --root to run as the root user. To run as a normal user, build the image locally:
./docker/run_docker.sh --buildOnce inside the container, the control policies can be launched directly.
- Simulation:
python decoupled_wbc/control/main/teleop/run_g1_control_loop.py- Real robot: Ensure the host machine network is configured per the G1 SDK Development Guide and set a static IP at
192.168.123.222, subnet mask255.255.255.0:
python decoupled_wbc/control/main/teleop/run_g1_control_loop.py --interface realKeyboard shortcuts (terminal window):
]: Activate policyo: Deactivate policy9: Release / Hold the robotw/s: Move forward / backwarda/d: Strafe left / rightq/e: Rotate left / rightz: Zero navigation commands1/2: Raise / lower the base heightbackspace(viewer): Reset the robot in the visualizer
The teleoperation policy primarily uses Pico controllers for coordinated hand and body control. It also supports other teleoperation devices, including LeapMotion and HTC Vive with Nintendo Switch Joy-Con controllers.
Keep run_g1_control_loop.py running, and in another terminal run:
python decoupled_wbc/control/main/teleop/run_teleop_policy_loop.py --hand_control_device=pico --body_control_device=picoConfigure the teleop app on your Pico headset by following the XR Robotics guidelines.
The necessary PC software is pre-installed in the Docker container. Only the XRoboToolkit-PC-Service component is needed.
Prerequisites: Connect the Pico to the same network as the host computer.
Controller bindings:
menu + left trigger: Toggle lower-body policymenu + right trigger: Toggle upper-body policyLeft stick: X/Y translationRight stick: Yaw rotationL/R triggers: Control hand grippers
Pico unit test:
python decoupled_wbc/control/teleop/streamers/pico_streamer.pyRunning the G1 Control
python decoupled_wbc/control/main/teleop/run_g1_control_loop.py --interface real --control-frequency 50 --with_handsRunning the G1 Teleoperation
python decoupled_wbc/control/main/teleop/run_teleop_policy_loop.py --body-control-device pico --hand_control_device=pico --enable_real_deviceRunning the G1 Data Collection
Before this step,you need to install the zed python binding in this docker environment ZED SDK install guide
python decoupled_wbc/control/main/teleop/zed_mini_run_g1_data_exporter.py --dataset-name {my_task}_{my_dataset} --visualizeController bindings:
menu + left trigger: Toggle lower-body policymenu + right trigger: Toggle upper-body policyLeft stick: X/Y translationRight stick: Yaw rotationL/R triggers: Control hand grippersX/Y buttons: Control robot squareA/B buttons: Collect/Discard data