Skip to content

Adds tiled camera views to Kit Visualizer and Newton Visualizer - #5696

Merged
matthewtrepte merged 63 commits into
isaac-sim:developfrom
matthewtrepte:mtrepte/tiled_viz
May 20, 2026
Merged

matthewtrepte merged 63 commits into
isaac-sim:developfrom
matthewtrepte:mtrepte/tiled_viz

Conversation

@matthewtrepte

@matthewtrepte matthewtrepte commented May 20, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Adds tiled camera views to Kit Visualizer and Newton Visualizer
Expands visualizer cfg to included tiled_camera fields
Adds a feature for tiled cameras to follow/track robot bodies

I will add some tiled visualizer tests once Isaac Sim CI image can be moved to latest develop.

Type of change

  • New feature (non-breaking change which adds functionality)
  • Documentation update

Screenshots

Please attach before and after screenshots of the change if applicable.

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 documentation Improvements or additions to documentation isaac-mimic Related to Isaac Mimic team labels May 20, 2026
@greptile-apps

greptile-apps Bot commented May 20, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds tiled camera image views to the Kit and Newton visualizers, introduces a new camera_view.py utility module for camera resolution and RGB composition, and refactors VisualizerCfg to replace cam_source/cam_prim_path with tiled-camera fields. It also propagates scene_data_provider context to NewtonManager.get_state, adds bind_address/display_address support to Viser, and deduplicates Fabric re-sync logic in PhysxManager.

  • New tiled camera fields in VisualizerCfg: tiled_cam_view (defaults to True), tiled_cam_num, tiled_cam_env_indices, tiled_cam_prim_path, tiled_cam_eye, and tiled_cam_target_prim_path let visualizers show a non-interactive grid of camera RGB outputs alongside the interactive viewport.
  • KitVisualizer creates a dockable omni.ui image panel populated each frame from a generated or scene-owned Camera sensor; NewtonVisualizer feeds the same tensor into Newton's ImageLogger; Rerun and Viser drop the old cam_source='prim_path' flow and instead use the shared camera_view.py helpers.
  • Supporting plumbing: SimulationContext.register_interactive_scene forwards the InteractiveScene to the SceneDataProvider so visualizers can discover scene-owned camera sensors; BaseSceneDataProvider formalises the abstract interface; camera.py adds explicit warp dtype hints on set_world_poses paths.

Confidence Score: 3/5

Several correctness issues in the new visualizer paths need resolution before merging.

The default tiled_cam_view=True in VisualizerCfg will cause KitVisualizer to raise a RuntimeError for any user who does not pass --enable_cameras, including headless CI runs, because the headless bail-out sits after the cameras-enabled guard. The per-frame simulation pause/resume in _sync_camera_pose_updates_to_kit introduces significant overhead on every visualizer update tick. Manual invocation of camera_sensor.__del__() during cleanup risks double-free once the garbage collector processes the same object.

visualizer_cfg.py (default tiled_cam_view value and guard ordering), kit/kit_visualizer.py (_sync_camera_pose_updates_to_kit frequency and __del__ cleanup), envs/utils/camera_view.py (apply_camera_view_from_origins unused env_ids), and newton/newton_visualizer.py (DISPLAY check on non-Linux).

Important Files Changed

Filename Overview
source/isaaclab_visualizers/isaaclab_visualizers/kit/kit_visualizer.py Adds tiled camera image panel to KitVisualizer. Three issues: manual __del__ call on camera sensor cleanup risks double-free; _sync_camera_pose_updates_to_kit pauses/resumes simulation via Kit settings on every update frame; per-frame USD stage mutations via _set_usd_camera_pose scale poorly with tile count.
source/isaaclab/isaaclab/visualizers/visualizer_cfg.py Expands base VisualizerCfg with tiled camera fields. tiled_cam_view=True default causes KitVisualizer to raise RuntimeError when cameras aren't enabled (headless check is placed after the cameras-enabled guard). tiled_cam_num=57 is a suspicious debug value.
source/isaaclab/isaaclab/envs/utils/camera_view.py New utility module for tiled camera views: env index resolution, camera creation, pose updates, and RGB grid composition. Has an env_ids parameter in apply_camera_view_from_origins that is accepted but never forwarded to set_world_poses_from_view.
source/isaaclab_visualizers/isaaclab_visualizers/newton/newton_visualizer.py Adds tiled camera image logging to Newton viewer. DISPLAY env-var headless check misfires on macOS/Windows; same manual __del__ cleanup anti-pattern as KitVisualizer. Camera follow logic and Newton API compatibility shims look correct.
source/isaaclab/isaaclab/sim/simulation_context.py Adds register_interactive_scene for propagating scene context to the data provider; flushes deferred startup messages before the update loop. Minor cleanup of SDP close logic.
source/isaaclab_physx/isaaclab_physx/physics/physx_manager.py Extracts _sync_fabric_after_resume helper and calls it from both play and step_sim, deduplicating the fabric re-sync logic. Clean refactor.
source/isaaclab_visualizers/isaaclab_visualizers/rerun/rerun_visualizer.py Removes prim-path camera source, adds open_browser=False default suppression, deferred URL display, and passes scene_data_provider to get_state. Changes are well-guarded.
source/isaaclab_visualizers/isaaclab_visualizers/viser/viser_visualizer.py Adds bind_address/display_address support and deferred URL logging. Monkey-patching of ViserServer inside __init__ is a workaround but is properly restored via ExitStack. FOV propagation via camera.fov is guarded with hasattr.

Sequence Diagram

sequenceDiagram
    participant Env as DirectRLEnv / ManagerBasedEnv
    participant Sim as SimulationContext
    participant SDP as SceneDataProvider
    participant Viz as KitVisualizer / NewtonVisualizer
    participant Cam as Camera sensor
    participant UI as Kit UI / Newton ImageLogger

    Env->>Sim: register_interactive_scene(scene)
    Sim->>SDP: set_interactive_scene(scene)
    Note over SDP: camera sensors discoverable

    Env->>Viz: initialize(scene_data_provider)
    Viz->>SDP: get_camera_sensors() or create_visualizer_camera()
    Viz->>Cam: ensure_camera_initialized()
    Viz->>Viz: _update_owned_camera_poses()

    loop Every sim step
        Sim->>Viz: update(dt)
        Viz->>Viz: _update_owned_camera_poses()
        alt KitVisualizer only
            Viz->>Viz: _sync_camera_pose_updates_to_kit()
            Viz->>Viz: _set_generated_usd_camera_poses()
        end
        Viz->>Cam: "camera.update(force_recompute=True)"
        Cam-->>Viz: rgb tensor [N, H, W, 3]
        Viz->>Viz: compose_rgb_grid_tensor(rgb)
        Viz->>UI: ByteImageProvider / log_image()
    end

    Env->>Viz: close()
    Viz->>Cam: __del__()
    Viz->>Viz: remove_generated_prims()
Loading

Comments Outside Diff (2)

  1. source/isaaclab_visualizers/isaaclab_visualizers/kit/kit_visualizer.py, line 864-879 (link)

    P1 Simulation paused and resumed on every visualizer update frame

    _sync_camera_pose_updates_to_kit writes the /app/player/playSimulations setting to False, calls app.update() (one full Kit engine tick), then restores the flag — all on every _update_camera_image_panel call. With the default tiled_cam_view=True, this means every simulation step incurs an extra Kit render tick plus two synchronous settings mutations, effectively stalling the sim loop and doubling frame time. At minimum this path should be guarded to fire only when the camera pose has actually changed (the changed flag is already tracked in _log_camera_pose_debug), or the pause/resume approach replaced with a lighter Fabric sync.

  2. source/isaaclab/isaaclab/visualizers/visualizer_cfg.py, line 468-469 (link)

    P1 tiled_cam_view=True default with headless check ordered after cameras-enabled guard

    KitVisualizer._setup_camera_sensor_view checks /isaaclab/cameras_enabled and raises RuntimeError if it is False — before it reaches the if self._runtime_headless: return guard. Because tiled_cam_view=True is now the base-class default, any existing KitVisualizer user who does not pass --enable_cameras (including headless CI runs) will now get a RuntimeError at initialization. Swapping the order of the two guards so headless exits early before the camera-enabled check, or changing the default to False, would avoid this regression.

Reviews (1): Last reviewed commit: "lint" | Re-trigger Greptile

Comment on lines +172 to +176
if self._camera_sensor is not None and self._camera_is_owned:
cleanup = getattr(self._camera_sensor, "__del__", None)
if callable(cleanup):
cleanup()
remove_generated_prims(self._generated_camera_prim_paths)

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 Direct __del__ invocation is unsafe

Calling camera_sensor.__del__() manually is a Python anti-pattern. __del__ is a finalizer called by the garbage collector; invoking it directly means the GC may call it a second time after close(), leading to double-free / double-cleanup. The Camera class should expose a proper close() or reset() lifecycle method; if none exists, simply nulling the reference and letting the GC reclaim it is safer than hand-triggering the destructor.

The same pattern appears in newton_visualizer.py.

Comment on lines +651 to 665
lookat = torch.as_tensor(target, dtype=torch.float32, device="cpu").reshape(1, 3)
up_axis = UsdGeom.GetStageUpAxis(usd_stage)
rotation_matrix = create_rotation_matrix_from_view(eye, lookat, up_axis=up_axis, device="cpu")
if torch.isnan(rotation_matrix).any():
raise ValueError("[KitVisualizer] Cannot set camera pose because eye and lookat are degenerate.")
quat_xyzw = quat_from_matrix(rotation_matrix)[0]
quat_gf = Gf.Quatd(
float(quat_xyzw[3]),
Gf.Vec3d(float(quat_xyzw[0]), float(quat_xyzw[1]), float(quat_xyzw[2])),
)

camera_xform.AddTranslateOp().Set(Gf.Vec3d(float(eye[0, 0]), float(eye[0, 1]), float(eye[0, 2])))
camera_xform.AddOrientOp(UsdGeom.XformOp.PrecisionDouble).Set(quat_gf)

def _apply_cfg_camera_pose_if_configured(self) -> 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.

P2 USD stage mutated per camera per frame

_set_usd_camera_pose calls UsdGeom.Camera.Define(), ClearXformOpOrder(), AddTranslateOp().Set(), and AddOrientOp().Set() on every _update_camera_image_panel tick, for every tile. With the default tiled_cam_num=57, that is ~228 USD stage write operations per frame. Consider caching the UsdGeom.XformOp handles after the first author and calling only .Set() on subsequent frames, which avoids the per-frame op-order rebuild overhead.

Comment on lines +49 to +50
tiled_cam_num: int = 57
"""Number of camera tiles to show when tiled_cam_env_indices is None, capped at 100."""

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 Suspicious default value for tiled_cam_num

57 is an unusual default for a tile count. Common ergonomic defaults are powers of two or round numbers (e.g. 16, 32). A value of 57 also exceeds typical screen tile layouts without an obvious rationale, and may reflect a debug value left in from development.

Suggested change
tiled_cam_num: int = 57
"""Number of camera tiles to show when tiled_cam_env_indices is None, capped at 100."""
tiled_cam_num: int = 16
"""Number of camera tiles to show when tiled_cam_env_indices is None, capped at 100."""

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Comment on lines 362 to 364
metadata = {"num_envs": num_envs}
self._env_ids = self._compute_visualized_env_ids()
self._model = NewtonManager.get_model()

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 DISPLAY check is Linux-only and inverts expected behavior on macOS/Windows

os.environ.get("DISPLAY") returns None on macOS and Windows (where DISPLAY is never set), so not os.environ.get("DISPLAY") evaluates to True on those platforms even for a fully interactive desktop session, forcing headless mode incorrectly. Consider using sys.platform to gate the check, or platform-specific approaches (e.g. check DISPLAY on Linux, use different logic or no check on macOS/Windows).

@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label May 20, 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

Thanks for adding tiled camera views to Kit and Newton visualizers! This is a significant feature addition that enables multi-robot observation. I've reviewed the implementation with focus on rendering correctness, buffer management, and tile indexing.

🔍 Key Observations

Architecture
The design cleanly separates:

  • Utility functions in camera_view.py for env resolution, tile composition, and pose handling
  • Visualizer-specific integration in Kit and Newton backends
  • Shared configuration in VisualizerCfg

The 100-tile cap (VISUALIZER_TILED_CAMERA_MAX_TILES) is a reasonable safeguard for memory/performance.

💡 Suggestions

1. Potential Division by Zero in Tile Resolution

File: source/isaaclab/isaaclab/envs/utils/camera_view.py:154-156

def compute_tile_resolution(window_width: int, window_height: int, num_tiles: int) -> tuple[int, int]:
    cols = max(1, math.ceil(math.sqrt(max(1, num_tiles))))
    rows = math.ceil(max(1, num_tiles) / cols)
    return max(1, int(window_width) // cols), max(1, int(window_height) // rows)

The defensive max(1, ...) wrapping is good, but consider what happens if window_width or window_height are 0 or negative. The function would return valid dimensions but potentially cause issues downstream. Adding input validation could make this more robust:

if window_width <= 0 or window_height <= 0:
    raise ValueError(f"Window dimensions must be positive, got {window_width}x{window_height}")

2. Race Condition in GPU Image Upload Fallback

File: source/isaaclab_visualizers/isaaclab_visualizers/kit/kit_visualizer.py:457-476

def _upload_camera_image_to_panel(self, image: np.ndarray | torch.Tensor) -> None:
    if isinstance(image, torch.Tensor):
        if image.is_cuda:
            try:
                # GPU upload path
                ...
            except Exception as exc:
                if not self._warned_gpu_upload_failure:
                    logger.warning(...)
                    self._warned_gpu_upload_failure = True
            image = image.detach().contiguous().cpu().numpy()  # Fallback

The fallback path executes regardless of whether the GPU upload succeeded or failed. After a successful GPU upload, the code continues to also do CPU upload. Consider adding a return after the successful GPU path:

try:
    ...  # GPU upload
    return  # <-- Add this
except Exception as exc:
    ...  # Log warning
    # Fall through to CPU path

3. Memory Retention in GPU Upload Tensor

File: source/isaaclab_visualizers/isaaclab_visualizers/kit/kit_visualizer.py:461

self._camera_gpu_upload_tensor = image

Storing the tensor prevents premature deallocation during async GPU operations, which is correct. However, this tensor persists until the next upload or visualizer close. For long-running sessions with large tiled views, consider whether this is significant. A comment explaining why this field exists would help future maintainers.

4. Silent Pass on Missing Target Prims

File: source/isaaclab/isaaclab/envs/utils/camera_view.py:211-224

In prim_world_positions, when the FrameView fallback to USD XformCache fails:

prim = stage.GetPrimAtPath(prim_path)
if not prim.IsValid():
    raise RuntimeError(f"tiled_cam_target_prim_path resolved to missing prim: {prim_path!r}.")

This raises for completely missing prims, which is good. However, the broader try/except at line 207 catches all exceptions from FrameView, which could silently mask real issues. Consider narrowing the exception type or logging at debug level.

5. Test Coverage for Multi-Camera Tile Indexing

File: source/isaaclab/test/markers/test_visualization_markers.py

The test reorganization is thorough, but I didn't see explicit tests for the new camera view helpers in camera_view.py. Consider adding unit tests for:

  • resolve_tiled_env_indices with edge cases (0 envs, more requested than available)
  • compose_rgb_grid_tensor with various batch sizes
  • compute_tile_resolution boundary conditions

6. Documentation Note

File: docs/source/features/visualization.rst:217

The documentation correctly notes that Kit tiled camera views require --enable_cameras. This is a common gotcha, so the prominent note is appreciated.

✅ What Looks Good

  • Clean separation between generated and existing camera sensor paths
  • Proper cleanup of generated camera prims in close()
  • Deferred startup message pattern (_log_viewer_url / flush_startup_messages) improves UX
  • Good defensive coding with max-tile caps and env bounds checking
  • The focal length to vertical FOV conversion using USD's standard aperture is correct

🔧 Minor Nits

  1. Unused import hint: numpy as np appears in type hint contexts but actual usage is via torch - verify np is needed
  2. Magic numbers: The 15.2908 aperture constant could benefit from a named constant with a doc comment referencing the USD spec

Overall this is a well-structured feature addition. The suggestions above are mostly defensive hardening and documentation improvements rather than correctness issues.


Update (d98d4b6): Reviewed the incremental changes since my previous review:

✅ Good Cleanup

  • Removed base_scene_data_provider.py — This abstract interface appears to have been unused scaffolding. Removing dead code is welcome.
  • Removed unused test and helper functions in contact sensor (_flatten_metadata, _broadcast_metadata_kind) and their test — Good hygiene removing unused code.
  • Removed test_rerun_visualizer_marker_failure_still_ends_frame — If this test was testing removed functionality, deletion is appropriate.

📝 Minor Changes Noted

  • focal_length default: 12.0 → 15.0 — Slightly wider field of view. This seems like a UX tuning choice; no concerns.
  • Documentation wording: "tiled camera image view" → "tiled camera panel" — Cleaner terminology.
  • Newton visualizer: Replaced getattr(self, "_image_logger", None) with direct self._image_logger access — This is cleaner assuming _image_logger is always initialized (even to None) in __init__. Verified this is the case from the earlier review.

🔍 One Question
The removal of BaseSceneDataProvider is fairly substantial (79 lines of abstract interface). If this interface was planned for future use or part of a broader abstraction, ensure it's not needed by other planned backends. If it was truly unused, good riddance!

No new concerns with this incremental update. The PR continues to look solid.


Update (32f92a9): Reviewed the incremental changes since last review:

✅ Major Cleanup — Newton Renderer Simplification

  • Removed compatibility shims in newton_warp_renderer.py — Deleted ~60 lines of hasattr() version-check fallbacks. The code now assumes a consistent Newton API with:
    • self.newton_sensor.utils.compute_pinhole_camera_rays()
    • self.newton_sensor.utils.create_default_light()
    • newton.geometry.refit_bvh_shape() always present
  • Removed _create_sensor_config() and _apply_render_context_config() — These polymorphic config builders handled multiple Newton package layouts. Their removal suggests the team has standardized on a single Newton version.

⚠️ Compatibility Note: If anyone is using older Newton packages that lack the utils module or have the alternate Config/RenderConfig split, this will break. This is likely intentional as part of a min-version bump.

📝 Other Changes

  • Default config propagation — New _apply_default_visualizer_cfg() in simulation_context.py copies fields from default_visualizer_cfg to backend-specific configs created via CLI. Good for consistent defaults across visualizer types.
  • Default value changes in VisualizerCfg:
    • tiled_cam_view: False → True (tiled cameras now on by default!)
    • tiled_cam_num: 57 → 16 (more reasonable default tile count)
  • Cleanup pattern change — kit_visualizer.py and newton_visualizer.py now call self._camera_sensor.__del__() directly instead of getattr(..., "__del__", None). This assumes the camera sensor always has a __del__ method.
  • Documentation refinement — Section renamed "Camera Pose Behavior" → "Camera Modes" with cleaner formatting.
  • New test — test_default_visualizer_cfg_applies_to_cli_created_configs() verifies the default config propagation logic.

🔍 Minor Concern
Calling __del__() directly is unusual Python (normally left to garbage collector). It works if the destructor is idempotent, but ensure the camera sensor handles being explicitly destructed. A dedicated close() or cleanup() method would be more conventional.

Overall: Good simplification removing version-compatibility cruft. The Newton API has clearly stabilized.


Update (58e89e7): Reviewed the incremental changes since last review:

⚠️ VERY LARGE COMMIT — SCOPE MISMATCH

This commit adds ~3,800 lines of new code across 59 new/modified files. The changes have nothing to do with tiled camera views (the PR title). Instead, this commit:

  1. Adds Newton VBD deformable body support — Complete new physics backend integration
  2. Creates new deformable object APIs — DeformableObject, DeformableObjectData, VBDSolverCfg
  3. Adds coupled rigid-deformable solvers — CoupledMJWarpVBDSolverCfg, CoupledFeatherstoneVBDSolverCfg
  4. Creates new task environments — Isaac-Lift-Soft-Franka-v0, Isaac-Lift-Cloth-Franka-v0
  5. Modifies PhysX deformable APIs — Deprecates old config names, adds backend-specific configs
  6. Adds extensive test suites — 717 lines in test_deformable_object.py alone

🛑 Recommendation: Split This PR

This commit should be a separate PR. Mixing unrelated large features makes review difficult and git history unclear. The visualizer tiled camera feature (PR title) is complete and should be merged separately from this Newton deformable integration.

📝 Quick Review of Deformable Changes

Despite the scope concern, the deformable implementation looks reasonable:

✅ Good patterns:

  • Clean backend abstraction with DeformableBodyPropertiesBaseCfg base class
  • Newton-specific configs (NewtonDeformableBodyPropertiesCfg) properly namespaced
  • Fabric sync for particle positions via _sync_particle_points kernel
  • Per-world builder hooks for multi-env deformable cloning

⚠️ Concerns:

  • __del__() calls on camera sensors removed (line changes in visualizers) — This is actually an improvement fixing the earlier concern
  • Large amount of untested integration code with Newton backend — Runtime errors possible
  • DeformableBodyMaterialCfg and SurfaceDeformableBodyMaterialCfg deprecated but still used in new task configs

Minor Visualizer Changes (Actual PR Scope)

  • Kit visualizer now caches camera XformOps to avoid repeated USD queries — Performance improvement
  • Added dirty flag pattern for camera pose updates — Avoids redundant syncs
  • Removed __del__() direct calls — Good cleanup per previous review suggestion

The visualizer changes in this commit are fine. The deformable integration needs its own PR for proper review.


Update (6c8a5a8): Reviewed the incremental changes since last review:

✅ Good DRY Refactoring

This commit extracts common scene_data_provider handling into the base class:

def _set_scene_data_provider(self, scene_data_provider: SceneDataProvider) -> SceneDataProvider:
    """Store the scene data provider shared by all visualizer backends."""
    if scene_data_provider is None:
        raise RuntimeError(f"{self.__class__.__name__} requires a scene_data_provider.")
    self._scene_data_provider = scene_data_provider
    return scene_data_provider

Changes:

  • New helper method in BaseVisualizer — Consolidates null-checking and storage that was duplicated across Kit, Newton, Rerun, and Viser visualizers
  • Removed redundant self._scene_data_provider = None from each visualizer's __init__ — The base class now owns this attribute
  • Fixed duplicate test function — Removed the duplicated test_web_visualizer_cfgs_do_not_open_browser_by_default test
  • Added changelog entries — Properly documented the fixes for isaaclab and isaaclab_newton

📝 Minor Note

The changelog entry mentions "shared visualizer defaults for CLI-created visualizer configs" which appears to reference work from the previous commits (the _apply_default_visualizer_cfg() logic), making this a combined changelog for the feature branch. Good practice.

✅ Clean refactor. The pattern of returning the provider (return scene_data_provider) allows for fluent chaining in the initialize() methods — nice touch.


Update (9b5e682): Reviewed the incremental changes since last review:

✅ Module Reorganization — isaaclab.scene_data

This commit consolidates SceneDataProvider, SceneDataBackend, and SceneDataFormat into a new isaaclab.scene_data subpackage. This is a breaking change (documented in changelog fragments) but improves code organization:

  • Moved scene_data_backend.py from isaaclab.physics → isaaclab.scene_data
  • Moved scene_data_provider.py from isaaclab.scene → isaaclab.scene_data
  • Updated all imports across physics backends, visualizers, and docs
  • Enhanced SceneDataFormat with proper docstrings and Sphinx autodoc handling

✅ Bug Fixes

  1. Removed duplicate dispatch_callbacks() call in simulation_context.py — Good catch, the previous code was calling vis_marker_registry.dispatch_callbacks() twice per frame.

  2. Fixed stale SimulationContext reference in newton_manager.py — Changed from PhysicsManager._sim to SimulationContext.instance(). This prevents issues when the simulation context is recreated.

📝 Previous Inline Comments Status

  • ✅ Direct __del__ invocation (P1) — Fixed! Camera sensors are now cleaned up by setting to None rather than calling __del__() directly.
  • ✅ USD stage mutations per frame (P2) — Fixed! XformOps are now cached in _generated_camera_xform_ops and reused.
  • ✅ env_ids parameter not forwarded (P2) — Fixed! apply_camera_view_from_origins now passes env_ids to set_world_poses_from_view.
  • ⏸️ tiled_cam_num=57 default (P2) — Was already fixed in earlier commit (now defaults to 16).
  • ⏸️ DISPLAY check Linux-only (P2) — Still present but unchanged in this commit.

✅ Clean refactor. No new concerns with this incremental update. The previous inline comment issues have been addressed.

@kellyguo11 kellyguo11 moved this to Ready to merge in Isaac Lab May 20, 2026
@matthewtrepte
matthewtrepte merged commit faa89ad into isaac-sim:develop May 20, 2026
39 checks passed
@github-project-automation github-project-automation Bot moved this from Ready to merge to Done in Isaac Lab May 20, 2026
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 isaac-mimic Related to Isaac Mimic team

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants