Skip to content

Update G1 trocar assets and policy weights for sim-to-real RL training - #9148

Open
KumoLiu wants to merge 159 commits into
isaac-sim:mainfrom
KumoLiu:yunl/feat/assemble-trocar-transfer
Open

KumoLiu wants to merge 159 commits into
isaac-sim:mainfrom
KumoLiu:yunl/feat/assemble-trocar-transfer

Conversation

@KumoLiu

@KumoLiu KumoLiu commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Update both the assets and policy weights for the existing G1/Dex3 assemble-trocar task. The revised robot, scene and instrument assets bring the simulation closer to the real setup, while the updated GR00T N1.5 100k SFT checkpoint provides the starting policy for RL training.

  • Update the existing task and recipe in place with 320 x 240 RGB observations, 30 Hz control, 25-second episodes and native absolute joint-position actions.
  • Update the lift criterion to use a 0.08 m threshold above the table, measuring the first trocar at its center of mass and the second at its root.
  • Use install trocar from tray for training and evaluation, and document asset setup and checkpoint selection.
  • Extend generic RLinf image preprocessing and external-task discovery/context support. Task-specific Cosmos integration lives in isaaclab_demos.

Validation

  • RLinf adapter and entrypoint tests: 88 passed.
  • Trocar demo CPU integration tests: 11 passed; headless PhysX/RTX camera smoke.
  • Matched raw-RGB evaluation with the fine-tuned checkpoints-93 policy: 16/32 insertions before the update and 17/32 after it. Both used 32 environments, 512 steps and fixed seeds; stage-4 completion was 0/32 in both runs.
  • Repository formatting, changelog validation and diff checks.

temiroff and others added 30 commits October 28, 2026 16:21
Add CameraCfg.tensor_processors: processors that compute camera outputs from
render outputs and earlier processor outputs after each published capture. The
renderer produces only the inputs no earlier processor produces, processors
reset and close with the camera, and the reserved env_mask input marks the
environments with a new capture so stateful processors skip stale rows.

BaseRenderer.read_output and the render context now return whether a capture
was published, so processors run once per new capture.

This is the camera part of isaac-sim#8834, split out so it can merge independently of
the PPISP move; isp_cfg keeps its current behavior.

Co-authored-by: Matthew Taylor <mataylor@nvidia.com>
A processor whose close raises no longer skips the other processors, the renderer cleanup, or the frame view. Processors reading env_mask now require synchronous rendering: the mask marks the current capture request, while asynchronous rendering publishes the previous request's image.
Keep each request's data in its renderer group instead of re-indexing
the request list, build the processor buffers once with the capture mask,
and validate the reserved env_mask output name in CameraCfg.validate_config
so the data-type helper only computes.

Test the reserved name and processor-input validation through
validate(CameraCfg) instead of the private helper, and assert the mask
values and call count rather than only their length.

Renderers draw every environment on each capture, so describe env_mask as
the environments due for the capture rather than rows that still hold the
previous one. Merge the two added changelog bullets for the feature.
Renderers written before read_output returned a flag return None. Treating
that as unpublished silently skipped every tensor processor on those
renderers, leaving processor outputs missing from CameraData.output. Only
renderers that hold back a capture need to return False.
The ruff target does not allow ExceptionGroup yet; follow the render context, which logs each failure and raises a RuntimeError from the first.
Processor outputs enter CameraData.info when they are first published, together with CameraData.output, so the two key sets stay mirrored before the first capture. render_into_cameras returns booleans for renderers that still return None from read_output. CAPTURE_MASK_NAME moves to the module's constants.
The camera guide and changelog now say that processors reading env_mask need synchronous rendering, and that processor outputs appear from the first published capture on. The example produces rgb from depth, the pattern the tests cover.
Unchanged experimental Cosmos and image transfer packages, Shadow Hand presets, CLI entry, docs, and tests from exp/cosmos. They still use the camera modifier API from exp/cosmos; the next commit moves them to camera tensor processors.
Image transfer, the Cosmos transfer step, depth controls, and the canvas resize become TensorProcessor classes configured in CameraCfg.tensor_processors. The image transfer processor queues controls for the views in the camera's env_mask input instead of reading the sensor through bind_sensor, and cameras sharing a Cosmos session join it by the camera name apply_cosmos sets.
PpispProcessorCfg is not on main yet, so the PPISP chain test, its documentation section and srgb_to_linear, which only that chain uses, return with the PPISP processor.
Rejecting overrides of fields a configuration does not have affects every task, so it moves to its own pull request against main.
test_hydra runs Hydra with hydra/job_logging=disabled, which disables every logger that exists then, so the Direct-task warning test captured nothing when it ran later in the same session.
…Cosmos docs

The override check is its own pull request. The Isaac Lab environment pins Torch 2.11, and the image
transfer guide no longer covers PPISP.
depth_processor defaulted to 1.2-3.5 m while cosmos_camera and apply_cosmos used 0.1-2.0 m; all three now
share one default. The Cosmos processor no longer overrides the image transfer seed default.
The command is no longer special-cased before the other commands; it imports the experimental package only
when run.
The walkthrough in the Cosmos docs keeps the commands and now points to per-environment prompts.
The fragments described the branch's history, including controls added and removed again and fixes for
code main never had.
Signed-off-by: Alexander Temirov <atemirov@nvidia.com>

# Conflicts:
#	docs/source/concepts/sensors/camera.rst
#	source/isaaclab/changelog.d/camera-tensor-processors.added.rst
#	source/isaaclab/isaaclab/renderers/render_context.py
#	source/isaaclab/isaaclab/sensors/camera/camera_cfg.py
#	source/isaaclab/test/renderers/test_camera_output_contract.py
Renderers fill only existing info keys, so with delayed OVRTX captures the first image of a processor output
had info None and no capture metadata; later captures filled it.

Signed-off-by: Alexander Temirov <atemirov@nvidia.com>
The client model kept the closed camera group, which still held the cameras' old streams, so rebuilt cameras
failed with 'already joined its Cosmos session'.

Signed-off-by: Alexander Temirov <atemirov@nvidia.com>
A full view that a staggered capture skipped raised 'queue is full', although the capture would have completed
the other view's chunk.

Signed-off-by: Alexander Temirov <atemirov@nvidia.com>
The ISP processes the rendered image, which a Cosmos camera no longer renders; keeping it made the renderer fail
to initialize without an RGBA output.

Signed-off-by: Alexander Temirov <atemirov@nvidia.com>
read_output now returns a CaptureInfo for a new capture, or None when nothing new was published. prepare_capture
receives the capture's env_mask, and OVRTX keeps it with the pending asynchronous frame, so processors receive the
mask of the image they process. Processors reading env_mask therefore no longer need synchronous rendering.

Signed-off-by: Alexander Temirov <atemirov@nvidia.com>
@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Nov 22, 2026
@KumoLiu
KumoLiu marked this pull request as ready for review November 23, 2026 06:05
@KumoLiu
KumoLiu requested a review from a team November 23, 2026 06:05

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isaac Lab Review Bot

Needs attention: Design and architecture (3), Scope and over-engineering (3), Compatibility and deprecation (7), Implementation (3), Style consistency (3), Test quality (3). Other reviewed categories look good.

  • PR description: Expand scope to service and Shadow Hand; update comparison and probabilistic cadence, report validation, and provide reproducible baseline/candidate throughput-memory measurements with revisions, command/workload, hardware, backend, environment count, and warmup.
  • Design and architecture: Validation overwrites sibling camera settings and wires renderer alternatives; declare shared settings once and bind resolved cameras during task preparation.
  • Scope and over-engineering: Minimal implementation: extend trocar configuration, camera processors, and RLinf entrypoints; delete the unused offload wrapper and disabled light, removing Shadow Hand integration from the trocar slice. Keep joint_position_env, all image_transfer modules, Cosmos exports/stubs, protocol, IPC, client modules, server modules, task registration, trocar config/env/grid, and prompts for their contracts or lifecycles. Suggested PR breakdown: compatible calibration with legacy validation; RLinf with worker-boundary validation; Cosmos service/grid with transport and policy-observation validation; Shadow Hand with supervision validation.
  • API: API changes look good.
  • Compatibility and deprecation: Breaking changes: existing trocar assets, camera calibration and shapes, robot defaults, timing, rewards, and RLinf recipe behavior lack functional legacy paths; retain those contracts through targeted warnings, migration guidance, and transition coverage.
  • Implementation: Processor construction can leave owned models or streams alive after initialization fails; register cleanup until construction completes.
  • Style consistency: Trocar configuration eagerly imports runtime processors; move implementations into runtime modules and use resolvable references.
  • Test quality: Several new assertions repeat production prompt selection or inspect private storage; use independent expected prompts and observable session conditioning, consolidating the private merge-helper test.

Needs rework. Posted 22 inline findings.

Automated review; human maintainers own approval decisions.


HEALTHCARE_S3 = "https://omniverse-content-production.s3-us-west-2.amazonaws.com/Assets/Isaac/Healthcare/0.5.0/132c82d"
USD_ROOT = f"{HEALTHCARE_S3}/Props/LightWheel"
HEALTHCARE_ASSET_ROOT = os.environ.get("ASSET_LOCAL", "/workspace/assets/132c82d")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Critical · Compatibility — Preserve existing trocar assets

Existing task IDs now require an unbundled /workspace asset pack instead of the prior remote assets, so ordinary installations cannot construct them. Keep their asset source functional and select the local pack in a new…

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed that asset availability is a real setup issue. bf05e2b documents the required asset layout, setting ASSET_LOCAL before startup, the default root, and the fact that the asset pack is not bundled and its public download location is still pending. The task is being updated in place, so we are retaining the matching revised assets rather than silently falling back to different geometry or adding another task ID. Documentation does not resolve asset publication; leaving this concern open until distribution is available.

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The changes reach camera-based simulation tasks and RLinf training and playback workflows.

Fix the training/evaluation action mismatch before merging; the crop and import issues are non-blocking.

Findings

  1. P1 Evaluation shifts elbow targets ▶
  2. P2 Matching sizes skip crops ▶
  3. P2 New import uses deprecated alias ▶

Summary

Adds Cosmos Transfer camera support and G1 assemble-trocar training and evaluation tasks.

  • RLinf workers can select installed tasks and map absolute joint targets.
  • Camera processors turn depth into controls and publish generated images.
  • A standalone Cosmos service generates camera images from depth controls.
  • The trocar task shares scheduled Cosmos backgrounds across its head and wrist cameras.
  • Shadow Hand camera tasks train on generated images and match each image to its pose.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Head and wrist cameras] --> B[Depth controls]
  B --> C[Shared 2x2 grid]
  C --> D[Cosmos service]
  D --> E[Split generated panels]
  A --> F[Rendered RGB and foreground masks]
  E --> G[Restore foreground]
  F --> G
  G --> H[Crop and resize for GR00T]
  H --> I[Policy actions]
  I --> J[Isaac Lab environment]
Loading

Reviews (1) · Last reviewed commit: "Merge branch 'main' into yunl/feat/assem..." · Reviewed by Greptile

@KumoLiu KumoLiu changed the title Add Cosmos Transfer to the G1 assemble-trocar task Update G1 trocar assets and policy setup for sim-to-real RL training Nov 24, 2026
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 24, 2026
@KumoLiu KumoLiu changed the title Update G1 trocar assets and policy setup for sim-to-real RL training Update G1 trocar assets and policy weights for sim-to-real RL training Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants