usdrt::PhysxSchemaPhysxTendonAxisAPI
Defined in usdrt/scenegraph/usd/physxSchema/physxTendonAxisAPI.h
Functions
usdrt::PhysxSchemaPhysxTendonAxisAPI::Apply: Applies this multiple-apply API schema to the given
prim
along with the given instance name,name
.usdrt::PhysxSchemaPhysxTendonAxisAPI::CreateForceCoefficientAttr: See GetForceCoefficientAttr() , and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute's default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.usdrt::PhysxSchemaPhysxTendonAxisAPI::CreateGearingAttr: See GetGearingAttr() , and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute's default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.usdrt::PhysxSchemaPhysxTendonAxisAPI::CreateJointAxisAttr: See GetJointAxisAttr() , and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute's default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.usdrt::PhysxSchemaPhysxTendonAxisAPI::GetForceCoefficientAttr: Joint force coefficient(s) per joint axis in axis token array, in the same order. Range: (-inf, inf) Units: translational axis: unitless rotational axis: distance.
usdrt::PhysxSchemaPhysxTendonAxisAPI::GetGearingAttr: Joint gearing(s) per joint axis in axis token array, in the same order. Range: (-inf, inf) Units: translational axis: unitless rotational axis: distance/degrees.
usdrt::PhysxSchemaPhysxTendonAxisAPI::GetJointAxisAttr: Specifies target joint axis/axes. Ignored when the joint only has a single axis, e.g. a revolute joint.
usdrt::PhysxSchemaPhysxTendonAxisAPI::GetName: Returns the name of this multiple-apply schema instance.
usdrt::DestructionSchemaDestructibleBaseAPI::GetPath: Return the SdfPath to this schema object's held prim.
usdrt::DestructionSchemaDestructibleBaseAPI::GetPrim: Return this schema object's held prim.
usdrt::PhysxSchemaPhysxTendonAxisAPI::PhysxSchemaPhysxTendonAxisAPI: Construct a PhysxSchemaPhysxTendonAxisAPI on UsdPrim
prim
with namename
. Equivalent to PhysxSchemaPhysxTendonAxisAPI::Get( prim.GetStage(), prim.GetPath().AppendProperty( "physxTendon:name"));.usdrt::PhysxSchemaPhysxTendonAxisAPI::PhysxSchemaPhysxTendonAxisAPI: Construct a PhysxSchemaPhysxTendonAxisAPI on the prim held by
schemaObj
with namename
. Should be preferred over PhysxSchemaPhysxTendonAxisAPI (schemaObj.GetPrim(), name), as it preserves SchemaBase state.usdrt::DestructionSchemaDestructibleBaseAPI::_GetInstanceName: Returns the instance name of the API schema object belonging to a multiple-apply API schema.
usdrt::PhysxSchemaPhysxTendonAxisAPI::operator bool: Boolean operator.
usdrt::PhysxSchemaPhysxTendonAxisAPI::~PhysxSchemaPhysxTendonAxisAPI: Destructor.
Variables
usdrt::PhysxSchemaPhysxTendonAxisAPI::schemaType: Compile time constant representing what kind of schema this class is.
-
class PhysxSchemaPhysxTendonAxisAPI : public usdrt::UsdAPISchemaBase
WARNING: Draft API, this design is not fixed and may change in the future. At this point, we don’t support multi-axis joints (e.g. spherical, D6).
Applied to a Physics Joint that must be part of an articulation, e.g. PhysicsRevoluteJoint or PhysicsPrismaticJoint.
A tendon axis is part of a fixed tendon and contributes to the tendon length via the position of its associated articulation joint axis and the gearing attribute. The tendon applies spring-damper forces to the articulation links, scaled by the force coefficient, that aim to maintain constraints on the tendon lengths.
A joint may have multiple tendon axes that belong to distinct fixed tendons; therefore, the fixed-tendon APIs are multi-apply and are grouped into tendons by their instance names.
Fixed tendons do not allow linking arbitrary joint axes of the articulation: The respective joints must all be directly connected to each other in the articulation structure, i.e. each of the joints in the tendon must be connected by a single articulation link to another joint in the same tendon. This implies that fixed tendons can branch along with a branching articulation as well. In addition, the root tendon axis created by applying the PhysxTendonAxisRootAPI must be applied to the articulation joint that is the common ancestor of all joint axes in the fixed tendon.
In a future version, it will be possible to include multiple axes of a multi-axis joint (e.g. a spherical joint) in the fixed tendon by adding them to the axis token array, and setting their gearing and forceCoefficient accordingly in the respective float arrays (in the same order). Until then, the jointAxis token array is ignored, and only the first element of the gearing array is considered.
Public Functions
-
inline explicit PhysxSchemaPhysxTendonAxisAPI(const UsdPrim &prim = UsdPrim(), const TfToken &name = TfToken())
Construct a PhysxSchemaPhysxTendonAxisAPI on UsdPrim
prim
with namename
. Equivalent to PhysxSchemaPhysxTendonAxisAPI::Get( prim.GetStage(), prim.GetPath().AppendProperty( “physxTendon:name”));.for a valid
prim
, but will not immediately throw an error for an invalidprim
-
inline explicit PhysxSchemaPhysxTendonAxisAPI(const UsdSchemaBase &schemaObj, const TfToken &name)
Construct a PhysxSchemaPhysxTendonAxisAPI on the prim held by
schemaObj
with namename
. Should be preferred over PhysxSchemaPhysxTendonAxisAPI(schemaObj.GetPrim(), name), as it preserves SchemaBase state.
-
inline virtual ~PhysxSchemaPhysxTendonAxisAPI()
Destructor.
-
inline operator bool() const
Boolean operator.
- Returns
Return true if the contained prim is has this api schema applied using
HasAPI
, and false otherwise.
-
inline UsdAttribute GetGearingAttr() const
Joint gearing(s) per joint axis in axis token array, in the same order. Range: (-inf, inf) Units: translational axis: unitless rotational axis: distance/degrees.
Declaration
float[] gearing = [1]
C++ Type
VtArray<float>
Usd Type
SdfValueTypeNames->FloatArray
-
inline UsdAttribute CreateGearingAttr() const
See GetGearingAttr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute’s default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.
-
inline UsdAttribute GetForceCoefficientAttr() const
Joint force coefficient(s) per joint axis in axis token array, in the same order. Range: (-inf, inf) Units: translational axis: unitless rotational axis: distance.
Declaration
float[] forceCoefficient = [1]
C++ Type
VtArray<float>
Usd Type
SdfValueTypeNames->FloatArray
-
inline UsdAttribute CreateForceCoefficientAttr() const
See GetForceCoefficientAttr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute’s default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.
-
inline UsdAttribute GetJointAxisAttr() const
Specifies target joint axis/axes. Ignored when the joint only has a single axis, e.g. a revolute joint.
Declaration
uniform token[] jointAxis
C++ Type
VtArray<TfToken>
Usd Type
SdfValueTypeNames->TokenArray
Variability
SdfVariabilityUniform
Allowed Values
transX, transY, transZ, rotX, rotY, rotZ
-
inline UsdAttribute CreateJointAxisAttr() const
See GetJointAxisAttr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute’s default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.
Public Static Functions
-
static inline PhysxSchemaPhysxTendonAxisAPI Apply(const UsdPrim &prim, const TfToken &name)
Applies this multiple-apply API schema to the given
prim
along with the given instance name,name
.This information is stored by adding “PhysxTendonAxisAPI:<i>name</i>” to the token-valued, listOp metadata apiSchemas on the prim. For example, if
name
is ‘instance1’, the token ‘PhysxTendonAxisAPI:instance1’ is added to ‘apiSchemas’.See also
UsdPrim::GetAppliedSchemas()
See also
UsdPrim::HasAPI()
See also
UsdPrim::ApplyAPI()
See also
UsdPrim::RemoveAPI()
- Returns
A valid PhysxSchemaPhysxTendonAxisAPI object is returned upon success. An invalid (or empty) PhysxSchemaPhysxTendonAxisAPI object is returned upon failure. See UsdPrim::ApplyAPI() for conditions resulting in failure.
Public Static Attributes
-
static const UsdSchemaType schemaType = UsdSchemaType::MultipleApplyAPI
Compile time constant representing what kind of schema this class is.
See also
UsdSchemaType
-
inline explicit PhysxSchemaPhysxTendonAxisAPI(const UsdPrim &prim = UsdPrim(), const TfToken &name = TfToken())