Skip to content
ARISE-InitiativePublic

About

Simulation infrastructure for large-scale data generation, policy evaluation, and sim-to-real robot learning.

Resources

Stars

114 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Python 3.12 Isaac Lab 3.0.0 Isaac Sim 6.2 LeRobot dataset v2.0 MIT License

This repository is a simulation infrastructure for data collection, data generation, large-scale parallel evaluation, and sim-to-real transfer. It uses YAM by default and supports adding new robots.

Data Released: 400 hours of synthetically generated data and 1,200 objects across three bimanual manipulation tasks. See Data & Downloads.

  • 🎮 Record bimanual demonstrations by teleoperating the arms with JoyLo or YAM Leader.

    An operator moves the JoyLo leader arms while watching the simulated YAM workstation

  • ♾️ Use MimicGen to generate trajectories from a few labeled demonstrations, with different object poses in each episode.

    Generated bimanual pot pickup and placement, first starting pose Generated pot pickup and placement, second starting pose Generated pot pickup and placement, third starting pose

  • 🎨 Use domain randomization to vary material textures and HDRI lighting for sim-to-real transfer.

    Pot rollout under warm lighting Pot rollout with a different pot and worktop finish Pot rollout with another combination of materials and lighting

  • ⚡ Evaluate policies in parallel. With high-quality OVRTX rendering and three 320 × 240 RGB cameras per environment, the pot task reached 1,679 environment steps/s across 256 environments on one NVIDIA RTX 5090. Benchmark settings and policy evaluation

    Animated 64-environment pot task rollout; click to watch the full-resolution video

  • 🤖 Zero-shot sim-to-real deployment. Each video shows one policy trained for that task in simulation and deployed on the real YAM arms with five different objects. Click a preview to watch all five trials, including the object swaps.

    YAM arms place a pot on a cooktop YAM arms hang a mug on a mug tree YAM arms put a charger in a drawer

Projects Using SimScale

Contents

1. Installation
2. Data & Downloads
3. Asset Organization
4. Pipeline & Usage
 4.1 Teleoperation in Simulation
 4.2 Replay Recorded States to Collect Observations
 4.3 Annotate Demos for Data Generation
 4.4 Synthetic Data Generation
 4.5 Evaluation: Policy Protocol and Throughput Benchmark
5. Tasks
 5.1 PutPotOnCooktop
 5.2 HangMugOnTree
 5.3 PutChargerInDrawer
6. Robot Dynamics Alignment
 6.1 Tune and Inspect Gravity Compensation
 6.2 Align Simulation kp/kd to the Real Arm
7. How-To Guide
 7.1 Changing Parameters
  7.1.1 Overview
  7.1.2 Common Parameters
   7.1.2.1 Simulation Rate and Episode Length
   7.1.2.2 Parallel Envs and Device
   7.1.2.3 Camera Pose and Intrinsics
   7.1.2.4 Add a Camera
   7.1.2.5 Rename a Saved Dataset Key
   7.1.2.6 Which Arm Grasps Which Object
   7.1.2.7 Object Spawn Randomization
   7.1.2.8 Render and Recorded Resolution
   7.1.2.9 Recorded-Frame Trimming
   7.1.2.10 Controller Gains and Grasp Thresholds
   7.1.2.11 Domain Randomization
   7.1.2.12 Controller Gain Randomization
 7.2 Defining a New Task
 7.3 Adding a New Embodiment (Robot)
 7.4 Assisted Grasping
8. Repository Structure
 8.1 Directory Layout
 8.2 Environment and Robot Architecture
9. Acknowledgments
10. Citation
11. Contact

1. Installation

Use uv 0.12.21 or newer to install the project from the repository root.

uv sync --locked

If setup or the first follower launch on Ubuntu cannot find CMake or a C++ compiler, install the build tools below and retry.

sudo apt update
sudo apt install -y cmake build-essential

2. Data & Downloads

Released trajectories were generated with Isaac Lab 2. This code uses Isaac Lab 3, so replayed motion may differ.

Use the helper script to download the full dataset, one task, or just the files you need. By default it saves everything under ./simscale_datasets/. SimScale datasets on Hugging Face

uv run scripts/download_data.py --all                                  # whole dataset
uv run scripts/download_data.py --domain_randomization                 # HDRIs and materials
uv run scripts/download_data.py --task PutPotOnCooktop                  # all pot data
uv run scripts/download_data.py --task PutPotOnCooktop --parts lerobot  # generated pot trajectories
uv run scripts/download_data.py --task PutPotOnCooktop --parts objects  # ./simscale_datasets/tasks_data/PutPotOnCooktop/<source>/objects/
uv run scripts/download_data.py --task PutPotOnCooktop --task HangMugOnTree \
    --parts teleop,annotated,objects  # demos, annotations, and objects for both tasks

--parts accepts any comma-separated combination of objects, teleop, annotated, and lerobot. Omit it for all four. Both source collections are included by default. Add --source human_source or --source simscale_source to choose one.

You can also use the Hugging Face CLI directly. This downloads the generated pot trajectories from both source collections.

uv run hf download simscale-agentic/simscale-datasets --repo-type dataset --local-dir ./simscale_datasets \
    --include "tasks_data/PutPotOnCooktop/*/lerobot_mimic_domain_randomization/**"
simscale-agentic/simscale-datasets/
├── HDRIs/indoor/{train,eval}/
├── materials/{train,eval}/<category>/
└── tasks_data/<task>/<source>/              # human_source or simscale_source
    ├── objects/<category>/<instance>/       # root USD, configuration layers, asset_size.json
    ├── teleop/                              # source demonstrations (HDF5)
    ├── annotated/                           # demonstrations with per-arm subtask labels
    └── lerobot_mimic_domain_randomization/  # generated LeRobot shards (Parquet + video)
Path What it is Used by
HDRIs/indoor/{train,eval}/ HDR environment maps for scene lighting --hdris_path for replay, generation, and throughput benchmarks. Use --hdris-path for policy evaluation.
materials/{train,eval}/ MDL materials and their textures --materials_path for replay, generation, and throughput benchmarks. Use --materials-path for policy evaluation.
objects/ USD object instances and their dimensions, grouped by category --asset NAME=PATH by task for an instance, or --assets_root_path for the objects directory
teleop/ Human or SimScale source demonstrations in HDF5 --dataset_file in replay and --input_file in annotation
annotated/ HDF5 demonstrations with subtask labels for each arm --input_file in DexMimicGen generation
lerobot_mimic_domain_randomization/ Generated LeRobot v2.0 shards with actions, proprioception, and camera videos Dataset loaders and external training pipelines that read LeRobot v2.0

Dataset coverage by task and source

Task ID Source Demo # Objects # Episodes # Hours
PutPotOnCooktop-v0 Human 80 3,900 14.55
PutPotOnCooktop-v0 SimScale 320 14,200 65.68
HangMugOnTree-v0 Human 80 4,000 33.25
HangMugOnTree-v0 SimScale 320 15,508 133.69
PutChargerInDrawer-v0 Human 80 3,900 25.99
PutChargerInDrawer-v0 SimScale 320 15,400 127.92
Total 1,200 56,908 401.07

3. Asset Organization

Each object collection has an assets root with one folder per category and one subfolder per instance.

assets_root_path/
├── category_1/                    ← asset category
│   ├── instance_1/                ← asset instance (.usd, asset_size.json, collision meshes)
│   ├── instance_2/
│   └── …
├── category_2/
│   └── …
└── …

For example, Pot/ is a category, and Pot/cooking_pot_000000/ is one instance. Its directory contains the USD model and asset_size.json.

The evaluation examples use three pot and cooktop pairs in ./objects/Pot_eval/ and ./objects/Cooktop_eval/, selected with --asset-category. To evaluate downloaded objects, point --assets-root at the collection’s ./simscale_datasets/tasks_data/<task>/<source>/objects/ directory; the evaluator then uses the task YAML category names.

For teleoperation, pass one --asset NAME=PATH per scene object. NAME is the name the task uses for the object (its role). PATH selects a particular instance. For example, --asset pot="$TASK_DIR/objects/Pot/cooking_pot_000000" tells the simulator which pot to load.

Task ID --asset key Category folder under objects/
PutPotOnCooktop-v0 pot Pot/
PutPotOnCooktop-v0 cooktop Cooktop/
HangMugOnTree-v0 mug Mug/
HangMugOnTree-v0 mug_tree MugTree/
PutChargerInDrawer-v0 charger Charger/
PutChargerInDrawer-v0 cabinet Cabinet/

Recordings store the role and category/instance for each object. During replay, annotation, and generation, --assets_root_path points to the objects/ directory containing those recorded paths.

Published instances already include asset_size.json. For your own mesh, export the USD in meters, then run one of the commands below to write its dimensions. The simulator uses the dimensions to place the object on the table and keep it inside its starting region. Give the main USD file the same name as its instance directory, for example bowl_01/bowl_01.usda, so the script and simulator both select it.

# one asset instance
uv run scripts/precompute_asset_sizes.py --usd /path/to/category/instance/instance.usd

# or a whole category (one subfolder per instance)
uv run scripts/precompute_asset_sizes.py --dir /path/to/category

4. Pipeline & Usage

Start with your own teleoperation recording or a published HDF5 demonstration. To collect new camera views of the same motion, use state replay. It writes a LeRobot v2.0 dataset with Parquet files and camera videos. To generate new motions, annotate a demonstration to mark its subtasks, then pass the annotated HDF5 to DexMimicGen. Generation writes successful trajectories to HDF5. Add --save_lerobot to export them in LeRobot format as well.

Replay, generation, and evaluation can vary scene appearance using the settings in Domain randomization. Teleoperation and annotation use the source appearance. Pass --help to any script for its options.

If you agree to the license terms, set OMNI_KIT_ACCEPT_EULA=YES to start Isaac Sim without a license prompt. NVIDIA license agreement

The examples below use one published pot demonstration. Run this block once from the repository root, then choose a stage to try.

uv run scripts/download_data.py --task PutPotOnCooktop --source human_source --demo pot_000000.hdf5
export TASK_DIR="$PWD/simscale_datasets/tasks_data/PutPotOnCooktop/human_source"
export DEMO="$TASK_DIR/teleop/pot_000000.hdf5"
OUT="$PWD/recorded_data/PutPotOnCooktop"

For teleoperation and the throughput benchmark, pass --asset NAME=PATH once for each object. Use pot and cooktop for the pot task, mug and mug_tree for the mug task, or charger and cabinet for the charger task. The policy evaluator takes a collection with --assets-root and finds the instances for you. Asset names and category folders

Replay, annotation, and generation read the object names and instance paths from the input HDF5 file. Pass --assets_root_path "$TASK_DIR/objects" so the script can find those instances locally.

4.1 Teleoperation in Simulation

Use either JoyLo or YAM Leader to control the simulated arms. Both connect to the same simulation follower.

In the first terminal, start the follower. This example loads the pot and cooktop. For another task, substitute its object names and paths. Asset names by task

uv run --locked scripts/launch_follower.py --task PutPotOnCooktop-v0 \
    --asset pot="$TASK_DIR/objects/Pot/cooking_pot_000000" \
    --asset cooktop="$TASK_DIR/objects/Cooktop/induction_cooktop_000000" \
    --port 11333 --enable_cameras --demos_per_asset 3 \
    --data_output_dir "$OUT/teleop" --data_output_filename "teleoperation_$(date +%Y%m%d_%H%M%S)"

A recording starts at the current robot and object poses and contains one sample per environment step (30 Hz by default). The command above writes all saved episodes to one timestamped HDF5 file under $OUT/teleop.

Then, start your chosen leader from the repository root in a second terminal on the computer connected to the hardware.

JoyLo. Use the calibration file for your own arms. The example uses the filename from the JoyLo calibration guide.

uv run --project packages/joylo --locked packages/joylo/scripts/launch_joylo.py \
    --joylo_port /dev/ttyUSB0 \
    --joint_config packages/joylo/configs/joint_config_yam_gello.yaml \
    --port 11333 --enable_recording

Position the arms, then press X to start recording. Press X again to save the episode or HOME to discard it and reset the task.

YAM Leader. Connect each YAM Leader Arm to a separate CAN interface. The packages/robot_control project includes the i2rt hardware driver. Replace can0 and can1 with the left and right interfaces. If the follower runs on another computer, replace localhost with its hostname.

uv run --locked --project packages/robot_control scripts/run_yam_hardware.py leader \
    --address localhost:11333 --left-channel can0 --right-channel can1 --execute

The YAM leader polls both arms at 50 Hz by default. Use --hz to change the polling rate. Release all handle buttons before the first sync.

Handle button Action
Left top Start following from the current simulated arm joint angles.
Right top Start recording.
Right bottom Save the demonstration and pause following.
Left bottom Discard the current attempt, reset the task, and pause following.

4.2 Replay Recorded States to Collect Observations

State replay renders each pose and writes a LeRobot dataset. The example keeps every frame, preserves recorded actions and proprioception, and produces new top and wrist camera videos. Use a fresh output directory for each export.

To watch the replay on a machine with a display, omit --headless. Keep --enable_cameras to record the camera views.

uv run scripts/replay_data.py --task PutPotOnCooktop-v0 --dataset_file "$DEMO" \
    --assets_root_path "$TASK_DIR/objects" --episode_ids 0 --replay_mode state --state_render_only \
    --discard_first_n_frames 0 --discard_last_n_frames 0 --output_root "$OUT/replay" \
    --task_description "Put the pot on the induction cooktop" \
    --observation_modalities rgb,proprioception --enable_cameras --headless

To check whether the recorded actions still complete the task, use action replay. It restores the starting pose, sends each recorded action to the controller, and reports whether the task succeeded. The gripper clamp limits further closing once the fingers grasp an object.

uv run scripts/replay_data.py --task PutPotOnCooktop-v0 --dataset_file "$DEMO" \
    --assets_root_path "$TASK_DIR/objects" --episode_ids 0 --replay_mode action \
    --diagnostics_only --diagnostics_dir "$OUT/diagnostics" --enable_gripper_clamp --headless

4.3 Annotate Demos for Data Generation

Annotation marks where each arm finishes a subtask, such as grasping or releasing the pot. Use --auto to replay the source demonstrations and save those labels in a new HDF5 file.

uv run scripts/mimic/annotate_demos.py --task PutPotOnCooktop-Mimic-v0 --auto --seed 42 \
    --input_file "$DEMO" --output_file "$OUT/annotated.hdf5" \
    --assets_root_path "$TASK_DIR/objects" --headless

For manual annotation, omit --auto and --headless. In the viewer, N plays, B pauses, S marks the next boundary for the current arm, and Q skips the episode. To use the published boundaries, pass "$TASK_DIR/annotated/annotated_pot_000000.hdf5" directly to generation.

4.4 Synthetic Data Generation

DexMimicGen samples new object poses and adapts segments from the annotated motion until it generates the requested number of successful trajectories. This example saves ten successes to HDF5 and LeRobot, including all three RGB views.

uv run scripts/mimic/generate_dataset.py --task PutPotOnCooktop-Mimic-v0 --seed 42 \
    --input_file "$OUT/annotated.hdf5" --assets_root_path "$TASK_DIR/objects" \
    --output_root "$OUT/generated" --num_envs 1 --generation_num_trials 10 \
    --enable_gripper_clamp --save_lerobot \
    --task_description "Put the pot on the induction cooktop" \
    --observation_modalities rgb,proprioception --enable_cameras --headless

For state-only generation, omit --save_lerobot, --observation_modalities rgb,proprioception, and --enable_cameras. To randomize training images, add --enable_domain_randomization with the training paths from Domain Randomization.

4.5 Evaluation: Policy Protocol and Throughput Benchmark

Give the evaluator a Python function that loads your policy. The evaluator supplies observations from parallel environments, receives actions, and records the results.

Run the Three Included Pot Pairs

The scripted pot policy runs on three included asset pairs: 000000, 000003, and 000004. This command opens the simulator viewport and records 50 episodes per pair across 50 parallel environments.

# The scripted policy has no checkpoint; learned policies put it in --policy-config JSON.
OMNI_KIT_ACCEPT_EULA=YES uv run scripts/eval/evaluate.py \
  --task PutPotOnCooktop-v0 \
  --assets-root ./objects \
  --asset-category pot=Pot_eval --asset-category cooktop=Cooktop_eval \
  --policy simscale.evaluation.programs.scripted_policy:create_policy \
  --output-root results/PutPotOnCooktop_reproduced \
  --episodes 50 --num-envs 50 --timeout-steps 540 \
  --observations rgb,proprioception \
  --task-description "put the pot on the cooktop" \
  --record-video --devices 0

The evaluator matches indices in objects/Pot_eval/ and objects/Cooktop_eval/. Results go to evaluation_summary.json at the output root and eval_metadata.json under each pair's folder. Example summary

Example outputs from the scripted pot policy:

Pair Recorded run Three videos Result Summary
000000 49/50 Success 1, Success 2, Failure Metrics
000003 49/50 Success 1, Success 2, Failure Metrics
000004 48/50 Success 1, Success 2, Failure Metrics

Object Selection. The bundled folders are Pot_eval and Cooktop_eval, while the task YAML names Pot and Cooktop. Keep both --asset-category flags when using ./objects; for downloaded assets, use their objects/ directory and the YAML categories. By default, every category must have the same numeric instance suffixes. Use --pairing cartesian to try every combination instead. Add --dry-run to print the selected pairs without starting Isaac Sim.

Multiple GPUs. Use --devices 0,1 to split asset pairs across two GPUs. Each GPU runs one pair at a time with --num-envs parallel environments.

Plug In Your Model

Keep your model in an importable package, for example my_project/my_policy.py, and install it in the evaluation environment. Follow the scripted policy's predict(inputs) and optional on_episode_end(slot) methods. It reads simulator state and uses its own factory; the shared YAM factory below loads your model class. The wrapper manages history, action chunks, and resets.

Method When needed Your implementation
__init__(config) Required Load the checkpoint and set the model to evaluation mode.
predict(inputs) Required Preprocess the selected camera and joint batches, then return absolute YAM joint targets.
on_episode_end(slot) Stateful models Clear that environment's model memory after reset.

The following class is a template. Replace the ... expressions with your model's loader and action conversion.

class MyModel:
    def __init__(self, config):
        checkpoint = config["checkpoint"]
        self.model = ...  # Construct the model, load checkpoint, and set evaluation mode.

    def predict(self, inputs):
        # inputs.images: camera name -> uint8 [batch, H, W, 3]
        # inputs.state: measured YAM joints/fingers [batch, 14]
        # inputs.image_history: camera name -> [batch, history, H, W, 3]
        # inputs.state_history: [batch, history, 14]
        # inputs.task_description: one optional instruction string for this batch
        # inputs.slots: original environment indices for this inference batch
        model_inputs = ...  # Prepare the images, joints, and language your model uses.
        prediction = self.model.predict(model_inputs)
        return ...  # Convert prediction to [batch, horizon, 14] absolute YAM targets.

Save this JSON at /path/to/eval.json. Replace both example paths with your own checkpoint and configuration paths, and match the history and action length to your model.

{
  "model": "my_project.my_policy:MyModel",
  "checkpoint": "/path/to/checkpoint",
  "n_action_steps": 30,
  "image_history_offsets": [-2, -1, 0],
  "state_history_offsets": [0]
}

Run the evaluator with your policy configuration:

OMNI_KIT_ACCEPT_EULA=YES uv run scripts/eval/evaluate.py \
  --task PutPotOnCooktop-v0 \
  --assets-root ./objects \
  --asset-category pot=Pot_eval --asset-category cooktop=Cooktop_eval \
  --policy simscale.evaluation.yam_policy_wrapper:create_policy \
  --policy-config /path/to/eval.json \
  --observations rgb,proprioception \
  --task-description "put the pot on the cooktop" \
  --output-root results/PutPotOnCooktop_my_policy \
  --episodes 10 --num-envs 10 --devices 0

Observations and actions. By default, inputs.images contains top_camera_rgb, left_wrist_camera_rgb, and right_wrist_camera_rgb as uint8 tensors of shape [batch, 240, 320, 3]. inputs.state and each action contain 14 values in this order: left arm joints, left gripper, right arm joints, right gripper. Each arm has six joint angles in radians and one gripper position in meters. The gripper is −0.0475 when open and 0 when closed on the standard YAM. Convert relative or normalized model outputs to these absolute targets before returning them. YAM action layout

Prediction timing. Return [batch, horizon, 14] with at least n_action_steps actions, or [batch, 14] when n_action_steps is 1. You can also return the four named components: left_arm, left_gripper, right_arm, and right_gripper. History offsets count control steps backward; missing history repeats the first observation. Set warmup_steps to hold the current pose before the first action. If your model keeps memory, clear it in on_episode_end(slot) when that environment resets. inputs.slots identifies the environment rows in each inference batch.

Language. --task-description reaches the YAM wrapper as inputs.task_description and custom policies as observations["task_description"]. A different description requires a new output directory when resuming.

Training settings. Use --camera-width, --camera-height, and --image-downsample-factor to match your training images. Set history offsets and n_action_steps in the policy config to match training. If training used different controller gains or randomization, match them in the task settings or pass a JSON object with the same keys via --task-overrides.

Episode results. The evaluator divides episodes as evenly as possible across environments and reads info["success"] and info["q_score"] at episode end or timeout. At 30 Hz, --timeout-steps 540 allows 18 simulated seconds. Use --resume to skip completed asset pairs with matching policy, seed, task settings, and rollout settings. Interrupted pairs restart from episode one; their earlier videos are kept in a separate directory.

For a custom policy wrapper, pass --policy module:factory. The evaluator calls factory(env=env, assets=assets, config=config) once per asset pair. Return a callable or an object with act(observations) that reads observations["policy"] and produces a float32 tensor of shape [num_envs, 14] on the environment device. Evaluation worker

For a custom evaluation loop, create the environment in evaluation mode. After env.step(actions), read info["success"] where terminated | truncated is true and clear policy history for those environments. Environment factory, Evaluation protocol

Throughput Benchmark

Run the throughput benchmark with the downloaded pot and cooktop:

uv run scripts/eval/benchmark_eval_throughput.py --task PutPotOnCooktop-v0 \
    --asset pot="$TASK_DIR/objects/Pot/cooking_pot_000000" \
    --asset cooktop="$TASK_DIR/objects/Cooktop/induction_cooktop_000000" \
    --num_envs 256 --num_steps 200 --warmup_steps 30 --seed 0 --device cuda:0 \
    --camera_width 320 --camera_height 240 --image_downsample_factor 1 \
    --camera_renderer ovrtx --render_profile quality --enable_cameras --headless

The OVRTX quality profile reached 1,679 environment steps/s on one RTX 5090 with 256 environments and three 320 × 240 RGB cameras each. The benchmark times physics, rendering, observation assembly, and GPU synchronization in env.step(). Appearance randomization and recording were off.

5. Tasks

Each task measures success in stages. For example, the pot task checks whether the robot lifted the pot before it checks the placement on the cooktop. MimicGen uses signals such as grasp and release to mark subtask boundaries in a demonstration.

  • simscale/configs/tasks/<task>.yaml defines the objects, their starting-pose randomization regions, the grasp target for each arm (grasp_detect), stage thresholds (success), and annotation settings (mimic_signals).
  • In simscale/envs/tasks/, <task>_manager_cfg.py sets the nominal object poses, rewards, and episode endings. <task>_manager.py checks which stages the robot has completed.
  • In simscale/envs/mimic/, <task>_mimic_env_cfg.py defines the subtasks for each arm. <task>_mimic_env.py supplies the object poses and signals used during annotation and generation.

self.robot.is_grasping() checks whether both fingers press against the target object with enough force. The mug task also checks where contact occurs on each finger pad. The pot and charger tasks disable this location check. Set the thresholds under grasp in simscale/configs/robot/yam.yaml. Choose the grasp target for each arm

5.1 PutPotOnCooktop

The robot must meet each condition for several consecutive control steps.

  1. Pick up the pot with both grippers and lift it more than 5 cm above its resting height.
  2. Place the pot on the cooktop and release both grippers. The check uses the pot’s distance from the cooktop center in the XY plane, its resting height, and its tilt from upright.

Episode showing both arms lifting a pot onto the cooktop

5.2 HangMugOnTree

The robot completes three stages in order. Each condition must hold for several consecutive steps.

  1. Pick up the mug with the left gripper and lift it more than 5 cm above its resting height.
  2. Pass the mug to the right gripper. The right gripper grasps it while it is still elevated, then the left gripper releases it.
  3. Hang the mug on the tree and release both grippers. The mug’s center must be within the task’s XY tolerance of the tree, and its height must stay stable above its original resting height.

Episode showing the arms passing a mug and hanging it on the mug tree

5.3 PutChargerInDrawer

The left arm handles the charger and the right arm can grasp the drawer handle.

  1. Pick up the charger with the left gripper.
  2. Open a drawer beyond the configured threshold.
  3. Release the charger with the left gripper. Its height must stabilize above its initial height and below the cabinet top.
  4. Close the drawers to complete the episode.

Episode showing the arms placing a charger in a drawer and closing it

6. Robot Dynamics Alignment

The robot control package provides a YAM MJCF model, gravity compensation settings, and scripts to record arm motion. It uses the public i2rt repo.

Align the real arm in two steps: first tune gravity compensation, then fit simulation kp/kd to real sinusoidal motions. SimScale disables gravity on the simulated arm bodies, so the real arm should compensate its own weight before comparing controller responses.

The package loads a YAM MJCF model with corrected arm masses and the gravity compensation factors used for the real robot.

6.1 Tune and Inspect Gravity Compensation

Tune the gravity factors until the arm can remain at the pose after you release it. The script sets arm kp=kd=0, so the arm torque comes from gravity compensation. Our default factors are [1.0, 1.15, 1.2, 1.325, 1.0, 1.0] in yam.json.

From the repository root on the robot machine, replace can0 with the arm's CAN interface and run:

uv sync --project packages/robot_control --locked
uv run --project packages/robot_control scripts/run_yam_hardware.py gravity-comp \
    --config packages/robot_control/simscale_control/yam.json --channel can0 --execute

Move the arm by hand to different poses and release it gently. It should stay at the same pose without sagging or rising. To adjust, support the arm and press Ctrl-C, edit gravity_compensation in yam.json (joint1 through joint6), then run the command again. Use the same file for motion recording below. The simulated arm has gravity disabled, so tune compensation on the real arm before comparing its motion with simulation.

6.2 Align Simulation kp/kd to the Real Arm

Execute predefined sinusoidal motions on the real arm and record the trajectory. The script first moves the arm to [0°, 60°, 60°, 0°, 0°, 0°] over four seconds, then records a 12-second sinusoidal sweep from 0.3 to 2 Hz with ±0.15 rad amplitude. Run the commands on the robot machine, one arm at a time.

Left arm:

# Replace can0 with the left arm's CAN interface.
uv run --project packages/robot_control scripts/run_yam_hardware.py record-sinusoid \
    --config packages/robot_control/simscale_control/yam.json \
    --channel can0 --side left \
    --output recordings/real_left.npz --execute

Right arm:

# Replace can1 with the right arm's CAN interface.
uv run --project packages/robot_control scripts/run_yam_hardware.py record-sinusoid \
    --config packages/robot_control/simscale_control/yam.json \
    --channel can1 --side right \
    --output recordings/real_right.npz --execute

This command executes sinusoidal motion on the real robot. Make sure to clear the path and avoid colliding with any objects or human. After the countdown, opening the CAN connection enables the motors. Press Enter to move to the raised pose, then press Enter again to start recording after checking that the arm has enough room to move.

YAM arm raising followed by sinusoidal motion in simulation

Support the arm as the recording finishes, since the motors will turn off. The script saves the target and measured joint positions, along with timestamps, to recordings/real_left.npz or recordings/real_right.npz. You will use these files to fit the simulation gains below. The .summary.json file saved alongside each recording shows whether it completed and how closely each joint followed the target motion.

Fit the simulation gains. Copy both .npz recordings to the simulator machine. From the repository root with Isaac Lab installed, run:

# Fit the left arm.
uv run python scripts/fit_sim_gains_isaaclab.py \
    --task yam --arm_side left --device cpu --physics_hz 120 --control_hz 120 \
    --real_npzs recordings/real_left.npz --lm_iters 25 \
    --output_dir fits/left_arm

# Fit the right arm.
uv run python scripts/fit_sim_gains_isaaclab.py \
    --task yam --arm_side right --device cpu --physics_hz 120 --control_hz 120 \
    --real_npzs recordings/real_right.npz --lm_iters 25 \
    --output_dir fits/right_arm

The fitter estimates simulation kp/kd from the recorded motion; it does not optimize joint friction. Set --physics_hz to the task's simulation integration rate. --control_hz sets how often simulated and measured motion are compared; recorded timestamps determine when target commands change. The reports under fits/left_arm/ and fits/right_arm/ include the gains and per-joint errors.

Use the fitted controller in simulation. Copy the fitted kp/kd from real_left_report.json and real_right_report.json into the controller YAML, using stiffness for kp and damping for kd, in order from joint1 through joint6:

  • Robot defaults: yam.yaml currently defines one controller block shared by both arms. Update it to apply the same gains to both arms, or add controller blocks under arms.left and arms.right to use each arm's fitted gains.
  • Task-specific gains: set robot.arms.left.controller and robot.arms.right.controller in the task YAML. The mug task provides a complete example with different gains for the left and right arms.

Task-specific overrides take precedence over robot defaults. Subsequent simulation runs load the gains from these YAML files.

The fitter also exports real_left_task_profile.json and real_right_task_profile.json. Pass either file as --task_profile to replay, annotation, or generation to try that arm’s gains. The recording timestamps come from the host loop. Motor command application and sensor acquisition times remain unmeasured.

7. How-To Guide

7.1 Changing Parameters

7.1.1 Overview

The simulator reads three configuration files for each task and mode.

  • simscale/configs/defaults.yaml sets the device, environment count, simulation rate, camera resolution, and domain randomization defaults for each mode.
  • simscale/configs/tasks/<task>.yaml sets the task’s object randomization, success thresholds, friction, MimicGen signals, runtime arguments, teleoperation pose schedule, and grasp targets.
  • simscale/configs/robot/yam.yaml holds the camera intrinsics and poses, arm poses, finger geometry, controller gains, and grasp thresholds. A task can override these values in its robot block.

To change just one task, edit its task YAML. For example, put a change under modes.mimicgen if it should apply only during generation. The loader reads shared defaults first, then the task, then any variant for the exact environment ID. Within each of those, settings for the selected mode take priority. Nested settings merge by key. A new list replaces the entire old list. Configuration loader

For a single run, pass config_overrides to create_task_environment. These values take priority over the YAML files. Replay, annotation, and generation also accept a JSON file with a config_overrides block via --task_profile. If you start generation with a profile, --resume reuses it.

If an edit has no effect, look for the same key in the mode, variant, or overrides used for that run. If the loader rejects a setting, check its spelling and type against the schema. Define new global settings in the schema first. Configuration schema

7.1.2 Common Parameters

7.1.2.1 Simulation Rate and Episode Length

Set the physics time step, control decimation, and episode duration in simscale/configs/defaults.yaml or in the task YAML.

sim:
  dt: 0.00833333333333  # 120 physics steps per second
  decimation: 4         # one control step every four physics steps (30 Hz)
  render_interval: 4    # physics steps between renders
  episode_length_s: 180.0

Teleoperation, replay, and DexMimicGen manage their own episode endings. The policy evaluator sets its horizon with --timeout-steps, measured in control steps.

7.1.2.2 Parallel Envs and Device

The shared defaults use one CPU environment for teleoperation and replay, four CPU environments for DexMimicGen, and 64 CUDA environments for evaluation. The charger task overrides evaluation physics to use the CPU in its task YAML. Mode defaults

For generation and the throughput benchmark, use --num_envs and --device to override the YAML settings. The policy evaluator (scripts/eval/evaluate.py) starts 50 environments per worker on GPU 0 by default, including for the charger task. Use --devices cpu for CPU physics or --num-envs to change the batch size. To change the shared evaluation settings in YAML, edit the mode block below.

modes:
  evaluation: {sim: {device: cuda, num_envs: 64}}
7.1.2.3 Camera Pose and Intrinsics

Set each camera’s pose and intrinsics under cameras in simscale/configs/robot/yam.yaml.

cameras:
  intrinsic_resolution: [640, 480]   # pixel grid used for calibration
  top:
    position: [0.08601, 0.015, 1.72]                  # offset from the prim's parent (m)
    quaternion_opengl: [0.683, 0.183, -0.183, -0.683] # wxyz, OpenGL convention
    intrinsics: {fx: 392.2, fy: 391.7, cx: 318.4, cy: 237.9}

The robot YAML stores camera quaternions in WXYZ order. The robot accessor converts them to Isaac Lab’s XYZW order. Set intrinsics at the calibration resolution. The Omniverse pinhole camera scales them for rendering, centers the principal point, and averages the two focal lengths when they differ.

7.1.2.4 Add a Camera

Add an entry under cameras in simscale/configs/robot/yam.yaml to include a new view in the scene and observations. For example, this calibrated bottom camera points toward the table. The dataset writer saves its frames under observation.images.<lerobot_key>.

cameras:
  bottom:
    prim_path: "{ENV_REGEX_NS}/BottomCamera"
    position: [0.2523800996656658, -0.001590174407071329, 0.8431239921905023]
    quaternion_opengl: [-0.5212626883208373, -0.48293434178537387, 0.4749993581553821, 0.5190715182331203]  # WXYZ
    intrinsics: {fx: 392.195617675781, fy: 391.722351074219, cx: 318.389434814453, cy: 237.876312255859}
    lerobot_key: bottom_rgb
7.1.2.5 Rename a Saved Dataset Key

Set the camera’s lerobot_key in simscale/configs/robot/yam.yaml. For example, the following change saves top camera frames under observation.images.head_rgb.

cameras:
  top:
    lerobot_key: head_rgb   # frames now saved as observation.images.head_rgb
7.1.2.6 Which Arm Grasps Which Object

If a task needs to know whether an arm is holding an object, list the arm and object under grasp_detect in its task YAML. This example gives both arms finger contact sensors for the pot. The contact thresholds come from grasp in the robot YAML.

grasp_detect:
  left_arm: [pot]
  right_arm: [pot]

A new task that only checks object poses can omit grasp_detect. If you subclass a task that defines CONTACT_OBJECT_NAMES, set that list to [] on your subclass. The factory uses it for both arms when the YAML supplies no targets.

7.1.2.7 Object Spawn Randomization

Set the range of starting positions and orientations for each object under objects in the task YAML.

objects:
  pot:
    randomization:
      region_size: [0.40, 0.30]     # full XY region (m), accounting for the object footprint
      orientation_range_deg: 45.0   # ± yaw
7.1.2.8 Render and Recorded Resolution

The OVRTX default renders and records at 320 × 240. To change the size for replay, generation, or the throughput benchmark, pass --camera_width, --camera_height, and --image_downsample_factor. The policy evaluator spells these flags --camera-width, --camera-height, and --image-downsample-factor. A factor of 2 halves both image dimensions. To change the shared defaults, edit rendering in simscale/configs/defaults.yaml.

rendering: {render_width: 320, render_height: 240, image_downsample_factor: 1}

--render_profile accepts original, balanced (default), and quality for OVRTX, Newton Warp, and Newton OptiX. Each backend implements its own lighting and sampling settings. For higher-quality OVRTX images, use --enable_cameras --render_profile quality.

In Python, pass camera_renderer and render_profile to create_task_environment(). Omitted values inherit the session settings. For a custom Isaac Lab scene, use CameraSettings(render_profile="quality").make_renderer_cfg() from simscale.rendering as the sensor's renderer_cfg.

Camera Backends and Optional Newton Runtime

Replay, generation, and the throughput benchmark accept --camera_renderer and --render_profile. The policy evaluator uses the default OVRTX balanced profile for RGB observations. All camera backends use PhysX for task physics. Camera observations require a GPU even with CPU physics.

Renderer Appearance and runtime
ovrtx (default) Both profiles trace up to three bounces so polished metal picks up reflections. balanced disables ray splitting and uses matte workstation trim. quality enables ray splitting and keeps the authored trim.
isaac_rtx Isaac Sim’s Kit RTX cameras in the standard environment.
newton_warp Newton’s software ray tracer with diffuse materials in the optional camera environment.
newton_optix Newton shading with OptiX acceleration. Use the optional camera environment, a CUDA device (e.g. --device cuda:0), and an NVIDIA R590 or newer driver.

Install the optional Newton camera runtime in a separate uv environment.

UV_PROJECT_ENVIRONMENT=.venv-newton-cameras uv sync --locked --no-group newton-base --extra newton-cameras

To use that environment, replace uv run in the camera examples with UV_PROJECT_ENVIRONMENT=.venv-newton-cameras uv run --no-sync. Newton cameras support rigid scenes and pinhole cameras. For RGB training data that uses MDL materials, reflections, and HDRI textures, use OVRTX. Newton’s balanced and quality profiles use approximate lighting.

To render at 640 × 480 and downsample to 320 × 240, pass --camera_width 640 --camera_height 480 --image_downsample_factor 2. On the throughput benchmark, add --capture_camera_grid views.png to inspect the rendered views. Throughput measurements

7.1.2.9 Recorded-Frame Trimming

Replay and generation trim the first four frames and the last frame of each LeRobot episode by default. To keep the entire episode, pass --discard_first_n_frames 0 --discard_last_n_frames 0. Trimming affects the LeRobot export only. The generated state HDF5 keeps the full trajectory.

7.1.2.10 Controller Gains and Grasp Thresholds

Set shared proportional (kp) and derivative (kd) gains in simscale/configs/robot/yam.yaml under controller. Each arm has entries joint1 through joint6 and yam_gripper. Edit a joint’s existing entry to change its nominal gains.

controller:
  joint2: {stiffness: 55.0, damping: 3.5}

To change the pot task only, put the following in simscale/configs/tasks/put_pot_on_cooktop.yaml. Both arms inherit the shared task value, then the left arm overrides just its stiffness. The resulting joint 2 gains are kp 60 and kd 3.5 on the left, kp 55 and kd 3.5 on the right.

robot:
  controller:
    joint2: {stiffness: 55.0, damping: 3.5}
  arms:
    left:
      controller:
        joint2: {stiffness: 60.0}

Grasp detection uses grasp.normal_force_thresh and grasp.check_pad in the same robot YAML. A task can override these under robot.grasp. The grasp_detect map selects which object each arm monitors. Robot configuration

7.1.2.11 Domain Randomization

Set the lighting and material ranges under domain_randomization in simscale/configs/defaults.yaml, or override them in a task YAML.

To render the textures assigned to each published object, use the default appearance. For different textures or lighting, enable --enable_domain_randomization during replay, generation, or the throughput benchmark. Choose the assets for the effect you want.

  • Replace materials with MDLs from --materials_path.
  • Vary lighting with environment maps from --hdris_path.
  • Vary shader properties on the existing materials during replay or generation with --enable_material_properties --disable_material_replacement. This works without downloading a material library or HDRIs.

Pass materials/train/ to --materials_path for data generation or materials/eval/ for evaluation on held-out materials. Each split groups MDL files by category, with the textures beside each .mdl file. To download the materials, run uv run scripts/download_data.py --materials.

The policy evaluator uses --enable-domain-randomization, --materials-path, and --hdris-path. For pot evaluation with held-out MDL materials, use CPU physics (--devices cpu for evaluation or --device cpu for the throughput benchmark). OVRTX still renders on the GPU.

materials/
├── train/   (Wood/Ash.mdl + Ash/ textures, Metals/, Plastics/, Carpet/, …)  ← --materials_path for generation
└── eval/    (held-out materials, same categories)                           ← --materials_path for evaluation

For lighting, pass HDRIs/indoor/train/ to --hdris_path during generation or HDRIs/indoor/eval/ during evaluation.

HDRIs/indoor/
├── train/   (abandoned_bakery-4k.hdr, …)   ← --hdris_path for generation
└── eval/    (billiard_hall-4k.hdr, …)      ← --hdris_path for evaluation

To use your own assets, point the corresponding flag at your lighting or material directory. Place .hdr files in the lighting directory and group .mdl files with their textures by material category. You can pass a split directory directly.

7.1.2.12 Controller Gain Randomization

At reset, the simulator can sample a new stiffness (kp) and damping (kd) for joints 1 through 6 of each arm in each environment. It samples uniformly between the scale factors you set, relative to that joint’s nominal gains. The grippers keep their configured gains.

To enable this for DexMimicGen, edit the task YAML. The example varies kp by ±10% and kd by ±15%. A joint with nominal gains of 60 and 4 will draw kp between 54 and 66 and kd between 3.4 and 4.6.

modes:
  mimicgen:
    robot:
      controller_randomization:
        enabled: true
        kp_scale: [0.90, 1.10]
        kd_scale: [0.85, 1.15]
  • To use a fixed controller, set enabled: false. Every reset uses the nominal gains.
  • To vary only one gain, keep enabled: true. Set kd_scale: [1.0, 1.0] to vary only stiffness, or kp_scale: [1.0, 1.0] to vary only damping.
  • To change the range, edit either pair of scale factors. For example, kp_scale: [0.95, 1.05] samples within 5% of nominal stiffness. Use positive bounds in ascending order, or equal bounds for a fixed multiplier.

Place the block under modes.evaluation, modes.teleoperation, or modes.replay to enable randomization in that mode. The YAM default is off; the mug task enables the ranges above for DexMimicGen. YAM defaults, Mug task settings

Inspect the Effective Gains Before Launching the Simulator
from simscale.configs import get_task_config
from simscale.robot.spec import get_robot

cfg = get_task_config("HangMugOnTree-Mimic-v0", "mimicgen")
robot = get_robot("yam", overrides=cfg.get("robot", {}))
for side in ("left", "right"):
    print(side, robot.controller_gains(side)["joint2"])
print("Reset gain ranges", robot.controller_randomization)

controller_gains returns the nominal gains for the selected arm. controller_randomization returns the reset scale ranges, or None when disabled.

7.2 Defining a New Task

Suppose you want the robot to push a block into a goal region. You need to tell the simulator where the block starts and how to recognize success. The existing YAM environment supplies the arms, cameras, and actions.

1. Name the objects. Create simscale/configs/tasks/place_block.yaml and give the task a Gymnasium ID, such as PlaceBlock-v0. Under objects, give the block a name. This name is its role. It stays the same when you swap in a different asset.

For example, self.scene["block"] looks up the object named block, and --asset block=/path/to/block_000000 chooses which block to load. The YAML’s category: Block tells the policy evaluator where to find other blocks under --assets-root. Each instance directory contains a USD file and asset_size.json. Asset layout

2. Build the scene and its reset events. In simscale/envs/tasks/place_block_manager_cfg.py, add the block to a YamBimanualSceneCfg and choose where it can start. The example uses a rigid body. For an object with moving parts, see how the charger task adds an articulated drawer. Charger scene

Example: Add a Block and Its Reset Event

In place_block.yaml, the block starts within a 30 × 20 cm region. Its initial yaw can vary by up to 15 degrees in either direction.

env_names: [PlaceBlock-v0]
objects:
  block:
    category: Block
    randomization:
      region_size: [0.30, 0.20]
      orientation_range_deg: 15

In place_block_manager_cfg.py, use block when you add the object, reset its pose, and check whether it has fallen. The scene gives the starting XY position. At reset, the simulator samples an offset within the configured bounds.

from isaaclab.utils import configclass

from simscale.envs.task_terms import (
    SparseSuccessRewardsCfg, TaskTerminationsCfg, below_table, object_pose_reset,
)
from simscale.envs.tasks.yam_bimanual_env_cfg import BaseEventsCfg, YamBimanualEnvCfg
from simscale.envs.yam_bimanual_scene import YamBimanualSceneCfg
from simscale.objects.rigid import rigid_task_object
from simscale.robot.yam import ROBOT


@configclass
class PlaceBlockSceneCfg(YamBimanualSceneCfg):
    block = rigid_task_object(
        "block", mass=0.1, pos=(0.65, 0.10, 0.85), rot=(0.0, 0.0, 0.0, 1.0)
    )


@configclass
class PlaceBlockEventsCfg(BaseEventsCfg):
    reset_block_position = object_pose_reset("PlaceBlock-v0", "block")


@configclass
class PlaceBlockTerminationsCfg(TaskTerminationsCfg):
    block_below_table = below_table("block", ROBOT.table_position[2])


@configclass
class PlaceBlockEnvCfg(YamBimanualEnvCfg):
    scene: PlaceBlockSceneCfg = PlaceBlockSceneCfg(num_envs=1, env_spacing=3.0)
    events: PlaceBlockEventsCfg = PlaceBlockEventsCfg()
    terminations: PlaceBlockTerminationsCfg = PlaceBlockTerminationsCfg()
    rewards: SparseSuccessRewardsCfg = SparseSuccessRewardsCfg()
    obj_name_to_event_name: dict[str, str] = {"block": "reset_block_position"}

3. Decide what counts as success. In place_block_manager.py, subclass YamBimanualEnv. Suppose the goal is a circle on the table. This method checks whether the block is within 3 cm of the goal center in each environment.

def get_task_success(self):
    xy = self.scene["block"].data.root_pos_w.torch[:, :2] - self.scene.env_origins[:, :2]
    goal_xy = xy.new_tensor([0.85, 0.10])
    return (xy - goal_xy).norm(dim=-1) < 0.03

The base class also asks for get_current_task_info(), which reports progress during teleoperation, and _reset_task_progress(env_ids), which clears any stages you track. For the block, the reset method can be empty because success depends only on its current position.

For policy evaluation, return the finished episode’s result in info["success"] from step(), even when Isaac Lab resets that environment in the same step. The pot manager shows how it keeps track of a successful pick and place. Pot manager, Shared success checks

Grasp detection. The block example scores success from its position, so it needs no finger contact sensors. To detect a left-hand grasp, add grasp_detect: {left_arm: [block]} to the task YAML. Grasp Detection, Assisted Grasping

4. Register the task and try an episode. Add this at the end of place_block_manager.py, after defining PlaceBlockManager.

import gymnasium as gym

from simscale.envs.tasks.yam_bimanual_env import make_task_env
from .place_block_manager_cfg import PlaceBlockEnvCfg


def make_place_block_env(**kwargs):
    kwargs.setdefault("env_name", "PlaceBlock-v0")
    return make_task_env(PlaceBlockEnvCfg, PlaceBlockManager, **kwargs)


gym.register(id="PlaceBlock-v0", entry_point=make_place_block_env)

Import the module in simscale/envs/tasks/__init__.py so the entry scripts recognize --task PlaceBlock-v0. Try one episode with the block outside the goal and another with it inside. Only the second should succeed.

Optional: generate demonstrations with DexMimicGen. Add PlaceBlock-Mimic-v0 to env_names if you want to generate trajectories from source demonstrations. The pot task has two files you can use as a template.

  • In the Mimic configuration, the task configuration also inherits from MimicEnvCfg. Its subtask_configs list for each arm defines which object the motion follows and which signal ends each subtask.
  • In the Mimic environment, get_object_poses(env_ids) supplies a 4 × 4 world pose per selected environment for each reference object. get_subtask_term_signals() supplies the per-environment flags used to annotate the source demonstration. Register the Mimic ID with make_mimic_env and import the module in simscale/envs/mimic/__init__.py.

Replay one successful demonstration, annotate it, and generate a trajectory before collecting a larger dataset. Replay, Annotation, Generation

7.3 Adding a New Embodiment (Robot)

Start with the calibration you have for the new robot. Keep measured values in YAML. Use Python to load its USD model, map actions to joints, and expose observations to a policy. YAM example

  1. Describe the robot in simscale/configs/robot/<name>.yaml. Specify arm base poses, open and closed gripper positions, camera poses and intrinsics, finger geometry, PD gains, and grasp thresholds. Call get_robot("<name>") to load the file as a RobotSpec. YAM configuration, RobotSpec

  2. Bind the robot to Isaac Lab in simscale/robot/<name>/. Use ArticulationCfg to load its USD model and configure joint drives and gains. Define which joint each action column controls. YAM package, YAM action layout

    For two arms with parallel-jaw grippers, subclass BimanualRobot and pass it your robot’s specification. For a different hand, implement its grasp checks in an EndEffector subclass. Set END_EFFECTOR_CLS on your arm class to use that hand, then set ARM_CLS on your robot class to use that arm. BimanualRobot, YamRobot

  3. Build and register an environment for the new robot. Define a scene with its arms and cameras. For joint position control, declare a JointPositionActionCfg for each arm and gripper in action order. Expose their positions as observations. The YAM factory builds a YAM scene, and its environment constructs a YamRobot. Give your robot a factory that loads its own specification and constructs its robot class, then register its tasks with Gymnasium. If the joint layout changes, adapt any YAM-specific teleoperation or policy code you plan to use. YAM base environment and factory, YAM policy interface

To recalibrate the existing YAM, edit its camera poses, gains, table geometry, or finger geometry in the YAM configuration.

7.4 Assisted Grasping

Thin surfaces can slip between the fingers even after the gripper closes because they make little contact with the fingertips. Grasp assistance helps the gripper hold an object until the task calls for release.

Choose a mechanism under grasp_assist in the task YAML. Use friction to increase fingertip friction, target_friction to increase friction on selected object surfaces, or fixed_joint to attach the object to the gripper while held. Set it to none to disable the assist.

For example, the mug task increases friction on the left fingertips after detecting a continuous grasp for 0.3 seconds. Mug configuration

grasp_assist:
  left:
    mechanism: friction
    arm: left_arm
    target: {object: mug}
    grasp_delay_s: 0.3
    friction: {high: 100.0}

For a new task, call build_grasp_assists(self, cfg.grasp_assist) in the task manager. Update each assist with the task’s grasp and release conditions each control step, and reset it when the corresponding environment resets. Grasp assist implementation, Mug task manager

8. Repository Structure

8.1 Directory Layout

simscale-dev/
├── media/                             figures, previews, and videos for both READMEs
├── objects/                           bundled USD assets for three matching evaluation pairs
│   ├── Pot_eval/                      pots 000000, 000003, and 000004
│   └── Cooktop_eval/                  cooktops with the same IDs
├── results/
│   ├── PutPotOnCooktop_reference.json  reference result, 50 episodes per pair
│   └── PutPotOnCooktop/               evaluation summary, per-pair JSON, and three videos per pair
├── simscale/                          core simulation package (YAM environment, robot model, configs)
│   ├── robot/                         shared robot classes and YAM bindings
│   │   ├── spec.py                    RobotSpec: IsaacLab-free view of a robot (links, joints, calibration)
│   │   ├── robot.py                   generic Robot, Arm, EndEffector, Gripper, Finger (grasp detection)
│   │   ├── bimanual_robot.py          BimanualRobot pairs the left and right arms
│   │   └── yam/                       YAM-specific binding
│   │       ├── yam.py                 YamRobot and build_yam_articulation (per-arm USD and drives)
│   │       ├── action.py              YamActionLayout: arm and gripper indices in the 14-value action vector
│   │       ├── arm/                   YAM arm USD and textures
│   │       ├── workstation/           workstation USD and meshes
│   │       └── calibration/           arm and camera calibration files
│   ├── envs/
│   │   ├── launcher.py               start the simulation runtime and configure cameras
│   │   ├── manipulation_env_cfg.py    ManipulationEnvCfg holds settings shared across robots
│   │   ├── manipulation_env.py        ManipulationEnv handles randomization, recording, and pose schedules
│   │   ├── yam_bimanual_scene.py      YamBimanualSceneCfg defines the arms, cameras, and workstation
│   │   ├── tasks/
│   │   │   ├── yam_bimanual_env_cfg.py  shared YAM actions, observations, and scene settings
│   │   │   ├── yam_bimanual_env.py    YAM base environment and task factories
│   │   │   ├── *_manager_cfg.py       task scenes, resets, and termination conditions
│   │   │   └── *_manager.py           task progress and success checks
│   │   └── mimic/                     YAM adapters to the Isaac Lab Mimic API
│   │       ├── yam_mimic_env.py       shared YAM end-effector poses and inverse kinematics
│   │       ├── *_mimic_env_cfg.py     per-arm subtask definitions and timing
│   │       └── *_mimic_env.py         task object poses and subtask signals
│   ├── configs/
│   │   ├── defaults.yaml              shared sim / rendering / recording / randomization defaults
│   │   ├── tasks/*.yaml               task IDs, asset categories, spawn poses, and grasp settings
│   │   ├── robot/yam.yaml             YAM calibration: arm and camera poses, controller gains, grasp thresholds
│   │   ├── appearance.py              material settings and train/eval appearance splits
│   │   ├── profile.py                 load asset paths and task overrides for data workflows
│   │   ├── schema.py                  task configuration and observation modality validation
│   │   └── loader.py                  merges shared defaults and task YAML into a validated config
│   ├── datasets/                      portable dataset metadata and Hugging Face download helpers
│   ├── evaluation/                    batched policy evaluation
│   │   ├── assets.py                  discover and pair asset instances by task role
│   │   ├── worker.py                  run one asset selection across parallel environments
│   │   ├── protocol.py                score completed episodes and write their results
│   │   ├── observations.py            downsample RGB observations for policy input
│   │   ├── yam_policy_wrapper.py      adapt YAM observations, history, and action chunks for a model
│   │   ├── video.py                   record a video for each completed episode when requested
│   │   ├── overlays.py                capture reference placements and camera views
│   │   └── programs/
│   │       ├── scripted_policy.py     scripted policy for the three bundled pot and cooktop pairs
│   │       └── data/                  recorded wrist targets and gripper commands for the pot policy
│   ├── objects/                       rigid object builders and PhysX schemas
│   ├── rendering/                     OVRTX camera products, profiles, and optional backends
│   ├── domain_randomization/          material and lighting randomization
│   ├── teleoperation/                 shared simulator RPC follower and demonstration recorder
│   ├── sysid/                         arm fixtures and numerical methods for gain fitting
│   └── utils/
│       ├── task_creation.py           create_task_environment() constructs the task with gym.make
│       ├── mimic_*.py                joint targets, grasp correction, and MimicGen runtime helpers
│       ├── grasp.py                   grasp assists and the teleoperation grasp overlay
│       ├── perception.py              camera calibration and observations of masks, joints, and grippers
│       ├── recorders.py               HDF5 recorder and LeRobot v2 dataset writer
│       ├── replay.py                  state and action replay, batched rendering and resume checks
│       └── task_logic.py              task success checks and sparse reward
├── packages/
│   ├── joylo/                         JoyLo leader arms and JoyCon controls
│   │   └── scripts/
│   │       ├── calibrate_joints_yam.py  calibrate JoyLo joint signs and offsets
│   │       └── launch_joylo.py        connect JoyLo to the simulation follower
│   ├── robot_control/                 i2rt hardware support for YAM Leader and arm dynamics
│   └── simscale_teleop/               task and recording feedback shared by both leaders
└── scripts/                           simulation, data collection, and hardware entry points
    ├── launch_follower.py             run the shared simulation follower and demonstration recorder
    ├── run_yam_hardware.py            run the YAM Leader or measure physical arm dynamics
    ├── fit_sim_gains_isaaclab.py      fit simulation arm gains to timestamped recordings
    ├── download_data.py               fetch published recordings, assets, and LeRobot shards
    ├── precompute_asset_sizes.py      write each asset's asset_size.json (object placement)
    ├── replay_data.py                 replay recorded demos with cameras and domain randomization
    ├── mimic/
    │   ├── annotate_demos.py         mark subtask boundaries for MimicGen
    │   └── generate_dataset.py       generate state HDF5 and optional LeRobot datasets
    └── eval/
        ├── evaluate.py                evaluate a policy across selected assets and report success
        └── benchmark_eval_throughput.py  measure simulator rollout throughput

MimicGen uses the Isaac Lab Mimic generation loop. Its YAM and task adapters live in simscale/envs/mimic/, and its annotation and generation commands live in scripts/mimic/. Evaluation has its own policy runner and results writer in simscale/evaluation/.

8.2 Environment and Robot Architecture

Figure 1. Task construction. The entry scripts call create_task_environment(), which resolves settings for the task ID and execution mode, then calls Gymnasium with the selected assets. Annotation uses the Mimic task ID in replay mode. Generation uses the same ID in mimicgen mode. Environment factory, YAML precedence

Reset events can sample initial object poses or use a pose schedule. State replay restores the poses from the recording. Material and lighting randomization are optional and configured separately from object placement.

Entry scripts use a shared factory to resolve task settings and construct the registered environment through Gymnasium

  • Tune calibration and grasp detection. Set shared values in the robot YAML. A task can override robot settings and choose the grasp target for each arm. YAM calibration, Pot task settings
  • Add a task. Define its YAML and environment classes, then register the Gymnasium ID. Add a Mimic variant for annotation and generation. Defining a New Task
  • Add a robot. Supply its calibration, articulations, action layout, and an environment that binds the robot model to its scene. Adding a New Embodiment

Figure 2. Robot model. Robot builds one Arm per arm listed in the robot specification. BimanualRobot makes them available as left_arm and right_arm. On YAM, each arm has a two-finger gripper. When a task checks where a finger touches an object, YamRobot uses the finger-pad geometry from the task’s robot specification. Robot and gripper classes, BimanualRobot, YamRobot, RobotSpec

YamRobot class inheritance and the two arms, grippers, and fingers that make up the robot

Figure 3. Pot environment inheritance. ManipulationEnv adds recording APIs and pose schedules to Isaac Lab’s ManagerBasedRLEnv. The scene configuration builds the arms and cameras, and the action configuration declares six arm targets and one gripper target per side. At runtime, YamBimanualEnv binds YamRobot to that scene. ManipulationEnv, YAM scene, Action terms, YamBimanualEnv

PutPotOnCooktopManager records a successful pick before it accepts a successful placement. The Mimic variant inherits from both this task class and YamMimicEnv, adding the interface used by DexMimicGen. Pot success checks, Pot Mimic environment

Base classes of PutPotOnCooktopManager and the behavior each class implements

9. Acknowledgments

We use NVIDIA Isaac Sim and Isaac Lab for simulation, sensors, and task environments, and Isaac Lab Mimic for demonstration generation. The recorder writes Parquet files and videos in the LeRobot dataset format. The HDRI lighting maps come from Poly Haven.

Our data generation builds on MimicGen and DexMimicGen, which generate trajectories from human demonstrations. Our approach to domain randomization draws on VIRAL and DoorMan.

We use the JoyLo teleoperator from Behavior Robot Suite to collect demonstrations. Its leader arms follow the GELLO design.

10. Citation

@misc{dai2026simscale,
  title={SimScale: Agentic Simulation Data Scaling for Sim-to-Real Policy Learning},
  author={Tianyuan Dai and Kevin Lin and Yunfan Jiang and Minghuan Liu and Junhong Xu and Justin Tran and Benjamin Nguyen and Yingrui Huang and Linxi Fan and Ajay Mandlekar and Yuke Zhu},
  year={2026},
  eprint={2611.41502},
  archivePrefix={arXiv},
  primaryClass={cs.RO},
  url={https://arxiv.org/abs/2611.41502}
}

11. Contact

For questions, feel free to email Tianyuan (Roger) Dai (tydai@utexas.edu) or Yuke Zhu (yukez@cs.utexas.edu).

About

Simulation infrastructure for large-scale data generation, policy evaluation, and sim-to-real robot learning.

Resources

Stars

114 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages