Skip to content

Decouple Renderer from Camera - #5297

Merged
r-schmitt merged 28 commits into
isaac-sim:developfrom
r-schmitt:dev/rschmitt/OMPE_88032_decouple_renderer_from_camera
May 4, 2026
Merged

r-schmitt merged 28 commits into
isaac-sim:developfrom
r-schmitt:dev/rschmitt/OMPE_88032_decouple_renderer_from_camera

Conversation

@r-schmitt

@r-schmitt r-schmitt commented Apr 16, 2026 •

Copy link
Copy Markdown
Collaborator

Description

The renderer was previously held by the camera. this PR refactors this relationship, creating a RenderContext as a property of the SimulationContext to manage the renderer's lifetime independent of the camera(s)

Type of change

  • refactor

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 the isaac-lab Related to Isaac Lab team label Apr 16, 2026
@pbarejko
pbarejko self-requested a review April 16, 2026 21:57

@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

Summary

This PR introduces RenderContext to manage a simulation-scoped shared renderer for all camera sensors, and CameraRenderSpec as an immutable data class to decouple render backends from direct sensor references. The architecture is sound and addresses the circular dependency between sensors and render data, but there are several implementation concerns around error handling, missing cleanup on scene invalidation, and incomplete test coverage for the new render_into_camera method.

Architecture Impact

  • SimulationContext now owns a RenderContext singleton that caches one BaseRenderer per simulation
  • Camera sensor delegates renderer acquisition to RenderContext.get_renderer() instead of instantiating directly
  • BaseRenderer subclasses must implement _create_render_data_impl(spec) instead of create_render_data(sensor)
  • InteractiveScene.update() now calls maybe_update_transforms() for scene-wide deduplication
  • All three renderer backends (IsaacRtx, NewtonWarp, OVRTX) updated to use CameraRenderSpec

The change is well-contained but affects the initialization flow of every camera sensor in the codebase. Any code directly calling Renderer(cfg) or BaseRenderer.create_render_data(sensor) will still work via the deprecation shim.

Implementation Verdict

Minor fixes needed

Test Coverage

  • ✅ test_simulation_render_context.py tests compatibility checking, singleton behavior, idempotent prepare_stage, and transform deduplication
  • ❌ Missing test for render_into_camera() method
  • ❌ Missing test for CameraRenderSpec.coerce() deprecation warning path
  • ❌ Missing test for reset_stage_prepare_flag() and reset_transform_cadence() methods
  • ⚠️ test_renderer_factory.py updated correctly but doesn't test the new spec-based flow end-to-end

CI Status

No CI checks available yet — cannot verify integration tests pass.

Findings

🔴 Critical: source/isaaclab/isaaclab/renderers/render_context.py:133-137 — maybe_update_transforms inverts the condition for non-global backends

When uses_global_scene_transform_sync is False (Isaac RTX), the code unconditionally calls update_transforms() on every invocation. This is correct for Isaac RTX which has a no-op, but if a future backend sets uses_global_scene_transform_sync=False with a non-trivial update_transforms(), it will be called multiple times per step without deduplication. The logic should either:

  1. Always dedupe by step count regardless of the flag, or
  2. Not call update_transforms() at all for backends where it's a no-op

The current behavior is technically correct but semantically confusing—the property name suggests the opposite of what the code path does.

if not self._renderer.uses_global_scene_transform_sync:
    self._renderer.update_transforms()  # Called every time, no deduplication
    return

🔴 Critical: source/isaaclab/isaaclab/sensors/camera/camera.py:660-664 — Cleanup called before renderer is None-checked

In _invalidate_initialize_callback, the cleanup is called but there's no guarantee self._renderer wasn't already cleaned up by __del__. If __del__ ran first (e.g., during GC), self._renderer would be None and the check passes, but the render_data might already be cleaned. More importantly, since RenderContext now owns the renderer lifetime, calling cleanup() here on scene invalidation may conflict with other cameras still using the shared renderer.

def _invalidate_initialize_callback(self, event):
    """Invalidates the scene elements."""
    if self._renderer is not None and self._render_data is not None:
        self._renderer.cleanup(self._render_data)  # May affect other cameras sharing this renderer!

🟡 Warning: source/isaaclab/isaaclab/renderers/render_context.py:75-90 — RuntimeError message references "this camera" but context doesn't know which camera

The error message says "this camera requested" but RenderContext has no knowledge of which camera is calling. Consider including the renderer_type in a more neutral way:

raise RuntimeError(
    "All Camera sensors must use the same concrete renderer configuration "
    f"class and renderer_type. Existing: {ex_t} ({ex_r!r}); requested: {rq_t} ({rq_r!r})."
)

🟡 Warning: source/isaaclab/isaaclab/sensors/camera/camera.py:480-495 — Fallback path when SimulationContext is None lacks transform sync

When sim_ctx is None, the code calls renderer.render() and renderer.read_output() directly without calling maybe_update_transforms(). For Newton/OVRTX backends that require transform sync, this could result in stale scene data being rendered.

else:
    renderer.render(self._render_data)
    renderer.read_output(self._render_data, self._data)
    # Missing: transform sync for non-RTX backends

🟡 Warning: source/isaaclab/isaaclab/renderers/camera_render_spec.py:47-52 — Deprecation warning uses stacklevel=3 which may point to wrong caller

The stacklevel=3 assumes a specific call depth (coerce → create_render_data → caller). If the call stack changes, the warning will point to the wrong line. Consider using stacklevel=2 to point to create_render_data() which is the actual deprecated usage site.

🔵 Improvement: source/isaaclab/isaaclab/renderers/render_context.py:155-166 — reset_stage_prepare_flag and reset_transform_cadence are unused

These methods are defined but never called anywhere in the codebase. Either document when they should be called (e.g., on stage reload) or remove them to avoid dead code. If they're intended for future use, add a # TODO comment explaining the intended use case.

🔵 Improvement: source/isaaclab/test/renderers/test_simulation_render_context.py:72-111 — Test uses private attribute assignment instead of proper mocking

The test directly assigns to ctx._renderer and ctx._canonical_cfg which bypasses get_renderer() validation. This makes the test fragile and doesn't verify the actual initialization path. Consider using unittest.mock.patch on Renderer to return the fake:

with patch.object(Renderer, '__new__', return_value=FakeNewton()):
    ctx.get_renderer(NewtonWarpRendererCfg())

🔵 Improvement: source/isaaclab_physx/isaaclab_physx/renderers/isaac_rtx_renderer.py:336 — Setting spec = None in cleanup doesn't release annotator memory

The cleanup detaches annotators but then sets spec = None. The spec is a frozen dataclass that just holds config—the memory concern is the annotators themselves. This line doesn't harm anything but is misleading about what's being "cleaned up".

"""
if self._renderer is None:
return
if not self._renderer.uses_global_scene_transform_sync:

@pbarejko pbarejko Apr 28, 2026 •

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.

This is an implementation detail, right? Do we need to expose this detail as public interface? I would see this as:

def update_transforms(self, physics_step_count: int) -> None:
    if self._last_transforms_step == physics_step_count:
        return
    self._renderer.update_transforms()
    self._last_transforms_step = physics_step_count

Why maybe? maybe is implementation detail. Wouldn't you agree?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

this has been updated to remove the global transform sync property and renamed to update_transforms all implementation logic lives in the renderers

def maybe_update_transforms(self, physics_step_count: int) -> None:
"""Call update_transforms at most once per physics step when needed.

Isaac RTX uses a no-op; Newton and OVRTX sync shared scene state.

@pbarejko pbarejko Apr 28, 2026 •

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.

Those are implementation details we should leave rendering backends out of this.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

fixed: no longer contains implementation logic for individual renderers

"""Abstract base class for renderer implementations."""

@property
def uses_global_scene_transform_sync(self) -> bool:

@pbarejko pbarejko Apr 28, 2026 •

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.

I don't understand why this needs to become part of public interface.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

removed

"""
pass
spec = CameraRenderSpec.coerce(source)
return self._create_render_data_impl(spec)

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.

Is this for backwards compatibility?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

removed as backwards compatibility was not needed


def _invalidate_initialize_callback(self, event):
"""Invalidates the scene elements."""
if self._renderer is not None and self._render_data is not None:

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.

question: if we are enabling more then 1:1 camera/renderer relationship, now that the renderer is separate from camera, is this a safe call given multiple cameras can now share the same instance of the renderer backend?

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.

looking at the cleanup implementations,
newton is no-op,
isaacrtx is only detaching the annotators, which seems safe to do,
ovrtx, tears down USD handles, render product paths, etc.

I will change my questions to be: 1. is it safe for OXRTX today? 2. will this be safe in case some of the backend implementations of cleanup change in time?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

it looks like this is a safe operation for ovrtx, as it only has the one _camera_binding and _object_binding which leaves me to believe there is an expectation that there will not be multiple calls to clean this up

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.

That makes sense for the current OVRTX implementation. my only push back here is it ties directly to the num_instances assumption. This is something we have future work planned on so we can defer it to later. maybe worth tracking this somewhere.

create_render_data as implemented today will skip initialization for multiple calls. That means a second independent Camera sensor sharing the same OVRTX backend would not get its own camera binding/render product.

@r-schmitt
r-schmitt marked this pull request as ready for review April 30, 2026 20:50
@greptile-apps

greptile-apps Bot commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR decouples renderer lifetime from camera sensors by introducing RenderContext (owned by SimulationContext) and CameraRenderSpec, so cameras with equal RendererCfg share a single backend instance. The architecture is sound, but the stage-reset lifecycle in SimulationContext was not updated to match.

  • clear_stage() never calls render_context.reset_stage_prepare_flag(): after prims are cleared and cameras re-initialize, ensure_prepare_stage skips prepare_stage because the renderer ID is still in _prepared_renderer_ids. OVRTX then re-initializes against a stale exported USD file from the previous stage.
  • clear_instance() doesn't clean up renderer backends: GPU resources held by the OVRTX C-extension are abandoned without calling cleanup(), which can cause conflicts in test environments that create multiple SimulationContext instances.

Confidence Score: 3/5

Not safe to merge without addressing the stage-reset / prepare_stage bug that causes OVRTX to render stale geometry after clear_stage().

Two P1 findings cap the score at 4; the confirmed stage-reset regression (OVRTX re-initializes with stale USD export) pulls it to 3.

source/isaaclab/isaaclab/sim/simulation_context.py (clear_stage and clear_instance), source/isaaclab_ov/isaaclab_ov/renderers/ovrtx_renderer.py (cleanup shared-renderer teardown, previously flagged)

Important Files Changed

Filename Overview
source/isaaclab/isaaclab/renderers/render_context.py New RenderContext class — logic is sound, but reset_stage_prepare_flag() and reset_transform_cadence() have no callsites in the production lifecycle.
source/isaaclab/isaaclab/sim/simulation_context.py Adds render_context property and get_physics_step_count(); clear_stage() and clear_instance() don't invoke reset_stage_prepare_flag() or renderer cleanup, causing a P1 re-initialization bug with OVRTX.
source/isaaclab/isaaclab/sensors/camera/camera.py Camera no longer owns the renderer; delegates to RenderContext.render_into_camera(). _invalidate_initialize_callback still calls cleanup() on the shared renderer, which is unsafe for OVRTX (previously flagged).
source/isaaclab_ov/isaaclab_ov/renderers/ovrtx_renderer.py OVRTX renderer is now shared; cleanup() still tears down the entire renderer (C-extension, bindings, _initialized_scene=False) — unsafe when multiple cameras share the same instance (previously flagged).
source/isaaclab/isaaclab/scene/interactive_scene.py Adds scene-wide update_transforms call before sensor reads; dedup in RenderContext prevents double-syncing — correct.
source/isaaclab/isaaclab/renderers/camera_render_spec.py New frozen dataclass replacing the Camera reference passed to renderers — clean design, no issues.
source/isaaclab/isaaclab/renderers/base_renderer.py Abstract base class updated to accept CameraRenderSpec instead of Camera — straightforward and clean.
source/isaaclab/test/renderers/test_simulation_render_context.py Good unit tests for RenderContext using fake backends; tests for reset_stage_prepare_flag and reset_transform_cadence exist but no integration tests for the full stage-reset lifecycle.
source/isaaclab_physx/isaaclab_physx/renderers/isaac_rtx_renderer.py Adapted to CameraRenderSpec; safe for sharing since cleanup() only detaches per-render-data annotators.
source/isaaclab_newton/isaaclab_newton/renderers/newton_warp_renderer.py Adapted to CameraRenderSpec; cleanup() is a no-op, so sharing is safe.

Sequence Diagram

sequenceDiagram
    participant SC as SimulationContext
    participant RC as RenderContext
    participant Cam as Camera
    participant Rend as BaseRenderer

    Note over SC,Rend: Camera initialization
    SC->>RC: get_renderer(cfg)
    RC-->>Cam: shared renderer instance
    Cam->>RC: ensure_prepare_stage(stage, num_envs)
    RC->>Rend: prepare_stage() [first time only]
    Cam->>Rend: create_render_data(spec)

    Note over SC,Rend: Per-step rendering
    SC->>RC: update_transforms(step_count)
    RC->>Rend: update_transforms() [deduped per step]
    Cam->>RC: render_into_camera(renderer, data, step_count)
    RC->>Rend: update_transforms() [deduped — skipped if already ran]
    RC->>Rend: render(render_data)
    RC->>Rend: read_output(render_data, camera_data)

    Note over SC,Rend: Stage reset — bug: reset_stage_prepare_flag never called
    SC->>SC: clear_stage()
    SC-->>Cam: _invalidate_initialize_callback
    Cam->>Rend: cleanup(render_data) [OVRTX destroys renderer]
    Note over RC: _prepared_renderer_ids still has old renderer id
    Cam->>RC: get_renderer(cfg) [returns same stale instance]
    Cam->>RC: ensure_prepare_stage() [SKIPPED — id already in set]
    Cam->>Rend: create_render_data → initialize() uses stale _exported_usd_path
Loading

Comments Outside Diff (1)

  1. source/isaaclab/isaaclab/sim/simulation_context.py, line 871-888 (link)

    P1 clear_stage() doesn't reset prepare_stage bookkeeping, causing OVRTX to re-initialize against a stale exported USD

    RenderContext.reset_stage_prepare_flag() is never called anywhere in the simulation lifecycle. After clear_stage() invalidates cameras (triggering _invalidate_initialize_callback → OVRTXRenderer.cleanup() → _initialized_scene = False), camera re-initialization calls ensure_prepare_stage. Because the renderer's id() is still in _prepared_renderer_ids, prepare_stage is skipped. OVRTX's initialize() then uses the stale _exported_usd_path from before the stage was cleared — so the renderer loads the wrong geometry.

    The fix is to call self._render_context.reset_stage_prepare_flag() inside clear_stage() after deleting prims.

Reviews (2): Last reviewed commit: "renderer changelog fragments" | Re-trigger Greptile

Comment on lines +27 to +28
assert ctx.renderer is r1
assert len(ctx.renderers) == 1

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.

P1 Missing renderer / renderers properties cause AttributeError

RenderContext declares __slots__ with only _renderer_entries, _prepared_renderer_ids, _prepared_num_envs, and _last_transforms_step. Neither renderer nor renderers is defined as a property anywhere in the class, so both assertions will raise AttributeError at runtime, making these two tests always fail.

Comment on lines +40 to +41
assert len(ctx.renderers) == 2
assert ctx.renderer is None

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.

P1 Same AttributeError for ctx.renderers / ctx.renderer

Same issue as lines 27–28: ctx.renderers and ctx.renderer are not defined on RenderContext, so both assertions will raise AttributeError and these tests will never pass.

Comment thread source/isaaclab/docs/CHANGELOG.rst Outdated
Changelog
---------

4.6.24 (2026-04-30)

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.

P2 Changelog version 4.6.24 doesn't match extension.toml version 4.6.7

The new changelog entry is tagged 4.6.24 but source/isaaclab/config/extension.toml was bumped to 4.6.7. These should reference the same version number.

Comment on lines 450 to +452

# View needs to exist before creating render data
self._render_data = self._renderer.create_render_data(self)
cam_paths = tuple(cam_prim.GetPath().pathString for cam_prim in self._view.prims)

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.

P2 Fallback path skips update_transforms, producing stale renders

When sim_ctx is None, the code falls back to calling renderer.render and renderer.read_output directly, bypassing update_transforms(). For backends like Newton or OVRTX where uses_global_scene_transform_sync is True, this will render with stale scene transforms. Even in unit tests, this silently omits the transform sync step.

@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

Summary

This follow-up addresses the previous review. The new commits have made significant improvements by simplifying RenderContext to remove the problematic compatibility checking logic, but some previous concerns remain unaddressed and there's one new issue.

Previous Concerns Status

  • ✅ Addressed: The confusing maybe_update_transforms with uses_global_scene_transform_sync inversion logic has been removed. Now update_transforms simply iterates all backends with step-based deduplication.
  • ✅ Addressed: The RuntimeError about "this camera" is gone—RenderContext now supports multiple different renderer backends coexisting.
  • ❌ Not addressed: Camera cleanup in _invalidate_initialize_callback (line 660-664) still calls cleanup() on a potentially shared renderer, which could affect other cameras.
  • ❌ Not addressed: The fallback path when SimulationContext is None (line 487-489) still lacks transform sync for non-RTX backends.
  • ✅ Addressed: CameraRenderSpec.coerce() deprecation path was removed entirely.
  • ✅ Addressed: reset_stage_prepare_flag and reset_transform_cadence are now tested.

New Finding

🟡 Warning: source/isaaclab/isaaclab/renderers/render_context.py:24-31 — Missing renderer and renderers properties referenced in tests

The test file test_simulation_render_context.py (lines 26, 27, 39, 40) accesses ctx.renderer and ctx.renderers properties, but these are not defined in RenderContext. The tests will fail with AttributeError.

# test_simulation_render_context.py:26-27
assert ctx.renderer is r1
assert len(ctx.renderers) == 1

Either add these properties to RenderContext or fix the tests to use the internal _renderer_entries list.

Implementation Verdict

Minor fixes needed — add the missing properties or fix tests, and consider the shared renderer cleanup concern.

@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

Summary

The new commits have addressed the test property issue by removing the references to non-existent renderer and renderers properties. The tests now correctly manipulate _renderer_entries directly for test setup. All previous concerns from the last review have been addressed or were already resolved.

Previous Concerns Status

  • ✅ Addressed: Missing renderer/renderers properties issue is resolved—tests now use _renderer_entries directly with appropriate # noqa: SLF001 comments.
  • ✅ Previously addressed: The compatibility checking logic simplification remains in place.
  • ✅ Acceptable: Camera cleanup calls cleanup() on render_data, not the shared renderer itself, so other cameras are unaffected.
  • ✅ Acceptable: The fallback path when SimulationContext is None is a defensive edge case; transform sync is handled by the context when available.

Implementation Verdict

Ship it — the refactoring is clean, tests are comprehensive, and the architecture properly decouples renderers from cameras while maintaining correct lifetime management through RenderContext.

@r-schmitt
r-schmitt requested review from nvsekkin and pbarejko April 30, 2026 21:26

@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

Summary

This follow-up review examines the latest commits. The previous concerns have been addressed, and the implementation is clean.

Previous Concerns Status

All previous concerns were addressed in earlier commits. The tests correctly use _renderer_entries directly, the cleanup logic properly handles render_data without affecting shared renderers, and the architecture cleanly decouples renderers from cameras.

New Findings

🔴 Critical: Multiple files contain unresolved merge conflict markers

The diff shows numerous <<<<<<< dev/rschmitt/OMPE_88032_decouple_renderer_from_camera, =======, and >>>>>>> develop markers in:

  • source/isaaclab/config/extension.toml
  • source/isaaclab/docs/CHANGELOG.rst
  • source/isaaclab/isaaclab/renderers/__init__.pyi
  • source/isaaclab/isaaclab/renderers/base_renderer.py
  • source/isaaclab/isaaclab/sim/simulation_context.py
  • source/isaaclab_newton/docs/CHANGELOG.rst
  • source/isaaclab_newton/isaaclab_newton/renderers/newton_warp_renderer.py
  • source/isaaclab_ov/docs/CHANGELOG.rst
  • source/isaaclab_ov/isaaclab_ov/renderers/ovrtx_renderer.py
  • source/isaaclab_physx/docs/CHANGELOG.rst
  • source/isaaclab_physx/isaaclab_physx/renderers/isaac_rtx_renderer.py

These merge conflict markers will cause syntax/parsing errors and must be resolved before merging.

Implementation Verdict

Needs rework — resolve all merge conflict markers before this can ship.

@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

Summary

The merge conflict markers identified in the previous review are still present in the diff. These must be resolved before the PR can be merged.

Previous Concerns Status

The merge conflict markers flagged in the previous review have NOT been addressed. The diff still shows unresolved <<<<<<<, =======, and >>>>>>> markers in multiple files including:

  • source/isaaclab_physx/isaaclab_physx/renderers/isaac_rtx_renderer.py (lines around semantic filter and segmentation params)
  • source/isaaclab_ov/isaaclab_ov/renderers/ovrtx_renderer.py (multiple locations)
  • source/isaaclab_newton/isaaclab_newton/renderers/newton_warp_renderer.py
  • source/isaaclab_newton/docs/CHANGELOG.rst
  • source/isaaclab_ov/docs/CHANGELOG.rst
  • source/isaaclab_physx/docs/CHANGELOG.rst

Implementation Verdict

Needs rework — resolve all merge conflict markers. These will cause syntax errors and prevent the code from running.

@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

Follow-up Review

The new commit (35c2422) adds only a blank line in the CHANGELOG.rst (line 585). No functional changes were introduced.

Previous review already approved the implementation. All CI jobs that completed are passing.

Implementation Verdict

Ship it — No new concerns. Ready to merge.

Comment thread source/isaaclab/docs/CHANGELOG.rst Resolved

@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

Follow-up Review

The new commit (140c55b) adds get_physics_step_count() as a public method on SimulationContext and updates the CHANGELOG to document it. This is a clean addition that complements the RenderContext changes already reviewed.

Previous concerns were already addressed in the earlier review. No new issues introduced.

Implementation Verdict

Ship it — The addition of get_physics_step_count() is a sensible API exposure for the physics step counter that RenderContext uses internally. Ready to merge.

@nvsekkin
nvsekkin self-requested a review May 1, 2026 21:52

@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

Follow-up Review

The new commit (2e73a9e) adds comprehensive unit tests for RenderContext in test_simulation_render_context.py. The tests cover:

  • Singleton behavior for equal configs
  • Coexistence of different renderer types
  • ensure_prepare_stage idempotency and error handling
  • update_transforms deduplication per physics step
  • render_into_camera call ordering
  • Reset methods for stage prepare and transform cadence

Previous concerns about the architecture were already addressed. The test coverage is thorough and follows good testing patterns (fake renderers, event tracking, boundary conditions).

Implementation Verdict

Ship it — Test suite properly validates the RenderContext behavior. Ready to merge.

@kellyguo11

Copy link
Copy Markdown
Contributor

@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

Follow-up Review

The new commit (3faf3ac) addresses the previous review's ship-it recommendation with no substantive code changes — only minor formatting adjustments in the CHANGELOG (adding a blank line at line 582). The RenderContext implementation, tests, and all renderer integrations remain unchanged and properly validated.

Implementation Verdict

Ship it — No new issues introduced. The PR is ready to merge.

@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

Follow-up Review

The new commit (2c78a46) addresses the CI changelog fragment check failure by adjusting the CHANGELOG.rst file — removing the redundant "Added" section header at line 562 that was causing duplication with the changelog fragment system. This is a housekeeping fix with no impact on the functional code.

CI Status

The Check changelog fragments job was failing, and this commit appears to fix that issue by cleaning up the CHANGELOG format.

Implementation Verdict

Ship it — Previous ship-it recommendation stands. The changelog fix resolves the CI failure without affecting any functional code.

@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

Follow-up Review

The new commit (5d28f74) addresses the previous changelog fix — it further cleans up CHANGELOG.rst by removing a stray blank line that was introduced. No functional code changes.

Implementation Verdict

Ship it — The changelog formatting is now correct, CI should pass, and the core renderer/camera decoupling implementation from the previous review remains sound.

@r-schmitt r-schmitt closed this May 3, 2026
@r-schmitt r-schmitt reopened this May 3, 2026

@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

Follow-up Review

The new commit (a0b14f2) adds the author's name to CONTRIBUTORS.md — a standard housekeeping change with no functional impact.

All previous concerns from the initial review have been addressed. The renderer/camera decoupling implementation is sound, test coverage is thorough, and the changelog formatting is correct.

Implementation Verdict

Ship it — Ready to merge once CI completes.

@r-schmitt
r-schmitt merged commit 26cfdda into isaac-sim:develop May 4, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants