newton.actuators.parse_actuator_prim#
- newton.actuators.parse_actuator_prim(prim, *, allow_unsafe_torch_checkpoints=False)[source]#
Parse a USD Actuator prim into a composed actuator specification.
Each detected schema directly maps to a component class with its extracted params. Returns
Noneif the prim is not aNewtonActuator.- Parameters:
prim – USD prim to parse.
allow_unsafe_torch_checkpoints (bool) – Allow
newton:modelPathto reference a Torch checkpoint. Only use this for trusted USD assets and checkpoints:torch.export.loadmay execute code during model finalization. Defaults toFalse.
- Raises:
ValueError – If the prim is a
NewtonActuatorbut: - has no authorednewton:targetsrelationship, - the target prim does not exist or is not aPhysicsRevoluteJoint/PhysicsPrismaticJoint, - has multiple drive schemas applied, - has no drive schema, or - has aNewtonNeuralControlAPIwith an unsupported model or an unapproved Torch checkpoint.