Skip to content

Fix streaming_gt_types docstring and visualization docs polish - #7588

Merged
kellyguo11 merged 9 commits into
isaac-sim:developfrom
matthewtrepte:mtrepte/fix-viz-docs-review-feedback
Sep 9, 2026
Merged

kellyguo11 merged 9 commits into
isaac-sim:developfrom
matthewtrepte:mtrepte/fix-viz-docs-review-feedback

Conversation

@matthewtrepte

@matthewtrepte matthewtrepte commented Sep 4, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Backport this pull request to the active release branch after it merges into develop

Test plan

  • uv run isaaclab -f — lint, formatting, changelog checks all pass
  • 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
  • uv run --no-project python tools/skills/cli.py check — pass
  • Built the docs locally and visually checked the visualization and troubleshooting pages

@matthewtrepte
matthewtrepte requested a review from a team September 4, 2026 22:24
@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Sep 4, 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

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-centered layout replaces the prior streaming-video grid consumer, while .viz-hero-row-top adds 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-natural streaming-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-apps

greptile-apps Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR corrects VisualizerCfg documentation to include the already-supported "normals" streaming ground-truth type, standardizes spelling, adds a changelog fragment, and adjusts visualization-document video cropping and layout.

  • Documents "normals" consistently with runtime support.
  • Refines hero-video cropping for the Newton and visualization-backend examples.
  • Restacks streaming-camera videos vertically at a centered width.
  • Leaves one contradictory CSS comment about whether all hero-grid rows have equal heights.

Confidence Score: 4/5

The 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

Filename Overview
docs/source/concepts/visualization.rst Updates hero-video cropping and streaming-video layout correctly, but the revised height comment contradicts the new top-row override.
source/isaaclab/isaaclab/visualizers/visualizer_cfg.py Accurately documents "normals" support and standardizes “initialization” spelling.
source/isaaclab/changelog.d/fix-streaming-gt-types-normals-docstring.rst Accurately records the corrected streaming_gt_types documentation.

Reviews (1): Last reviewed commit: "Fix streaming_gt_types docstring and add..." | Re-trigger Greptile

Comment thread docs/source/concepts/visualization.rst Outdated
Comment on lines 41 to 46
/* 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). */

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 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.

Suggested change
/* 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!

@matthewtrepte
matthewtrepte force-pushed the mtrepte/fix-viz-docs-review-feedback branch from b70958f to 246b8b3 Compare September 8, 2026 20:12
@matthewtrepte

Copy link
Copy Markdown
Collaborator Author

@isaaclab-review-bot review

@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

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_types runtime contract. The new RuntimeError for 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(

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.

🔵 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.
@matthewtrepte
matthewtrepte force-pushed the mtrepte/fix-viz-docs-review-feedback branch from ea30f47 to 09f30c8 Compare September 8, 2026 23:54
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.
@matthewtrepte matthewtrepte changed the title Fix streaming_gt_types docstring and polish visualization docs hero videos Fix VisualizerCfg docs, gate Newton RTX + Kit physics, and polish visualization docs Sep 9, 2026
@matthewtrepte matthewtrepte changed the title Fix VisualizerCfg docs, gate Newton RTX + Kit physics, and polish visualization docs Fix streaming_gt_types docstring and visualization docs polish Sep 9, 2026
return

scene_data_provider = self._set_scene_data_provider(scene_data_provider)
if isinstance(self, NewtonRTXVisualizer) and self.physics_backend in ("physx", "ovphysx"):

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.

why ovphysx? shouldn't it be an issue with isaacsim_physx?

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.

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.

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.

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

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.

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.

Comment thread docs/source/concepts/visualization.rst Outdated
**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

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.

that's not correct - ovphysx should still be supported since it's kitless?

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 — 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.
Comment thread docs/source/concepts/visualization.rst Resolved
@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 Sep 9, 2026
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).
@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 Sep 9, 2026
@kellyguo11
kellyguo11 merged commit 10b2895 into isaac-sim:develop Sep 9, 2026
53 of 54 checks passed
@isaaclab-bot

isaaclab-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.0.0 as 13c16cd.

isaaclab-bot Bot pushed a commit that referenced this pull request Sep 9, 2026
## 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants