A robot-cell review tool can report an empty station even though the design includes a gripper. In OpenUSD, a payload can defer composition of detailed content until a stage loads the corresponding prim. A named station may remain in the scene because its prim is authored locally, while the parts from its payload are absent from the current composed view. A parts inventory needs to distinguish which details were loaded from which details were expected.

Reproduce a missing child with a two-station scene

The synthetic fixture below ran with OpenUSD 26.11. Two identical station prims each point to an in-memory payload that adds one child named Gripper. The cube used for that child is a simple stand-in. The example checks composition state without reading any robot files or asserting anything about the geometry of a real gripper.

from pxr import Sdf, Usd, UsdGeom

detail = Usd.Stage.CreateInMemory()

UsdGeom.Xform.Define(detail, "/Detail")

UsdGeom.Cube.Define(detail, "/Detail/Gripper")

cell = Usd.Stage.CreateInMemory(Usd.Stage.LoadNone)

UsdGeom.Xform.Define(cell, "/Cell")

left = "/Cell/StationA"

right = "/Cell/StationB"

for path in (left, right):

station = UsdGeom.Xform.Define(cell, path).GetPrim()

assert station.GetPayloads().AddPayload(

detail.GetRootLayer().identifier, Sdf.Path("/Detail")

)

def inspect(path):

station = cell.GetPrimAtPath(path)

return (bool(station), station.IsLoaded(),

bool(cell.GetPrimAtPath(path + "/Gripper")))

assert inspect(left) == inspect(right) == (True, False, False)

authored = cell.GetRootLayer().ExportToString()

cell.Load(Sdf.Path(left))

assert inspect(left) == (True, True, True)

assert inspect(right) == (True, False, False)

cell.Unload(Sdf.Path(left))

assert inspect(left) == (True, False, False)

assert cell.GetRootLayer().ExportToString() == authored

Before loading, both station paths resolve to valid prims because the fixture defines them in the cell stage. Both report that they are unloaded, and neither gripper child can be found. Loading Station A changes all the relevant observations for that branch. It reports loaded and its gripper becomes available. Station B stays unloaded. Unloading Station A returns its result to the initial state. The code also compares the root layer before and after, showing that changing the load state in this fixture did not remove the authored payload statements.

Capture the stage view used by the check

For an inventory or a handoff review, record the root layer and the intended scope of the load operation. Use a controlled stage session when loading details for an inspection. A viewer optimized for quick browsing may intentionally open a large scene without payload details. A batch job may start from a different set of load rules. If the tools report different counts, first compare what they composed. A count from an unloaded viewer can reflect its intended display mode and provide little evidence about the contents of the published asset.

Also record intended variant choices and the expected names or paths for the review. A payload load can succeed in the sense that the relevant branch is enabled while an expected child is absent for another reason. Inspect the expected prim directly after loading, and keep any composition diagnostics available. If the detail should have been loaded but a path is still missing, the next question is whether the source layer resolved, whether it contains the expected prim, and which variant or opinions contributed to the composed stage.

Use separate outcomes in the inventory

An inventory can distinguish a present child, an expected child deferred by load state, and an expected child still absent after the relevant branch is loaded. These outcomes give a reviewer different next actions. A deferred child calls for loading the review scope. A still-absent child calls for checking the asset definition and composition. This is easier to act on than a single count or a report that labels every missing path as a deleted object.

When collecting dimensions, mesh counts, or other properties, decide whether inputs are required to be fully loaded within the tested branch. A lightweight overview can be useful for locating stations. Detailed checks need the relevant payload content. Loading more than the inspection requires can add time and memory use, and counting only immediately visible descendants can omit deferred data. An explicit list of inspected branches makes the scope of the report clear even when the scene is large.

Keep a small regression case for the review tool. Open a stage with details deferred, confirm that the locally defined station is visible, load one station, and confirm that the expected parts become readable only in that branch. Then test a genuinely absent expected part after loading. The result should identify which branch was inspected and why a part is counted or absent. This lets a second reviewer repeat the check without relying on whatever load state happened to be active in the original viewport.

Sources

OpenUSD, UsdStage

https://openusd.org/release/api/class_usd_stage.html

OpenUSD, UsdPrim

https://openusd.org/release/api/class_usd_prim.html

OpenUSD, UsdPayloads

https://openusd.org/release/api/class_usd_payloads.html