Repository navigation
Add UI toggle for LiDAR point visualization - #9215
Conversation
- 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
[Medium impact] The PR appears safe to merge, with non-blocking concerns about Kit's extra work and points remaining visible while paused. FindingsSummaryMakes lidar overlays opt-in for Newton GL and Viser.
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]]: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
|
run-ci |
|
run-ci |
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_hitsorViserBackendCfg.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
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-cion the pull request, orrun-ci ovstageto include kitless OVStage rendering tests for that run.Subsequent pushes and plain
run-cicomments do not run OVStage tests unless you commentrun-ci ovstageagain.pre-commitchecks withuv run isaaclab --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bump package versions — CI handles that)CONTRIBUTORS.mdor my name already exists there