Skip to content

Enable Replicator dynamically for Isaac RTX - #6797

Merged
kellyguo11 merged 3 commits into
isaac-sim:developfrom
kellyguo11:kellyguo11/fix-replicator-kit-dependency
Aug 1, 2026
Merged

kellyguo11 merged 3 commits into
isaac-sim:developfrom
kellyguo11:kellyguo11/fix-replicator-kit-dependency

Conversation

@kellyguo11

@kellyguo11 kellyguo11 commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

Dynamically enables omni.replicator.core when IsaacRtxRenderer is
constructed, before global renderer settings can import the Replicator module.

PR #6499 intentionally removed broad Isaac Sim extension dependencies from the
Kit experiences because Replicator directly depends on omni.warp.core.
Declaring Replicator statically allows Kit to resolve the bundled Warp
extension during startup, before Isaac Lab's selected Warp package is
established.

The Isaac RTX renderer module imports Isaac Lab's warp first, then enables
Replicator only when that renderer is selected. Replicator's dependency
resolution can therefore no longer replace the already-loaded public warp
module. The base .kit experiences remain unchanged.

The regression test verifies that runtime enablement happens before global
settings can perform the first omni.replicator.core import.

Type of change

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

Screenshots

Not applicable; this is a renderer initialization fix.

Validation

  • Confirmed the focused regression test fails without the runtime enablement
    call.
  • .\isaaclab.bat -p -m pytest source\isaaclab_physx\test\renderers\test_isaac_rtx_renderer_contract.py -q
    (10 passed)
  • Launched the minimal headless Kit experience, constructed
    IsaacRtxRenderer with DLAA, and verified:
    • omni.replicator.core becomes enabled dynamically.
    • The warp module object and filesystem path are identical before and
      after Replicator enablement.
    • Kit's known duplicate-public-module warning prevents bundled Warp from
      replacing Isaac Lab's Warp.
  • .\isaaclab.bat -p tools\changelog\cli.py check develop
  • .\isaaclab.bat -f

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with .\isaaclab.bat -f
  • Documentation changes are not required for this internal renderer initialization fix
  • My changes generate no new unexpected warnings
  • I have added tests that prove the fix is effective
  • I have added a changelog fragment for the touched package
  • My name already exists in CONTRIBUTORS.md

Declare Replicator directly in the GUI and headless base experiences
because Isaac RTX renderer settings import its Python module.

Keep bundled Warp and pip archive extensions excluded so Isaac Lab's
installed versions remain authoritative.
@github-actions github-actions Bot added bug Something isn't working isaac-sim Related to Isaac Sim team isaac-lab Related to Isaac Lab team labels Jul 30, 2026
Load Replicator through the extension manager only after Isaac Lab's
Warp module is already imported. This prevents Kit startup from selecting
the bundled Warp dependency.

Replace the static app dependency test with renderer initialization
coverage that verifies Replicator is enabled before global settings.
@kellyguo11 kellyguo11 changed the title Fix Replicator initialization in base Kit apps Enable Replicator dynamically for Isaac RTX Jul 31, 2026
@kellyguo11
kellyguo11 marked this pull request as ready for review July 31, 2026 00:55
@kellyguo11
kellyguo11 requested a review from a team July 31, 2026 00:55
@kellyguo11
kellyguo11 requested review from huidongc and pbarejko July 31, 2026 00:55
@greptile-apps

greptile-apps Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Dynamically enables Replicator during Isaac RTX renderer initialization before global renderer settings are applied.

  • Imports and invokes the shared extension-enablement helper when constructing IsaacRtxRenderer.
  • Adds a regression test that verifies Replicator enablement precedes global settings application.
  • Adds an IsaacLab PhysX changelog fragment describing the initialization fix.

Confidence Score: 5/5

The PR appears safe to merge, with the new initialization order matching existing extension-enablement patterns and no actionable defects identified.

The renderer loads Isaac Lab’s Warp module before enabling Replicator, enables the extension idempotently before any global setting can import it, and the regression test captures the required call order.

Important Files Changed

Filename Overview
source/isaaclab_physx/isaaclab_physx/renderers/isaac_rtx_renderer.py Enables Replicator before global RTX settings can import it, while preserving the intended Warp-first import order.
source/isaaclab_physx/test/renderers/test_isaac_rtx_renderer_contract.py Adds a focused constructor contract test and updates an existing test to isolate the new extension-enablement side effect.
source/isaaclab_physx/changelog.d/kellyguo11-fix-replicator-dynamic-enable.rst Documents the minimal-Kit renderer initialization fix.

Sequence Diagram

sequenceDiagram
    participant Caller
    participant Renderer as IsaacRtxRenderer
    participant Kit as Kit Extension Manager
    participant Settings as Global RTX Settings
    Caller->>Renderer: construct(cfg)
    Renderer->>Kit: enable omni.replicator.core
    Kit-->>Renderer: extension enabled/already active
    Renderer->>Settings: apply global settings
    Settings-->>Renderer: settings applied
Loading

Reviews (1): Last reviewed commit: "Merge branch 'develop' into kellyguo11/f..." | Re-trigger Greptile

@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

The PR scopes dynamic Replicator activation to IsaacRtxRenderer construction, after Isaac Lab imports Warp and before renderer settings may import Replicator. The changed initialization path, focused ordering test, and package changelog are consistent with the stated regression fix.

  • Design and architecture: Keeping Replicator out of the base Kit experiences preserves the intended dependency boundary and activates it only when the Isaac RTX backend is selected. Repeated renderer construction relies on the existing extension-enablement utility to handle an already-enabled extension.
  • API: The renderer constructor signature, configuration types, exports, and public symbols remain unchanged. The change affects internal initialization timing only, and the required isaaclab_physx changelog fragment is present under the correct category.
  • Implementation: Module-level ordering imports Isaac Lab's Warp before constructor-time Replicator activation, while the constructor enables Replicator before global settings, determinism settings, and Hydra attachment. The regression test directly checks the critical enable-before-global-settings ordering, and the existing constructor test isolates the new extension side effect.

No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.

Automated review; human maintainers own approval decisions.

@kellyguo11
kellyguo11 merged commit 5342130 into isaac-sim:develop Aug 1, 2026
95 of 104 checks passed
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
# Description

Dynamically enables `omni.replicator.core` when `IsaacRtxRenderer` is
constructed, before global renderer settings can import the Replicator
module.

PR isaac-sim#6499 intentionally removed broad Isaac Sim extension dependencies
from the
Kit experiences because Replicator directly depends on `omni.warp.core`.
Declaring Replicator statically allows Kit to resolve the bundled Warp
extension during startup, before Isaac Lab's selected Warp package is
established.

The Isaac RTX renderer module imports Isaac Lab's `warp` first, then
enables
Replicator only when that renderer is selected. Replicator's dependency
resolution can therefore no longer replace the already-loaded public
`warp`
module. The base `.kit` experiences remain unchanged.

The regression test verifies that runtime enablement happens before
global
settings can perform the first `omni.replicator.core` import.

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## Screenshots

Not applicable; this is a renderer initialization fix.

## Validation

- Confirmed the focused regression test fails without the runtime
enablement
  call.
- `.\isaaclab.bat -p -m pytest
source\isaaclab_physx\test\renderers\test_isaac_rtx_renderer_contract.py
-q`
  (`10 passed`)
- Launched the minimal headless Kit experience, constructed
  `IsaacRtxRenderer` with DLAA, and verified:
  - `omni.replicator.core` becomes enabled dynamically.
- The `warp` module object and filesystem path are identical before and
    after Replicator enablement.
- Kit's known duplicate-public-module warning prevents bundled Warp from
    replacing Isaac Lab's Warp.
- `.\isaaclab.bat -p tools\changelog\cli.py check develop`
- `.\isaaclab.bat -f`

## Checklist

- [x] I have read and understood the contribution guidelines
- [x] I have run the pre-commit checks with `.\isaaclab.bat -f`
- [x] Documentation changes are not required for this internal renderer
initialization fix
- [x] My changes generate no new unexpected warnings
- [x] I have added tests that prove the fix is effective
- [x] I have added a changelog fragment for the touched package
- [x] My name already exists in `CONTRIBUTORS.md`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working 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.

1 participant