You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Removes extension registry setting in app files for Isaac Sim 6.0 - #4850
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)
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.
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.
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.
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)
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there