Skip to content

Removes extension registry setting in app files for Isaac Sim 6.0 - #4850

Merged
kellyguo11 merged 5 commits into
isaac-sim:developfrom
kellyguo11:remove-registry
Mar 6, 2026
Merged

kellyguo11 merged 5 commits into
isaac-sim:developfrom
kellyguo11:remove-registry

Conversation

@kellyguo11

Copy link
Copy Markdown
Contributor

Description

Isaac Sim 6.0 recommends removing explicit extension registry definitions in Kit files. thus, we are removing the extension registry setting in all app files.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@github-actions github-actions Bot added isaac-sim Related to Isaac Sim team isaac-lab Related to Isaac Lab team infrastructure labels Mar 6, 2026
@greptile-apps

greptile-apps Bot commented Mar 6, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR primarily removes the explicit [settings.exts."omni.kit.registry.nucleus"] block from all four .kit app files as recommended by Isaac Sim 6.0, and bundles a substantial set of shadow hand vision environment improvements: a new data-type/renderer preset system for ShadowHandVisionEnvCfg, a benchmark config that bypasses the CNN, Newton physics compatibility shims (clone_in_fabric, body_incoming_joint_wrench_b fallback, dynamic object instantiation), and a new comprehensive test file.

  • Registry removal (apps/*.kit): Identical, clean deletion across all four app files — no functional risk.
  • Shadow hand vision preset system (shadow_hand_vision_env_cfg.py, feature_extractor.py): FeatureExtractor now derives CNN input channels dynamically from data_types, eliminating the hardcoded 7-channel assumption. A new ShadowHandVisionTiledCameraCfg preset class exposes named presets (rgb, albedo, depth, simple_shading_*) that can be combined with renderer presets via the CLI.
  • Newton compatibility (shadow_hand_env_cfg.py, shadow_hand_vision_env.py, inhand_manipulation_env.py): ShadowHandSceneCfg adds a Newton-aware preset for clone_in_fabric=False; body_incoming_joint_wrench_b accesses are wrapped in try/except NotImplementedError with zero-tensor fallbacks.
  • Benchmark config: ShadowHandVisionBenchmarkEnvCfg and Isaac-Repose-Cube-Shadow-Vision-Benchmark-Direct-v0 allow render-throughput profiling without CNN overhead.
  • One logic issue found: In _preprocess_images, the depth branch performs in-place tensor mutations (img[…] = 0, img /= 5.0) without first cloning img. Because tensor.float() is a no-op when the tensor is already float32, img aliases camera_output["depth"] directly, silently corrupting self._tiled_camera.data.output["depth"] for the remainder of that step. The sibling _save_images method correctly uses img = img.clone() before the same operations.

Confidence Score: 3/5

  • Safe to merge after addressing the depth-tensor aliasing issue in _preprocess_images; registry removal and config changes are low-risk.
  • The kit-file changes are trivial deletions. The shadow hand additions are well-structured with good test coverage. The one concrete logic bug — in-place depth tensor mutation without .clone() — can corrupt self._tiled_camera.data.output["depth"] mid-step and is not caught by any existing test (since the render-correctness tests only check that output is non-zero after a step, not that it is unmodified).
  • source/isaaclab_tasks/isaaclab_tasks/direct/shadow_hand/feature_extractor.py — specifically the _preprocess_images depth branch.

Important Files Changed

Filename Overview
source/isaaclab_tasks/isaaclab_tasks/direct/shadow_hand/feature_extractor.py Large refactor: introduces data-type-driven channel configuration, an enabled flag, and a dict-based camera API. One logic issue: depth preprocessing modifies the camera output tensor in-place without .clone(), while the sibling _save_images already handles this correctly with a clone.
source/isaaclab_tasks/isaaclab_tasks/direct/shadow_hand/shadow_hand_vision_env.py Adds _validate_cfg for early preset-compatibility checking, switches self.object to dynamic class instantiation for Newton support, and aligns the asymmetric-state API with the parent class. Logic changes are well-motivated and follow existing patterns.
source/isaaclab_tasks/isaaclab_tasks/direct/shadow_hand/shadow_hand_vision_env_cfg.py Introduces ShadowHandVisionTiledCameraCfg preset class with all supported data types, a benchmark config, and a typo fix. Clean and well-documented.
source/isaaclab_tasks/isaaclab_tasks/direct/shadow_hand/shadow_hand_env_cfg.py Adds ShadowHandSceneCfg to make clone_in_fabric preset-selectable (PhysX=True, Newton=False) and wires it into ShadowHandEnvCfg.
source/isaaclab_tasks/test/test_shadow_hand_vision_presets.py New comprehensive test covering validation logic (with mock configs), preset resolution, and render-correctness integration tests. xfail(strict=True) for known Newton+IsaacRTX incompatibility is a good pattern. OVRTX tests are skipped.

Sequence Diagram

sequenceDiagram
    participant Env as ShadowHandVisionEnv
    participant FE as FeatureExtractor
    participant Net as FeatureExtractorNetwork
    participant Cam as TiledCamera

    Env->>Env: _get_observations()
    Env->>Cam: data.output (dict[str, Tensor])
    Env->>FE: step(camera_output, gt_pose)
    alt write_image_to_file
        FE->>FE: _save_images(camera_output) — clones depth ✓
    end
    alt not cfg.enabled
        FE-->>Env: None, zeros(N, 27)
    else enabled
        FE->>FE: _preprocess_images(camera_output)
        Note over FE: depth branch: in-place ops on<br/>potentially aliased float32 tensor ⚠
        FE->>Net: forward(img_input)
        Net-->>FE: predicted_pose (N, 27)
        alt cfg.train
            FE->>FE: compute pose_loss, backprop
            FE-->>Env: pose_loss, predicted_pose
        else inference
            FE-->>Env: None, predicted_pose
        end
    end
    Env->>Env: log pose_loss if not None
    Env-->>Env: observations dict
Loading

Comments Outside Diff (1)

  1. source/isaaclab_tasks/isaaclab_tasks/direct/shadow_hand/feature_extractor.py, line 305-309 (link)

    Depth tensor modified in-place without cloning

    In _preprocess_images, the depth branch operates directly on img without first calling .clone(). If camera_output["depth"] is already float32 (the common case for depth data), then img = camera_output["depth"].float() returns the same tensor (no allocation), so the subsequent in-place operations silently corrupt self._tiled_camera.data.output["depth"] for the rest of that step.

    Note that _save_images correctly guards against this with img = img.clone() before any in-place depth operations. The same defensive copy is missing here.

Last reviewed commit: ab8ea55

@AntoineRichard AntoineRichard left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. I don't think the test failures are related.

@kellyguo11
kellyguo11 merged commit 2f5358a into isaac-sim:develop Mar 6, 2026
6 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure isaac-lab Related to Isaac Lab team isaac-sim Related to Isaac Sim team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants