Repository navigation
Fix coffee kitchen physics routing after #8585 - #8755
Conversation
[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
SummaryThis PR fixes shared presentation routing and adds the coffee kitchen to Newton GL.
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]
Reviews (1) · Last reviewed commit: "Preserve material bindings and use binar..." · Reviewed by Greptile |
| 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 |
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
🟡 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.
| 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 |
There was a problem hiding this comment.
🟡 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 = ( |
There was a problem hiding this comment.
🟡 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: |
There was a problem hiding this comment.
🟡 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.
|
run-ci |
|
run-ci |
cdaaae7 to
c208a1a
Compare
c208a1a to
3f788f3
Compare
|
run-ci |
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
uv run --no-sync python -m pytest source/isaaclab/test/cloner/test_replicate_session.py -q: 14 passed.cloning_contexts=().ISAACLAB_CHANGELOG_BASE_REF=1d1ed594336f3176333e558c06e305632ea3e648 uv run --no-sync isaaclab -f: passed.git diff --check: passed.Type of change
Checklist