Skip to content

Add UI toggle for LiDAR point visualization - #9215

Merged
kellyguo11 merged 5 commits into
isaac-sim:mainfrom
huidongc:OMPE-118553/visualizer-toggles
Nov 25, 2026
Merged

kellyguo11 merged 5 commits into
isaac-sim:mainfrom
huidongc:OMPE-118553/visualizer-toggles

Conversation

@huidongc

@huidongc huidongc commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Lidar hit overlay in Newton GL and Viser is now opt-in. A dense scan is expensive to copy to the host and upload every visualizer step, so the previous every-tenth-step upload is gone.

The overlay is off by default. Enable it at launch with NewtonGLBackendCfg.show_lidar_hits or ViserBackendCfg.show_lidar_hits, or at runtime from the Newton HUD / Viser Visualization Markers checkbox. Turning it off hides the last batch.

Kit keeps its existing debug-draw path and has no checkbox.

Type of change

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

Screenshots

Screencast.from.2026-11-25.21-13-23.mp4

Checklist

Docker and GPU tests run on demand. Push the commits you want tested, then
comment run-ci on the pull request, or run-ci ovstage to include kitless OVStage rendering tests for that run.
Subsequent pushes and plain run-ci comments do not run OVStage tests unless you comment run-ci ovstage again.

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with uv run isaaclab --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have validated the changed behavior with focused coverage and applied the test-audit criteria to any test changes
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (do not edit CHANGELOG.rst or bump package versions — CI handles that)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

- Skip the host copy and upload unless the overlay is on; a dense scan is expensive every visualizer step
- Newton GL and Viser expose a checkbox
- Backend `show_lidar_points` opts in at launch
* Rename ``show_lidar_points`` to ``show_lidar_hits`` on Newton GL and Viser
* Update the HUD checkboxes to Lidar Hits
* Drop the Kit launch flag so only Newton GL and Viser expose the overlay
@huidongc
huidongc requested a review from a team November 25, 2026 13:10
@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Nov 25, 2026
@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with non-blocking concerns about Kit's extra work and points remaining visible while paused.

Findings

  1. P2 Kit redraws scans too often ▶
  2. P2 Paused points stay visible ▶

Summary

Makes lidar overlays opt-in for Newton GL and Viser.

  • Newton GL and Viser let users choose when lidar hits appear.
  • Kit draws current lidar hits on every visualizer step.

Reviews (2) · Last reviewed commit: "Drop unused Kit lidar step counter" · Reviewed by Greptile

return any(isinstance(sensor, lidar_cls) for sensor in scene.sensors.values())


def collect_lidar_hits(sim: SimulationContext, env_ids: list[int] | None) -> list[tuple[str, np.ndarray]]:

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 Kit window updates fail

collect_lidar_hits now accepts two arguments, but KitVisualizer._draw_lidar_points still passes three. Every non-headless Kit step reaches that call, even without a lidar sensor, and raises TypeError before the app update. Preserve the existing Kit call and its ten-step interval, or update Kit alongside this change.

@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

Needs attention: Scope and over-engineering (2), Compatibility and deprecation (3), Implementation (2), Style consistency (4). Other reviewed categories look good.

  • PR description: Correct the non-breaking label and pause claim; report validation and baseline/candidate upload latency with revisions, command/workload, hardware, backend, environment count, scan density, runtime environment, and warmup.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: Minimal implementation: extend lidar_points.py, NewtonGLVisualizer._render_frame, ViserVisualizer.step, and existing backend configs; collapse forwarding methods and reuse Viser's viewer-flag checkbox loop; no source modules were added. Keep only toggle state, conditional uploads, and hide transitions. Replace with one smaller PR: these existing implementation/config files, test_lidar_points.py, and the changelog, validated at collector compatibility and backend toggle boundaries. Scope is cohesive; no split recommended.
  • API: API changes look good.
  • Compatibility and deprecation: Breaking changes: LIDAR_LOG_INTERVAL disappears, collect_lidar_hits loses its third argument and skipped-step result, and unchanged configurations lose automatic overlays; retain old behavior through warnings, migration documentation, removal guidance, and transition coverage.
  • Implementation: Both backends skip hide synchronization while rendering is paused, leaving disabled clouds visible; process pending hides outside the pause gates without collecting new hits.
  • Style consistency: The edited LiDAR imports violate the required same-package relative-import convention; use relative imports in both visualizers.
  • Test quality: Test quality looks good.

Significant concerns. Posted 11 inline findings.

Automated review; human maintainers own approval decisions.

collect_lidar_hits no longer throttles by step, so KitVisualizer does not
need to count steps or pass that argument.
Store show_lidar_hits on the Newton viewer and list Lidar Hits in _VIZ_FLAGS so the existing checkbox loop controls the overlay.
@huidongc

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Nov 25, 2026
@kellyguo11 kellyguo11 changed the title OMPE-118553 Add UI toggle for LiDAR point visualization Add UI toggle for LiDAR point visualization Nov 25, 2026
@kellyguo11

Copy link
Copy Markdown
Contributor

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Nov 25, 2026
@kellyguo11
kellyguo11 enabled auto-merge (squash) November 25, 2026 18:48
@kellyguo11
kellyguo11 merged commit 86310c7 into isaac-sim:main Nov 25, 2026
66 of 96 checks passed
@nvsekkin nvsekkin mentioned this pull request Nov 25, 2026
8 tasks done
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.

3 participants