unitreerobotics/xr_teleoperate

This repository implements teleoperation of the Unitree humanoid robot using XR Devices.

What it solves

Controlling a humanoid robot by programming every joint angle is slow and unnatural. This project lets you control a Unitree humanoid robot by simply moving your own hands and arms while wearing an XR headset (Apple Vision Pro, PICO 4 Ultra, or Meta Quest 3). The robot mimics your motions in real time, and you see through the robot's own camera. It also solves the data-collection problem for imitation learning: you can record your demonstrations and save them for training robot policies.

How it works

You wear an XR headset and connect it over Wi-Fi to a host computer running the teleoperation software. The system tracks your hand (or controller) movements and translates them into joint commands for the robot's arm and hand. Meanwhile, the robot's head camera streams a first-person view back to your headset, so you feel like you are inside the robot. Communication uses WebRTC/WebSocket for the video and control link, and the Unitree SDK for talking to the robot itself. The software runs on Ubuntu (20.04/22.04) and supports both a physical robot and a simulated one (via the unitree_sim_isaaclab simulator). You launch it with command-line flags to choose the robot model, end-effector, input mode (hand or controller), display mode, and whether to record data.

Who it's for

Researchers, developers, and robotics engineers working with Unitree humanoid robots — especially those doing imitation learning or robot learning from demonstration. It is also useful for anyone who wants to teleoperate a Unitree robot for inspection, manipulation, or data collection without writing low-level control code.

Highlights

  • Supports multiple Unitree robots: G1 (23 and 29 DoF), H1, H1_2, H2, and R1 (5- and 7-DoF arms)
  • Works with several end-effectors: Dex1-1 gripper, Dex3-1 dexterous hand, Inspire dexterous hand, and BrainCo dexterous hand
  • Compatible with Apple Vision Pro, PICO 4 Ultra Enterprise, and Meta Quest 3 headsets
  • Two input modes: hand tracking or controller tracking
  • Three display modes: immersive, ego (pass-through with a small first-person window), and pass-through only
  • Simulation support via Isaac Lab, so you can develop without physical hardware
  • Data recording mode that saves demonstration episodes (with task metadata) for use with the unitree_IL_lerobot imitation-learning pipeline
  • Headless mode for running on compute units without a display, and IPC mode for integration with agent programs
  • Motion control mode that lets the teleoperation program run alongside the robot's own motion control (e.g., walking with the R3 controller or joysticks)

summary

xr_teleoperate lets you control Unitree humanoid robots (G1, H1, H1_2, H2, R1) in real time using XR headsets like Apple Vision Pro, PICO, or Meta Quest 3, with support for simulation, data recording for imitation learning, and multiple dexterous hand end-effectors.

headline

A real-time teleoperation system that lets you control Unitree humanoid robots with XR headsets and record demonstrations for imitation learning

tags

["robotics", "data"]

Related

  • Project
  • Project
  • Project
  • Project