tensor-bindings-cpu
Installation
SKILL.md
Tensor Bindings: CPU Read and Write
Tensor bindings map physics-object path patterns to typed tensor views, including authored USD objects and runtime-only clones. This enables bulk data exchange with NumPy, PyTorch, Warp, or any other DLPack-compatible framework.
When to Use
Use this skill when a caller needs bulk CPU tensor reads or writes for simulation state, such as poses, velocities, or joint targets, through the public TensorBindingsAPI.
Instructions
- Read
docs/tutorials/tensor_bindings.mdand the sample for the caller's language before changing code. - Populate an ovstage, attach it at that ordinal, create bindings once from stable physics-object path patterns, then reuse them to read or write tensors with the binding shape and dtype.
- Use Shell to run the Python sample or compile the C sample after adapting the scene path and tensor type.