Repository navigation
Fix streaming_gt_types docstring and visualization docs polish - #7588
kellyguo11 merged 9 commits into
Conversation
There was a problem hiding this comment.
Isaac Lab Review Bot
The patch aligns the VisualizerCfg.streaming_gt_types documentation with existing "normals" support, standardizes spelling, adds the appropriate package changelog fragment, and updates the visualization page’s video presentation without changing runtime behavior.
- Design and architecture: The presentation changes remain scoped to the page-local CSS and markup. The new
.viz-stack-centeredlayout replaces the prior streaming-video grid consumer, while.viz-hero-row-topadds a targeted override without altering unrelated hero rows. - API: The public field name, type, default, validation path, and accepted runtime values are unchanged. The docstring now accurately reflects
SUPPORTED_GT_TYPES, and the changelog fragment records the user-visible documentation correction without requiring migration guidance. - Implementation: The hero-tile dimensions and offsets are internally consistent with the documented crop calculations. The former
.viz-grid-naturalstreaming-video consumer is updated alongside removal of its rules, and the replacement preserves centered videos with natural aspect ratios and captions.
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.
Greptile SummaryThis PR corrects
Confidence Score: 4/5The PR appears safe to merge, with only a non-blocking contradictory CSS maintenance comment to clarify. The runtime documentation matches the supported ground-truth types, and the new layout selectors correctly target the intended markup; the sole concern is an inaccurate explanatory comment that could confuse later maintenance. Files Needing Attention: docs/source/concepts/visualization.rst Important Files Changed
Reviews (1): Last reviewed commit: "Fix streaming_gt_types docstring and add..." | Re-trigger Greptile |
| /* Trims pixels off each hero tile on top of whatever object-position crop is already | ||
| applied, so the tile itself is shorter rather than just repositioning the existing crop. | ||
| Both classes crop to the same final 241px height so the 2x2 tile grid stays even, split | ||
| differently per tile: Kit/Rerun/Newton RTX crop 35px off the top and 10px off the bottom; | ||
| Viser crops 25px off the top and 20px off the bottom (its object-position framing already | ||
| Both classes crop to the same final 221px height so the 2x2 tile grid stays even, split | ||
| differently per tile: Kit/Rerun/Newton RTX crop 45px off the top and 20px off the bottom; | ||
| Viser crops 35px off the top and 30px off the bottom (its object-position framing already | ||
| leaves more headroom at the bottom, so it can take a heavier bottom crop). */ |
There was a problem hiding this comment.
Contradictory hero grid comment
This comment says both crop classes keep the 2x2 tile grid even at 221px, but the new top-row rules override those tiles to 206px. The contradiction could make future crop adjustments error-prone; clarify that tiles within each row have equal heights while the two rows intentionally differ.
| /* Trims pixels off each hero tile on top of whatever object-position crop is already | |
| applied, so the tile itself is shorter rather than just repositioning the existing crop. | |
| Both classes crop to the same final 241px height so the 2x2 tile grid stays even, split | |
| differently per tile: Kit/Rerun/Newton RTX crop 35px off the top and 10px off the bottom; | |
| Viser crops 25px off the top and 20px off the bottom (its object-position framing already | |
| Both classes crop to the same final 221px height so the 2x2 tile grid stays even, split | |
| differently per tile: Kit/Rerun/Newton RTX crop 45px off the top and 20px off the bottom; | |
| Viser crops 35px off the top and 30px off the bottom (its object-position framing already | |
| leaves more headroom at the bottom, so it can take a heavier bottom crop). */ | |
| /* Trims pixels off each hero tile on top of whatever object-position crop is already | |
| applied, so the tile itself is shorter rather than just repositioning the existing crop. | |
| Both classes initially crop to the same 221px height, keeping tiles within each row even. | |
| Kit/Rerun/Newton RTX crop 45px off the top and 20px off the bottom; Viser crops 35px off | |
| the top and 30px off the bottom (its object-position framing already leaves more headroom | |
| at the bottom, so it can take a heavier bottom crop). */ |
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!
b70958f to
246b8b3
Compare
|
@isaaclab-review-bot review |
There was a problem hiding this comment.
Isaac Lab Review Bot
The streaming_gt_types docstring now matches the supported "normals" value, and the visualization layout and troubleshooting additions are internally consistent. The remaining issue is that the new fail-fast rejection of Newton RTX with physx or ovphysx is not documented in the visualization compatibility limitations.
- Design and architecture: The Newton RTX compatibility guard is narrowly scoped and covered by the existing shared initialization path. The concrete subclass check introduces some coupling, but the proposed abstraction change is optional and does not establish a material defect requiring action before merge.
- API: The docstring correction does not change the
streaming_gt_typesruntime contract. The newRuntimeErrorfor Newton RTX with Kit-based physics backends is a user-visible compatibility constraint and should be added to the visualization Limitations section alongside the existing backend incompatibility guidance. - Implementation: The guard checks both affected backends and has a parametrized regression test. The hero markup consistently applies the new per-video crop classes, and the streaming videos use the new centered vertical layout. No implementation defect is demonstrated beyond the missing compatibility documentation.
Minor fixes needed. Posted 1 actionable finding inline.
Automated review; human maintainers own approval decisions.
| # OVRTX is a kitless renderer and cannot share a process with Kit/PhysX. Left | ||
| # unchecked, OVRTX's native loader crashes inside the render thread on first | ||
| # step() instead of failing here, which hangs the process instead of exiting. | ||
| raise RuntimeError( |
There was a problem hiding this comment.
🔵 Suggestion · Api — New rejected combination missing from visualization limitations
--viz newton_rtx with physx/ovphysx now fails hard instead of running, a user-visible behavior change. docs/source/concepts/visualization.rst, edited in this PR, documents the analogous "Kit: incompatible with ovphysx / ovrtx presets" case in Limitations but gains no entry for this one, leaving the documented backend compatibility narrower than what is enforced. Add a short matching Limitations entry naming the supported alternatives.
…edback Documents the already-supported 'normals' streaming GT type and switches to American spelling (initialisation -> initialization) in two VisualizerCfg docstrings, closing the last outstanding items from review on isaac-sim#7054's visualization docs restructure. Also reworks the visualization.rst hero video CSS: crops more off the top and bottom of the 2x2 hero tile grid, adds an extra top-only crop for the top row (Viser/Newton RTX), crops more off the top of the standalone Newton GL hero clip, and restacks the Streaming Camera View videos vertically, centered at 65% width with natural aspect ratio.
The comment claimed both crop classes always produce a 221px tile, but the top-row override added afterward shrinks Viser/Newton RTX to 206px, leaving the two rows' heights undocumented and contradicting each other. Split the comment so it states tiles are only even within each row, and documents the top row's override separately.
…ream docs Hero video crops: the 5 visualizer tiles now use per-visualizer crop windows, measured from the source clips (robot bounding box + UI chrome regions) rather than arbitrary pixel guesses, so the robot renders at consistent size and vertical position across all 5 tiles. Newton RTX gating: NewtonVisualizer.initialize() now rejects a Kit-based physics backend (physx/ovphysx) for NewtonRTXVisualizer with a clear RuntimeError instead of letting OVRTX's native loader crash inside the render thread on first step(), which previously hung the process. Includes a regression test and changelog fragment. Troubleshooting docs: adds a Livestreaming and WebRTC section to troubleshooting.rst covering NVST_R_BUSY/NVST_R_INTERNAL_ERROR and the port-49100 conflict, with Linux and Windows recovery commands, plus a matching entry in the isaaclab-setup-troubleshooting skill's failure-routing table.
Addresses review-bot feedback on isaac-sim#7588: the new fail-fast RuntimeError for --viz newton_rtx with a Kit-based physics backend (physx/ovphysx) was user-visible behavior with no matching Limitations entry. Added one, matching the style of the existing Kit/ovphysx-ovrtx incompatibility note.
ea30f47 to
09f30c8
Compare
Four of the five tiles (Newton RTX, Rerun, Kit, Viser) were already pinned against a hard limit (source frame edge or UI chrome), so shifting the robot up required shrinking those crop windows by the same ~5% to make room. Applied the same shrink to Newton GL so all 5 stay equal-sized to each other, just uniformly ~5% larger than the previous pass.
| return | ||
|
|
||
| scene_data_provider = self._set_scene_data_provider(scene_data_provider) | ||
| if isinstance(self, NewtonRTXVisualizer) and self.physics_backend in ("physx", "ovphysx"): |
There was a problem hiding this comment.
why ovphysx? shouldn't it be an issue with isaacsim_physx?
There was a problem hiding this comment.
Good catch — you're right, ovphysx is itself kitless and doesn't require Kit. Only physx (i.e. presets=isaacsim_physx) actually conflicts with OVRTX. Fixed in cd7c6af, along with the matching docs warning and a regression test asserting ovphysx does not trip the guard.
There was a problem hiding this comment.
physx doesn't mean isaacsim_physx - physx does autoswitching, so we might need to be careful about that one. isaacsim_physx should be checked explicitly as well
There was a problem hiding this comment.
Traced this through PhysxAutoCfg/_resolve_physx_auto_cfg and FactoryBase._get_backend(): both an explicit physics=isaacsim_physx and physics=physx (once the auto selector resolves to Kit) end up constructing the same PhysxManager class, so physics_backend currently reports "physx" for both at the point initialize() runs — the guard already covered the isaacsim_physx case via that string. Added "isaacsim_physx" to the check anyway per your request, as defense-in-depth in case another backend-name source ever reports the explicit selector string instead, and extended the regression test to cover both. See b68924c.
| **Newton RTX: incompatible with Kit-based physics backends** | ||
|
|
||
| ``--viz newton_rtx`` raises a ``RuntimeError`` at startup if the active physics backend is | ||
| ``physx`` or ``ovphysx`` (e.g. ``presets=isaacsim_physx`` or ``presets=ovphysx``), since OVRTX is |
There was a problem hiding this comment.
that's not correct - ovphysx should still be supported since it's kitless?
There was a problem hiding this comment.
Fixed — narrowed this to just presets=isaacsim_physx; presets=ovphysx is kitless and remains supported with --viz newton_rtx. See cd7c6af.
kellyguo11 caught this in review: ovphysx is itself a kitless backend, so it is not affected by the Kit-process conflict that blocks Newton RTX (OVRTX) from running with isaacsim_physx. Only physics_backend == "physx" (i.e. presets=isaacsim_physx) is actually incompatible. Narrows the gating check, the pre-existing (and newly added) docs warnings that incorrectly listed ovphysx alongside isaacsim_physx, and the changelog fragment. Replaces the ovphysx regression-test case with one asserting the guard does NOT fire for ovphysx (falls through to a real SimulationContext error instead), verified to fail on the prior code and pass with the fix.
kellyguo11 flagged that physics=physx is an auto selector (PhysxAutoCfg) that resolves to either isaacsim_physx or ovphysx depending on Kit availability, and wanted isaacsim_physx checked explicitly too. Traced the runtime resolution: FactoryBase._get_backend() reads the resolved physics_manager class name, so both an explicit physics=isaacsim_physx and physics=physx (once auto-resolved to Kit) currently report physics_backend=="physx" -- the guard already covered both cases via that string. Added "isaacsim_physx" to the check anyway as defense-in-depth per the request, in case another backend-name source ever reports the explicit selector string instead. Extended the regression test to cover both strings.
Signed-off-by: Kelly Guo <[email protected]>
|
run-ci |
The comment had grown into a per-tile pixel table duplicating the values in the CSS rules right below it. Cut it down to the mechanism and the trade-offs worth flagging (pinned tiles are slightly larger, Viser's panel sliver).
|
run-ci |
|
Backported to |
## Summary Fixes the `streaming_gt_types` docstring (it was missing the already-supported `"normals"` value and had a British spelling), which was the last open item from #7054's review. While in there, also: - Gates Newton RTX against Kit-based physics backends (`physx`/`ovphysx`) with a clear error at startup instead of a process hang from a native crash, and documents the restriction. - Reworks the 5 hero videos on the visualization docs page so the robot appears at a consistent size and position across all of them, and restacks the streaming-view videos vertically. - Adds a troubleshooting section for the `NVST_R_BUSY` livestreaming/port-49100 conflict, with Linux and Windows recovery steps. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Test plan - [x] `uv run isaaclab -f` — lint, formatting, changelog checks all pass - [x] `uv run --extra test python -m pytest source/isaaclab_visualizers/test/test_newton_adapter.py -v` — 54/54 pass, including a new regression test for the RTX gating - [x] `uv run --no-project python tools/skills/cli.py check` — pass - [x] Built the docs locally and visually checked the visualization and troubleshooting pages --------- Signed-off-by: Kelly Guo <[email protected]> Co-authored-by: Kelly Guo <[email protected]> (cherry picked from commit 10b2895)
Summary
Fixes the
streaming_gt_typesdocstring (it was missing the already-supported"normals"value and had a British spelling), which was the last open item from #7054's review. While in there, also:physx/ovphysx) with a clear error at startup instead of a process hang from a native crash, and documents the restriction.NVST_R_BUSYlivestreaming/port-49100 conflict, with Linux and Windows recovery steps.Release backport
developTest plan
uv run isaaclab -f— lint, formatting, changelog checks all passuv run --extra test python -m pytest source/isaaclab_visualizers/test/test_newton_adapter.py -v— 54/54 pass, including a new regression test for the RTX gatinguv run --no-project python tools/skills/cli.py check— pass