- Isaac Sim 4.5 / 5.0 / 5.1: Please switch to the IsaacSim5.1.0 branch.
- 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 | Notes |
|---|---|---|---|
| R1-A7-D | r1a7d |
Dex1 gripper / Dex2-5 | wheeled base, two-stage lift, waist, head |
| R1-7A | r17a |
Dex1 gripper / Dex2-5 / LinkerHand O6 (one left arm each) | fixed 7-DOF arm on the table top or on a column |
| G1-D | g1d |
Dex1 gripper / Dex3 | wheeled base, lift column, waist |
| G1 29-DoF | g129 |
Dex1 gripper / Dex3 | fixed base; Wholebody tasks can walk |
Task scenes (columns: tasks, rows: robots; — = not available). Tasks with Wholebody in their name support mobile manipulation (the G1 walks).
Task names (--task) and the matching arguments:
| Task | Robot | --robot_type |
Hand DDS |
|---|---|---|---|
Isaac-PickPlace-Cylinder-R1A7D-Dex1-Joint |
R1-A7-D · Dex1 | r1a7d |
--enable_dex1_dds |
Isaac-PickPlace-RedBlock-R1A7D-Dex1-Joint |
R1-A7-D · Dex1 | r1a7d |
--enable_dex1_dds |
Isaac-Stack-RgyBlock-R1A7D-Dex1-Joint |
R1-A7-D · Dex1 | r1a7d |
--enable_dex1_dds |
Isaac-Pick-Redblock-Into-Drawer-R1A7D-Dex1-Joint |
R1-A7-D · Dex1 | r1a7d |
--enable_dex1_dds |
Isaac-PickPlace-Cylinder-R1A7D-Dex2_5-Joint |
R1-A7-D · Dex2-5 | r1a7d |
— (lowcmd motors 31–34) |
Isaac-PickPlace-RedBlock-R1A7D-Dex2_5-Joint |
R1-A7-D · Dex2-5 | r1a7d |
— (lowcmd motors 31–34) |
Isaac-Stack-RgyBlock-R1A7D-Dex2_5-Joint |
R1-A7-D · Dex2-5 | r1a7d |
— (lowcmd motors 31–34) |
Isaac-Pick-Redblock-Into-Drawer-R1A7D-Dex2_5-Joint |
R1-A7-D · Dex2-5 | r1a7d |
— (lowcmd motors 31–34) |
Isaac-PickPlace-Cylinder-R17A-Dex1-Joint |
R1-7A · Dex1 | r17a |
--enable_dex1_dds |
Isaac-PickPlace-Cylinder-R17A-Dex2_5-Joint |
R1-7A · Dex2-5 | r17a |
— (lowcmd motors 31 / 32) |
Isaac-PickPlace-Cylinder-R17A-O6-Joint |
R1-7A · LinkerHand O6 | r17a |
--enable_linkerhand_dds |
Isaac-PickPlace-RedBlock-R17A-Dex1-Joint |
R1-7A · Dex1 | r17a |
--enable_dex1_dds |
Isaac-PickPlace-RedBlock-R17A-Dex2_5-Joint |
R1-7A · Dex2-5 | r17a |
— (lowcmd motors 31 / 32) |
Isaac-PickPlace-RedBlock-R17A-O6-Joint |
R1-7A · LinkerHand O6 | r17a |
--enable_linkerhand_dds |
Isaac-Stack-RgyBlock-R17A-Dex1-Joint |
R1-7A · Dex1 | r17a |
--enable_dex1_dds |
Isaac-Stack-RgyBlock-R17A-Dex2_5-Joint |
R1-7A · Dex2-5 | r17a |
— (lowcmd motors 31 / 32) |
Isaac-Stack-RgyBlock-R17A-O6-Joint |
R1-7A · LinkerHand O6 | r17a |
--enable_linkerhand_dds |
Isaac-PickPlace-Cylinder-G1D-Dex1-Joint |
G1-D · Dex1 | g1d |
--enable_dex1_dds |
Isaac-PickPlace-RedBlock-G1D-Dex1-Joint |
G1-D · Dex1 | g1d |
--enable_dex1_dds |
Isaac-Stack-RgyBlock-G1D-Dex1-Joint |
G1-D · Dex1 | g1d |
--enable_dex1_dds |
Isaac-Pick-Redblock-Into-Drawer-G1D-Dex1-Joint |
G1-D · Dex1 | g1d |
--enable_dex1_dds |
Isaac-PickPlace-Cylinder-G1D-Dex3-Joint |
G1-D · Dex3 | g1d |
--enable_dex3_dds |
Isaac-PickPlace-RedBlock-G1D-Dex3-Joint |
G1-D · Dex3 | g1d |
--enable_dex3_dds |
Isaac-Stack-RgyBlock-G1D-Dex3-Joint |
G1-D · Dex3 | g1d |
--enable_dex3_dds |
Isaac-Pick-Redblock-Into-Drawer-G1D-Dex3-Joint |
G1-D · Dex3 | g1d |
--enable_dex3_dds |
Isaac-PickPlace-Cylinder-G129-Dex1-Joint |
G1 29-DoF · Dex1 | g129 |
--enable_dex1_dds |
Isaac-PickPlace-RedBlock-G129-Dex1-Joint |
G1 29-DoF · Dex1 | g129 |
--enable_dex1_dds |
Isaac-Stack-RgyBlock-G129-Dex1-Joint |
G1 29-DoF · Dex1 | g129 |
--enable_dex1_dds |
Isaac-Pick-Redblock-Into-Drawer-G129-Dex1-Joint |
G1 29-DoF · Dex1 | g129 |
--enable_dex1_dds |
Isaac-Move-Cylinder-G129-Dex1-Wholebody |
G1 29-DoF · Dex1 | g129 |
--enable_dex1_dds |
Isaac-PickPlace-Cylinder-G129-Dex3-Joint |
G1 29-DoF · Dex3 | g129 |
--enable_dex3_dds |
Isaac-PickPlace-RedBlock-G129-Dex3-Joint |
G1 29-DoF · Dex3 | g129 |
--enable_dex3_dds |
Isaac-Stack-RgyBlock-G129-Dex3-Joint |
G1 29-DoF · Dex3 | g129 |
--enable_dex3_dds |
Isaac-Pick-Redblock-Into-Drawer-G129-Dex3-Joint |
G1 29-DoF · Dex3 | g129 |
--enable_dex3_dds |
Isaac-Move-Cylinder-G129-Dex3-Wholebody |
G1 29-DoF · Dex3 | g129 |
--enable_dex3_dds |
| 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 | 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 R1-7A robots are assembled from the single-arm URDFs in assets/urdf/r1_7a_description (robots/r17a_urdf.py).
# R1-A7-D + Dex1 gripper
python sim_main.py --device cpu --task Isaac-PickPlace-Cylinder-R1A7D-Dex1-Joint --enable_dex1_dds --robot_type r1a7d
# R1-A7-D + Dex2-5 (the hands are motors of rt/lowcmd: no hand DDS flag)
python sim_main.py --device cpu --task Isaac-PickPlace-Cylinder-R1A7D-Dex2_5-Joint --robot_type r1a7d
# R1-7A arm (one left arm): Dex1, Dex2-5, LinkerHand O6
python sim_main.py --device cpu --task Isaac-PickPlace-RedBlock-R17A-Dex1-Joint --enable_dex1_dds --robot_type r17a
python sim_main.py --device cpu --task Isaac-PickPlace-RedBlock-R17A-Dex2_5-Joint --robot_type r17a
python sim_main.py --device cpu --task Isaac-Stack-RgyBlock-R17A-O6-Joint --enable_linkerhand_dds --robot_type r17a
# mounting: -Table- (arm base on the table top) or -Column- (arm base on a column next to the table)
python sim_main.py --device cpu --task Isaac-PickPlace-Cylinder-R17A-Dex1-Column-Joint --enable_dex1_dds --robot_type r17a
# G1-D + Dex1 gripper
python sim_main.py --device cpu --task Isaac-PickPlace-Cylinder-G1D-Dex1-Joint --enable_dex1_dds --robot_type g1d
# G1-D + Dex3
python sim_main.py --device cpu --task Isaac-PickPlace-Cylinder-G1D-Dex3-Joint --enable_dex3_dds --robot_type g1d
# G1 29-DoF + Dex1 gripper
python sim_main.py --device cpu --task Isaac-PickPlace-Cylinder-G129-Dex1-Joint --enable_dex1_dds --robot_type g129
# G1 29-DoF + Dex3
python sim_main.py --device cpu --task Isaac-PickPlace-Cylinder-G129-Dex3-Joint --enable_dex3_dds --robot_type g129
# G1 Wholebody (walking)
python sim_main.py --device cpu --task Isaac-Move-Cylinder-G129-Dex1-Wholebody --enable_dex1_dds --robot_type g129Main arguments:
--task: task name (see the table above).--robot_type:g129|h1_2|g1d|r1a7d|r17a. Selects the body DDS and the action mapping; it must match the robot of the task.--enable_dex1_dds/--enable_dex3_dds/--enable_inspire_dds: enable DDS for the Dex1 gripper / Dex3 hand / Inspire hand (only one at a time).--enable_linkerhand_dds: enable DDS for the LinkerHand O6 (rt/linkerhand/*, R1-7A O6 tasks).--enable_wholebody_dds: enable the locomotion commands (switched on automatically forWholebodytasks).--camera_calib <file>: camera calibration file (see 2.6). Default:$UNITREE_CAMERA_CALIBorrobots/uniclib_calibration.json.--camera_include/--camera_exclude: comma-separated camera names to enable / disable (default: head stereo pair + both wrist cameras).--no_render: run without the Sim window and enable the WebRTC livestream (use this inside Docker / on a headless server); view it with the Isaac Sim WebRTC Streaming Client.--device cpu: run physics on the CPU (recommended for the teleoperation tasks).--render_fps(default 30): rendering rate of the cameras and the viewport, in simulation time; the control loop keeps running at--step_hz. Higher = smoother images, slower simulation.--render_sync: wait for the GPU at every render (exactly synchronous images, slower). By default an image may be one render old.--image_server_in_process: run the image server in the simulator process (old behaviour; by default it runs in its own process).--view_camera(auto|world|follow|none): viewport camera at start-up.world= fixed overview camera/World/PerspectiveCamera,follow= chase camera behind the robot/World/FollowCamera(follows position and heading),auto=followfor mobile robots (G1-D, R1-A7-D,Wholebodytasks), elseworld. Both can be selected any time in the viewport camera menu; they are plain USD cameras and cost nothing while not viewed.
DDS topics per robot (domain 1):
| Robot | Body | End effector | Base / lift |
|---|---|---|---|
| G1 / H1-2 | rt/lowcmd, rt/lowstate (unitree_hg) |
rt/dex1/{left,right}/*, rt/dex3/{left,right}/*, rt/inspire/* |
Wholebody: rt/run_command/cmd (see send_commands_keyboard.py, send_commands_8bit.py) |
| G1-D | rt/lowcmd, rt/lowstate (waist yaw 12, arms 15–28; waist pitch: rt/waistpitchcmd → rt/waistpitchstate, also lowstate 13/14, lowcmd 13 when enabled) |
Dex1: lowcmd/lowstate 31 (left) / 33 (right), or rt/dex1/{left,right}/*; Dex3: rt/dex3/{left,right}/* |
rt/cmd_vel_no_limit, rt/cmd_hispeed → rt/hispeed_state, rt/slamware_ros_sdk_server_node/odom |
| R1-A7-D | rt/lowcmd, rt/lowstate (column 12, waist 13, arms 15–28, head 29/30) |
Dex1: lowcmd/lowstate 31 (left) / 33 (right), or rt/dex1/{left,right}/*; Dex2-5: lowcmd/lowstate 31 / 32 (left fingers, thumb), 33 / 34 (right fingers, thumb), torque only |
rt/cmd_vel (normalized) → rt/state_vel, rt/height_state, rt/height_alarm |
G1-D / R1-A7-D follow the real robots' unirobot layout: the Dex1 grippers are lowcmd motors 31 / 33 ("internal" wiring, motor q 0 closed … 5.4 open, used when the slot has mode 1 and kp > 0; they then take precedence over rt/dex1/*), and the G1-D waist pitch is commanded on rt/waistpitchcmd (unitree_hg MotorCmd_). Until rt/waistpitchcmd is received, lowcmd motor 13 drives the waist pitch only if its mode is 1. The lowstate lists both gripper motors and the waist pitch on 13 and 14.
The Dex2-5 tendon hands (R1-A7-D) are controlled like on the real robot (unirobot r1_a7_d/dex2_5, "internal" wiring): each hand has two torque-only motors, four fingers and thumb, on lowcmd motors 31 / 32 (left) and 33 / 34 (right). A slot is used when its mode is 1; only tau is read (limited to ±0.3 Nm, positive closes, negative opens; q, kp, kd are ignored). Zero torque does not open the hand: fingers that are stopped by an object keep pressing on it (the transmission is simulated as not back-drivable, DEX2_5_HOLD_GRIP in robots/dex2_5_hand.py), so a grasped object stays in the hand until an opening torque is sent; fingers that are still moving stop where they are. The lowstate reports the four motors on the same slots; like on the real hand q / dq are not finger angles (simulated: mean flexion of the motor's joints in rad, 0 = open). The real tendon transmission is not published, so the motor-to-joint torque gains and the joint damping of the simulated hand are assumptions (robots/dex2_5_hand.py). No wrist cameras are created for this hand unless the calibration file has a hand-eye result for r1_d_with_dex2_5.
R1-7A (fixed-base 7-DOF arm; no real-robot DDS interface exists yet, the simulated one follows the robots above): each robot is one left arm, its joints J1..J7 are lowcmd/lowstate motors 0–6. The Dex1 gripper is lowcmd/lowstate 31 or rt/dex1/left/* (as the R1-A7-D left gripper), the Dex2-5 hand is the torque motors 31 / 32 (as the R1-A7-D left hand). The LinkerHand O6 has the topics rt/linkerhand/{left,right}/cmd / state (unitree_go MotorCmds_ / MotorStates_, 6 motors in the LinkerHand SDK order thumb flex, thumb abduction, index, middle, ring, pinky; q = raw angle 0–255, 255 = open; the distal finger joints follow by the URDF coupling). The joint drives of the hands are assumptions (robots/linkerhand_o6.py); the O6 hand comes from R1_7a_linkerhandO6_left.urdf. Mounting: the arm base stands either flush on the table top at the robot-side edge ("table") or on a column on the floor right in front of the table edge, 0.15 m above the table top ("column"). Every R1-7A task can use both: add -Table- or -Column- before -Joint (e.g. Isaac-PickPlace-Cylinder-R17A-Dex1-Column-Joint); the plain task ids keep their default (cylinder / red block: table, stacking: column). See tasks/r17a_tasks/r17a_env_cfg.py and tasks/common_config/r17a_robot_configs.py.
The R1-A7-D speed gear can be set with the environment variable UNITREE_R1A7D_GEAR=low|mid|high (default low).
Base / lift response: the commanded base velocity reaches the simulated base the way it does on the real robot — after a dead time, limited in acceleration / deceleration and through a short first-order lag — and the published base state (odometry, lift) lags the motion like the real one. The parameters are kept per robot in robots/sysid/ (g1d.py, r1a7d.py; the model is action_provider/base_response.py). The G1-D values are identified on the real robot (forward: 0.14 s dead time, 0.35 m/s² acceleration, 1.2 m/s² deceleration; yaw: 0.10 s, 1.8 / 4.0 rad/s²; odometry 0.105 s behind, 20 Hz; lift 0.077 m/s, rt/hispeed_state.z normalised to [-1, 1] like the real robot). The R1-A7-D still uses the nominal values of its twist module (identified=False). To add another robot, write robots/sysid/<robot>.py and set SYSID in its action provider.
The simulator publishes its camera images through the image server teleimager (git submodule teleimager/, branch sim; simulator config teleimager_server_isaacsim.yaml bundled in the package, override with $TELEIMAGER_CONFIG), the same interface as the real robot's image server, so xr_teleoperate can connect directly (set the image server IP in xr_teleoperate to the machine running the simulation).
| Camera | ZMQ | WebRTC (https) |
|---|---|---|
| head (stereo, 1280×480 side by side) | 55555 | 60001 |
| left wrist | 55556 | 60002 |
| right wrist | 55557 | 60003 |
- The head is a stereo camera. Intrinsics, distortion, stereo extrinsics and the wrist hand-eye poses are read from the calibration file (
--camera_calib, format ofrobots/uniclib_calibration.json). Values that are missing or don't belong to the simulated robot fall back to the camera mounts of the robot's URDF / USD. - The image server stops at startup with an error if one of its ports is already in use. Ports in the ephemeral range can be taken by other programs; reserve them with
sudo sysctl -w net.ipv4.ip_local_reserved_ports=55555-55557,60001-60003(add it to/etc/sysctl.confto keep it). - The WebRTC pages use the self-signed certificate in
~/.config/teleimager/(created byauto_setup_env.sh; if missing, the one in~/.config/xr_teleoperate/is used); accept it in the browser the first time.
To try a robot without an XR device, start the simulation (2.5) and then run in another terminal of the same environment:
python tools/g1_keyboard_teleop.py --hand dex1 # G1: arms + hands (dex1 / dex3 / inspire)
python tools/g1d_keyboard_teleop.py # G1-D: base, lift, waist, arms, grippers
python tools/r1a7d_keyboard_teleop.py # R1-A7-D: base, lift, waist, head, arms, Dex1 grippers / Dex2-5 hands
python tools/r17a_keyboard_teleop.py # R1-7A: arm and Dex1 / Dex2-5 / O6 (detected from the task)r1a7d_keyboard_teleop.py detects the end effector from the running task (rt/sim_state); --hand dex1 / --hand dex2_5 selects it by hand. With Dex2-5 hands Z / X and C / V apply a closing / opening torque while held; after Z / C is released the hand keeps holding the object, X / V opens it.
The simulated Dex2-5 hands have a headless test (no DDS, about 3 minutes; TEST ok / FAIL lines, exit code 0 if all passed): torque control, the lowstate values of motors 31–34, grasping the cylinder with each hand and holding it after the torque is released, environment reset.
python tools/dex2_5_test.py --device cpu --viz noneThe R1-7A robots have one as well (about 5 minutes for the three robots): the arm follows lowcmd motors 0–6, the Dex1 / Dex2-5 / O6 commands and the lowstate / hand state values.
python tools/r17a_test.py --device cpu --viz noneThe keyboard scripts publish the same DDS topics as xr_teleoperate. The hands are moved in Cartesian space (inverse kinematics in tools/arm_ik.py):
| Keys | Action |
|---|---|
| I / K, J / L, U / O | hand forward / back, left / right, up / down |
| [ / ], ; / ', , / . | roll, pitch, yaw |
| TAB | switch hand: left / right / both (mirrored) |
| P | back to the start pose |
| Z / X, C / V | left / right gripper close / open |
| W / S, A / D | base forward / back, turn (G1-D, R1-A7-D) |
| R / F, SPACE | lift up / down, stop base and lift (G1-D, R1-A7-D) |
| T / G, Y / H | G1-D: waist pitch / yaw; R1-A7-D: head pitch / yaw |
| Q / E | R1-A7-D: waist yaw |
| ESC | quit |
python sim_main.py --device cpu --task Isaac-Stack-RgyBlock-G129-Dex1-Joint --enable_dex1_dds --robot_type g129 \
--replay_data --file_path "/path/to/xr_teleoperate/teleop/utils/data"--replay_data: replay a recorded dataset.--file_path: dataset directory (format recorded by xr_teleoperate).
Task-discrete rewards can be read with get_step_reward_value.
During replay, lighting and camera parameters can be changed and images re-captured, to generate more diverse visual data for augmentation.
python sim_main.py --device cpu --task Isaac-Stack-RgyBlock-G129-Dex1-Joint --enable_dex1_dds --robot_type g129 \
--replay_data --file_path "/path/to/xr_teleoperate/teleop/utils/data" --generate_data --generate_data_dir "./data2"--generate_data: generate new data;--generate_data_dir: output directory.--rerun_log: log with rerun during generation.--modify_light/--modify_camera: modify the lighting / camera parameters (adjustupdate_light/batch_augment_cameras_by_nameinsim_main.py).
Tune and test these parameters carefully before generating data at scale.
unitree_sim_isaaclab/
├── action_provider [action sources: DDS (G1/H1-2, Wholebody, G1-D, R1-A7-D), file replay, policy]
├── dds [DDS communication: robot body, Dex1 / Dex3 / Inspire, G1-D / R1-A7-D base & lift, rewards, reset]
├── layeredcontrol [low-level control: applies actions to the environment]
├── robots
│ ├── robot_assets.py [load robots from USD or URDF (URDF -> USD conversion, link colors, link prim paths)]
│ ├── unitree.py [G1 / H1-2 configurations]
│ ├── unitree_g1d.py [G1-D configuration]
│ ├── unitree_r1a7d.py [R1-A7-D configuration (Dex1 / Dex2-5)]
│ ├── dex2_5_hand.py [Dex2-5 tendon hand: joints, motor slots, simulated transmission]
│ ├── unitree_r17a.py [R1-7A arm robots (Dex1 / Dex2-5 / O6)]
│ ├── r17a_urdf.py [assembles the R1-7A robot URDFs, arm poses]
│ ├── linkerhand_o6.py [LinkerHand O6: joints, couplings, raw angle mapping]
│ └── uniclib_calibration.json [default camera calibration]
├── tasks
│ ├── common_config [robot / camera presets, camera calibration loading, environment base config]
│ ├── common_event [event management]
│ ├── common_observations [robot / hand / gripper / camera state -> DDS & shared memory]
│ ├── common_rewards
│ ├── common_scene [shared scenes (everything except the robot)]
│ ├── common_termination [object out of range / reset conditions]
│ ├── g1_tasks [G1 tasks]
│ ├── h1-2_tasks [H1-2 tasks]
│ ├── g1d_tasks [G1-D tasks]
│ ├── r1a7d_tasks [R1-A7-D tasks]
│ ├── r17a_tasks [R1-7A arm tasks]
│ └── utils
├── teleimager [image server (ZMQ + WebRTC), git submodule, branch sim]
├── tools [keyboard test scripts, arm IK, data conversion, USD tools]
├── auto_setup_env.sh [environment setup]
├── fetch_assets.sh [asset download]
└── sim_main.py [entry point]
To build a new task with an existing robot configuration:
Add the scene (everything except the robot) in tasks/common_scene, following the existing files.
Add the conditions in tasks/common_termination.
Create a task directory below tasks/<robot>_tasks/, following an existing task, e.g. pick_place_cylinder_g1_29dof_dex1:
mdp/observations.py: import the observation functions you need
from tasks.common_observations.g1_29dof_state import get_robot_boy_joint_states
from tasks.common_observations.gripper_state import get_robot_gipper_joint_states
from tasks.common_observations.camera_state import get_camera_image
__all__ = ["get_robot_boy_joint_states", "get_robot_gipper_joint_states", "get_camera_image"]mdp/terminations.py: import the conditions fromcommon_termination
from tasks.common_termination.base_termination_pick_place_cylinder import reset_object_estimate
__all__ = ["reset_object_estimate"]__init__.py: register the task name
import gymnasium as gym
from . import pickplace_cylinder_g1_29dof_dex1_joint_env_cfg
gym.register(
id="Isaac-PickPlace-Cylinder-G129-Dex1-Joint",
entry_point="isaaclab.envs:ManagerBasedRLEnv",
kwargs={"env_cfg_entry_point": pickplace_cylinder_g1_29dof_dex1_joint_env_cfg.PickPlaceG129DEX1BaseFixEnvCfg},
disable_env_checker=True,
)- The environment configuration (e.g.
pickplace_cylinder_g1_29dof_dex1_joint_env_cfg.py): import the common scene, set the robot pose and add the cameras. Derive it fromtasks.common_config.env_configs.UnitreeManagerBasedRLEnvCfg. With Isaac Lab 3.0, quaternions are written in (x, y, z, w) order. - Import the new task module in
tasks/<robot>_tasks/__init__.py.
- ⬜ 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:


































