- The main branch currently supports only Isaac Sim 6.2 and Isaac Lab 3.0. If you are using Isaac Sim 4.5 / 5.0 / 5.1, please switch to the
IsaacSim5.1.0branch. - Requirements: For the minimum installation requirements of Isaac Sim, please refer to the official documentation .
- The first startup takes a while: Isaac Sim loads and caches its extensions and shaders, and robots given as URDF are converted to USD (cached afterwards).
- The simulator sends and receives the same DDS topics as the real robot (DDS domain 1). If a real robot is running on the same network, make sure you can tell them apart. For DDS usage see G1 control and Dex3 control.
- The weight files provided in this project are only for testing in simulation.
This project is built on Isaac Lab to provide a multi-task simulation platform for Unitree robots, supporting data collection, replay, generation, and model validation. It can be integrated with xr_teleoperate for teleoperation-based data collection. The project adopts the same DDS communication mechanism as real robots to improve code reusability and ease of use, while providing simulation environments, data interfaces, and experimental validation capabilities for intelligent systems such as Agent, and RSI (Recursive Self-Improvement).
Supported robots:
| Robot | --robot_type |
End effectors (hand DDS flag) | Notes |
|---|---|---|---|
| H2-D | h2d |
Dex1 gripper, wired externally (--enable_dex1_dds) |
wheeled base, lift, waist pitch, head |
| R1-A7-D | r1a7d |
Dex1 gripper (--enable_dex1_dds) / Dex2-5 (none: rt/lowcmd motors 31–34) |
wheeled base, two-stage lift, waist, head |
| R1-7A | r17a |
Dex1 gripper (--enable_dex1_dds) / Dex2-5 (none: rt/lowcmd motors 31 / 32) / LinkerHand O6 (--enable_linkerhand_dds), one left arm each |
fixed 7-DOF arm on the table top or on a column |
| G1-D | g1d |
Dex1 gripper (--enable_dex1_dds) / Dex3 (--enable_dex3_dds) |
wheeled base, lift column, waist |
| G1 29-DoF | g129 |
Dex1 gripper (--enable_dex1_dds) / Dex3 (--enable_dex3_dds) |
fixed base; Wholebody tasks can walk |
The task naming convention is Isaac-<Scene>-<Robot>-<EndEffector>[-Table|-Column]-Joint|Wholebody, where Wholebody refers to mobile manipulation (walking for G1). Currently, the available tasks cover home, supermarket, and factory environments. The Sim Launcher lists every registered task with a preview image and derives --robot_type and the hand DDS flag from the task; for the command line see Command line, DDS and data.
| Component | Version |
|---|---|
| Isaac Sim | 6.2.0 (isaacsim[all,extscache]==6.2.0.0) |
| Isaac Lab | 3.0.0 (tag v3.0.0) |
| Python | 3.12 |
| PyTorch | 2.11.0 / torchvision 0.26.0 (CUDA 13.0, cu130) |
| CycloneDDS | releases/0.10.x |
| teleimager (image server) | git submodule teleimager/, branch sim |
The image server teleimager is a git submodule, so clone with --recurse-submodules:
git clone --recurse-submodules https://github.com/unitreerobotics/unitree_sim_isaaclab.git
# already cloned without it:
cd unitree_sim_isaaclab && git submodule update --init --recursiveAfter pulling a newer version of this repository, also update the submodule (and reinstall it if its dependencies changed):
git pull
git submodule update --init --recursive
pip install -e "./teleimager[server]"To follow the latest commit of teleimager's sim branch instead of the pinned one: git submodule update --remote teleimager.
cd unitree_sim_isaaclab
bash auto_setup_env.sh unitree_sim_env --robot g1d # robot type required: g129 | h1_2 | g1d | r1a7d | h2d | all (comma list)
# optional last argument: PyTorch CUDA tag, default cu130
conda activate unitree_sim_envThe script initializes the teleimager submodule, clones IsaacLab (v3.0.0), cyclonedds and unitree_sdk2_python next to this repository, creates the conda environment, installs everything listed below (including teleimager[server]), generates the image server certificates and downloads the assets.
See Isaac Sim 6.2.0 / Isaac Lab 3.0.0 installation steps.
cd unitree_sim_isaaclab
git submodule update --init --recursive # the image is built from this checkout, incl. teleimager
bash fetch_assets.sh # assets are mounted, not built into the image
sudo docker build -t unitree-sim:latest -f Dockerfile .
# behind a proxy: --build-arg http_proxy=http://127.0.0.1:7890 --build-arg https_proxy=http://127.0.0.1:7890The image (base nvidia/cuda:13.0.0-runtime-ubuntu22.04) contains Isaac Sim 6.2.0, Isaac Lab 3.0.0, CycloneDDS, unitree_sdk2_python and the source of this repository. The host needs an NVIDIA driver ≥ 580.65.06 and the NVIDIA Container Toolkit.
xhost +local:docker
sudo docker run --gpus all -it --rm --network host \
-e NVIDIA_VISIBLE_DEVICES=all -e NVIDIA_DRIVER_CAPABILITIES=all \
-e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:rw \
-v /etc/vulkan/icd.d:/etc/vulkan/icd.d:ro -v /usr/share/vulkan/icd.d:/usr/share/vulkan/icd.d:ro \
-v $(pwd)/assets:/home/code/unitree_sim_isaaclab/assets \
unitree-sim:latest
# inside the container (add --no_render on a headless server):
python sim_main.py --device cpu --task Isaac-PickPlace-Cylinder-G129-Dex1-Joint --enable_dex1_dds --robot_type g129--network host lets the DDS topics and the image server ports reach the host network.
Assets are downloaded file by file from the assets/ folder of the HuggingFace dataset unitreerobotics/unitree_sim_isaaclab_usds into ./assets (also done by auto_setup_env.sh; scenes, G1 / H1-2 USDs and the G1-D / R1-A7-D URDFs):
bash fetch_assets.sh # all assets
bash fetch_assets.sh --robot g1d,r1a7d # only the assets of these robots' tasks (what auto_setup_env.sh does)
bash fetch_assets.sh robots/g1-29dof-dex1-base-fix-usd urdf # only these folders (paths below assets/)Re-running only fetches missing or updated files; local files that are not in the dataset (e.g. assets/robots/.urdf_cache, your own scenes) are kept. Use HF_ENDPOINT=https://hf-mirror.com for a mirror.
Upload (token with write access to the unitreerobotics organization; only new / modified files are sent, local caches are skipped): HF_TOKEN=hf_xxx bash upload_assets.sh [scenes/kitchen ...].
Robots may be given either as USD or as URDF (robots/robot_assets.py): a URDF is converted to USD on first use and cached in assets/robots/.urdf_cache/. G1-D and R1-A7-D are loaded from
assets/urdf/g1_d_description/g1_d_with_dex1_1.urdf (G1-D Dex3: g1_d_dex3_1.urdf in the same folder) and assets/urdf/r1_d_description/r1_d_with_dex1_1.urdf (R1-A7-D Dex2-5: r1_d_with_dex2_5.urdf in the same folder). The H2-D is loaded from assets/urdf/h2d_description/h2d.urdf: its joint model (axes, limits, origins) is the hardware-validated H2-D model of the real-robot control stack, so the joint positions of rt/lowcmd / rt/lowstate are the model's joint positions 1:1 (only the waist pitch differs, see Command line, DDS and data). The R1-7A robots are assembled from the single-arm URDFs in assets/urdf/r1_7a_description (robots/r17a_urdf.py).
A local web tool that puts the everyday work of this project on one page: launch the simulation, create tasks, calibrate against the real robot, connect agents.
conda activate unitree_sim_env
python launcher.py # opens http://127.0.0.1:8090
python launcher.py --port 8091 --no-browser
python launcher.py --host 0.0.0.0 # reachable from other computers (prints a URL with an access token)It only needs packages that are already in the simulation environment (aiohttp, cyclonedds, unitree_sdk2py, numpy, pxr); the page needs no internet access. Stopping the launcher (Ctrl+C) also stops the simulation it started. The 中文 | EN switch at the top left changes the UI language (including messages from the back end); the choice is remembered.
User guide for each feature:
| Feature | What it does | Guide |
|---|---|---|
| Launch sim | Filter tasks by robot / end effector / scene and launch them; --robot_type and the hand DDS flag are derived from the task; launch options as controls, live command, start-up progress, log and camera images; handles simulations that are already running and ports in use |
Launch sim |
| Sim control API | Pause / resume, stepped mode, seeded reset, synchronous joint / object / reward state; control bar of the run panel, Python SDK, error codes | Sim control API |
| Create task | Scene USD + robots / end effectors → tasks ready to launch (UI of tools/create_usd_task.py); lighting, scene physics check and automatic repair, asset packaging, network sub-assets |
Create task |
| Robot pose picker | Choose a suggested placement on the scene's top view or place the robot by hand, with live collision checks | Robot pose picker |
| Real-robot calibration | Arm excitation on the real robot (safety checklist, e-stop) → automatic recording → identification of joint latency / armature / friction / bias written to robots/sysid/<robot>.py → verification by replaying in the sim |
Real-robot calibration |
| Agent | Let agents such as Claude Code / Codex drive the simulation through MCP (launcher/mcp_server.py) or the HTTP API; getting started, tool sequence, real-robot permissions, tool console |
Agent |
Joint commands are sent to the real robot only by the arm excitation (after a full safety checklist and confirmation); no other feature ever sends joint commands to the real robot. Agents may drive the real robot's base only after it is allowed on the Agent page.
Launcher code structure
| File | Role |
|---|---|
launcher.py |
Entry point |
launcher/server.py |
HTTP server and API |
launcher/catalog.py |
Task catalog: robot / end-effector detection (registry metadata → task name + sim_main.py arguments → manual choice) and the sim_main.py command |
launcher/task_registry.py, launcher/registry_dump.py |
Reads the project's gym registry (import tasks in the background, cached) |
launcher/robot_profiles.py |
Robots / end effectors: launch flags, DDS topics, motor names, base encoding |
launcher/sim.py, launcher/jobs.py, launcher/ports.py |
Simulation and background job processes (logs, process-group stop), port checks |
launcher/task_builder.py |
Task creation (runs tools/create_usd_task.py), scene top view and suggested placements (runs tools/usd_task/topview.py, cached in data/launcher/topview/), file browser |
launcher/dds_worker.py, launcher/dds_link.py |
The single DDS process (domain 1 sim and domain 0 real robot at once: monitoring, recording, replay, excitation, e-stop) and its management |
launcher/arm_excite.py, launcher/arm_fit.py, launcher/calib.py |
Arm excitation planning, joint identification, calibration analysis and sysid write-back |
launcher/agent_tools.py, launcher/mcp_server.py |
Agent tools and MCP server |
launcher/client.py |
Python SDK (standard library only) |
launcher/errors.py |
Common error codes |
launcher/sim_api_client.py, sim_api/server.py |
Client and in-simulator server of the sim control API (sim_main.py --sim_api) |
launcher/web/ |
Web UI (i18n.js: Chinese / English switch) |
DDS runs in its own subprocess because a CycloneDDS domain cannot be re-created inside one process (switching robot / network interface restarts that process), and so that DDS failures do not affect the UI.
The Sim Launcher covers the everyday work. For running sim_main.py directly and for development:
| Guide | Content |
|---|---|
| Command line, DDS and data | sim_main.py commands and arguments, DDS topics of each robot, cameras and image server ports, keyboard test scripts, data replay and data generation |
| Camera intrinsics and extrinsics | Calibrating the real robot's cameras with uni_calib; format of the calibration file, how to choose it, which entries each robot uses, fallbacks |
| Task development | Code structure, steps to add and register a new task by hand |
| Isaac Sim 6.2 / Isaac Lab 3.0 installation | Manual installation steps |
- ⬜ Optimized the MCP service and added skills for task execution.
- ⬜ Continue adding new task scenes
- ⬜ Continue code optimization
This code builds upon following open-source code-bases. Please visit the URLs to see the respective LICENSES:
