Skip to content

Fix coffee kitchen physics routing after #8585 - #8755

Merged
maxkra15 merged 1 commit into
isaac-sim:mainfrom
maxkra15:maxkra15/fix-sharpa-demo-rendering
Oct 21, 2026
Merged

maxkra15 merged 1 commit into
isaac-sim:mainfrom
maxkra15:maxkra15/fix-sharpa-demo-rendering

Conversation

@maxkra15

@maxkra15 maxkra15 commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Description

After #8585 moved the coffee kitchen into shared scene configuration, shared-asset cloning still sent it to Newton physics. Newton then tried to import decorative USD geometry with token-valued normals.

Respect explicit cloning_contexts=() for shared assets and set that policy on the coffee presentation. Shared terrain without an explicit policy continues to enter physics; rendering still receives shared assets. The PR now uses the existing clone plan and renderer paths.

Validation

  • The extended shared-asset routing test failed on the base code for the unwanted physics route, then passed with the fix.
  • uv run --no-sync python -m pytest source/isaaclab/test/cloner/test_replicate_session.py -q: 14 passed.
  • Coffee RTX configuration check: default kitchen presentation has cloning_contexts=().
  • ISAACLAB_CHANGELOG_BASE_REF=1d1ed594336f3176333e558c06e305632ea3e648 uv run --no-sync isaaclab -f: passed.
  • git diff --check: passed.

Type of change

  • Bug fix

Checklist

  • Read the contribution guidelines
  • Ran the repository formatting checks
  • Added changelog fragments for the affected packages
  • Extended the existing owner-boundary regression test

@maxkra15
maxkra15 requested a review from a team October 20, 2026 17:48
@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 Oct 20, 2026
@greptile-apps

greptile-apps Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The changes reach coffee presentation and shared native RTX scene loading.

The PR appears safe to merge, with one non-blocking request to cover referenced environment trimming.

Findings

  1. P2 Referenced trimming lacks test coverage ▶

Summary

This PR fixes shared presentation routing and adds the coffee kitchen to Newton GL.

  • The coffee demo shows one kitchen or studio backdrop in all three visualizers.
  • Native RTX scene loading uses binary USD snapshots that keep references and instances intact.
  • Newton GL shows the Sharpa RJ45 cable's green jacket.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Prepared USD scene] --> B[Asset routing]
  B --> C[Physics-selected assets]
  A --> D[GL kitchen mesh submissions]
  A --> E[Private USD layer stack]
  E --> F[Binary dependency snapshots]
  F --> G[Native RTX scene]
  G --> H[Native teardown]
  H --> I[Remove temporary files]
Loading

Reviews (1) · Last reviewed commit: "Preserve material bindings and use binar..." · Reviewed by Greptile

Comment thread source/isaaclab_ov/isaaclab_ov/stage.py Outdated
Comment on lines +390 to +394
composed = Usd.Stage.Open(layer)
referenced_paths = [path for path in prim_paths if composed.GetPrimAtPath(path)]
with Sdf.ChangeBlock():
for path in referenced_paths:
Sdf.CreatePrimInLayer(layer, path).active = False

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 Referenced trimming lacks test coverage

The new nested-instance fixture puts references under /World/Referenced, outside the /World/envs trimming loop. It never checks this branch, which deletes local definitions and restores active = False for prims supplied by references. A later change could bring back unwanted clone destinations without failing the tests.

Add a fixture with referenced environments under /World/envs. Export with keep_env_roots=False and check that the source keeps its material bindings while unwanted destinations stay absent.

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!

@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: Style consistency (4). Other reviewed categories look good.

  • PR description: The body matches scope, but remove unsupported access/date claims, mention StudioFloor hiding, and either keep timings descriptive or add revisions, command, environment count, warmup, and cache-controlled comparisons.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: No breaking changes identified.
  • Implementation: Implementation looks good.
  • Style consistency: New code violates established privacy and file-structure conventions; expose cross-module helpers, remove the ineffective deletion, order public functions first, and avoid the one-field kwargs mapping.
  • Test quality: Test quality looks good.

Minor fixes needed. Posted 4 inline findings.

Automated review; human maintainers own approval decisions.

from isaaclab_ov.renderers.visual_materials import OVRTXVisualMaterialWriter
from isaaclab_ov.stage import (
export_stage_to_string,
_export_layer_to_file,

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.

🟡 Warning · Style Consistency — Private stage helpers used cross-module

_export_layer_to_file and _export_stage_to_layer are underscore-private to isaaclab_ov.stage but are now this module's real dependency, and a public docstring cross-references one. Give both public names.

Comment thread source/isaaclab_ov/isaaclab_ov/stage.py Outdated
with tempfile.TemporaryDirectory(prefix="isaaclab-ov-") as directory:
path = _snapshot_layer_graph(layer, Path(directory))
# Native consumers borrow files; release the Python layer graph before yielding.
del layer

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.

🟡 Warning · Style Consistency — del layer releases nothing

Both callers keep their own reference to the layer for the whole context, so deleting the local name frees nothing and the comment's claim is wrong. Remove the statement and its comment.

prim_path="/World/CoffeePresentation", spawn=CoffeePresentationCfg(backdrop=backdrop), cloning_contexts=()
)
cfg.scene.robot = get_robot_cfg()
table_spawner = (

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.

🟡 Warning · Style Consistency — Packing dict to pass one field

table_spawner builds a one-key mapping only to splat it into UsdFileCfg, which the style guide forbids. Construct the spawner config directly and set func under an explicit kitchen branch.

self._clear_surface_cache()


def _add_gl_kitchen(visualizer: CoffeeGLVisualizer, stage: Usd.Stage, device: str) -> 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.

🟡 Warning · Style Consistency — Private helper precedes public functions

_add_gl_kitchen is defined before the public spawn_kitchen_table and spawn_presentation, breaking the required file order and this file's own pattern of trailing private helpers. Move it after them.

@maxkra15

Copy link
Copy Markdown
Contributor 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 Oct 20, 2026
@maxkra15

Copy link
Copy Markdown
Contributor 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 Oct 20, 2026
@ooctipus
ooctipus force-pushed the maxkra15/fix-sharpa-demo-rendering branch from cdaaae7 to c208a1a Compare October 20, 2026 21:06
@ooctipus ooctipus changed the title Fix Sharpa kitchen presentation and native RTX scene export Fix coffee kitchen physics routing after #8585 Oct 20, 2026
@ooctipus
ooctipus force-pushed the maxkra15/fix-sharpa-demo-rendering branch from c208a1a to 3f788f3 Compare October 20, 2026 21:07
@ooctipus

Copy link
Copy Markdown
Collaborator

run-ci

@isaaclab-bot isaaclab-bot Bot added the ci:run-docker Trigger the on-demand Docker and GPU CI workflow label Oct 20, 2026
@isaaclab-bot isaaclab-bot Bot removed the ci:run-docker Trigger the on-demand Docker and GPU CI workflow label Oct 20, 2026
@maxkra15
maxkra15 merged commit 46d6cc3 into isaac-sim:main Oct 21, 2026
59 checks passed
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.

3 participants