isaaclab_ov.cloner#
Clone contexts route assets to the representation that owns their copies:
OvPhysxReplicateContextprepares native physics replication.OvrtxReplicateContextprepares copies for an OVRTX engine’s internal scene.OvstageReplicateContextprepares copies for simulation-owned OVStage resources, independently of their consumers. An OVRTX engine borrowing that stage does not clone it again.
Clone routing#
OvrtxReplicateContext.prepare in isaaclab_ov/cloner/replicate.py selects the representation
before native resource initialization. Without environment overrides, OVRTX uses native cloning with
both OVPhysX and Newton. OVPhysX also retains native physics cloning.
ISAAC_LAB_OVRTX_USE_OVSTAGE=1 selects independent OVStage rendering with either physics backend;
0 selects native OVRTX cloning. Set the flag before creating the simulation. Reset retains the
selected route. This flag alone never enables physics/rendering stage sharing.
To share one OVStage with OVPhysX and OVRTX, set ISAAC_LAB_SHARE_OVSTAGE=1. Sharing requires
OVPhysX and selects OVStage rendering regardless of ISAAC_LAB_OVRTX_USE_OVSTAGE.
Sharing remains experimental and opt-in. It retains native physics cloning and populates complete
original worlds in one stage before OVPhysX attaches. OvstageReplicateContext also receives the
physics asset routes so it can complete the rendering copies after native physics cloning and binding
acquisition. The selected route is retained across resets and subsequent renderer creation.
Shared-stage filtering retains joints, physics schemas, and authored physics properties, excluding
only render-only clone sources. Native replication of physics-only roots without rigid bodies or
colliders is rejected before attachment. Route these prims through
UsdReplicateContext so their destinations are present when physics attaches.
Worlds containing USD-only physics retain their companion bodies in the initial import.
Source classifications are reused within each export and refreshed on subsequent exports, avoiding
repeated subtree traversal while accounting for stage edits and reinitialization.
Configure shared-stage cameras and contact sensors before the initial simulation reset. Cameras may have
different product settings, but share one native renderer and must agree on native logging and transform-cache settings.
Full-stage physics imports, including deformable scenes that require authored environment copies, are
not supported in shared mode. Disable ISAAC_LAB_SHARE_OVSTAGE
for those scenes; sharing rejects them before native population rather than dropping their USD overrides.
The stage owner coordinates write ordinals and releases its borrowers before rebuilding. Rendering on an OVStage is synchronous.