diff --git a/include/mujoco/experimental/usd/mjcPhysics/actuator.h b/include/mujoco/experimental/usd/mjcPhysics/actuator.h index 49d793ff..cb0069b9 100644 --- a/include/mujoco/experimental/usd/mjcPhysics/actuator.h +++ b/include/mujoco/experimental/usd/mjcPhysics/actuator.h @@ -59,13 +59,13 @@ class MjcPhysicsActuator : public UsdTyped { /// Equivalent to MjcPhysicsActuator::Get(prim.GetStage(), prim.GetPath()) /// for a \em valid \p prim, but will not immediately throw an error for /// an invalid \p prim - explicit MjcPhysicsActuator(const UsdPrim &prim = UsdPrim()) + explicit MjcPhysicsActuator(const UsdPrim& prim = UsdPrim()) : UsdTyped(prim) {} /// Construct a MjcPhysicsActuator on the prim held by \p schemaObj . /// Should be preferred over MjcPhysicsActuator(schemaObj.GetPrim()), /// as it preserves SchemaBase state. - explicit MjcPhysicsActuator(const UsdSchemaBase &schemaObj) + explicit MjcPhysicsActuator(const UsdSchemaBase& schemaObj) : UsdTyped(schemaObj) {} /// Destructor. @@ -76,7 +76,7 @@ class MjcPhysicsActuator : public UsdTyped { /// class and all its ancestor classes. Does not include attributes that /// may be authored by custom/extended methods of the schemas involved. MJCPHYSICS_API - static const TfTokenVector &GetSchemaAttributeNames( + static const TfTokenVector& GetSchemaAttributeNames( bool includeInherited = true); /// Return a MjcPhysicsActuator holding the prim adhering to this @@ -89,7 +89,7 @@ class MjcPhysicsActuator : public UsdTyped { /// \endcode /// MJCPHYSICS_API - static MjcPhysicsActuator Get(const UsdStagePtr &stage, const SdfPath &path); + static MjcPhysicsActuator Get(const UsdStagePtr& stage, const SdfPath& path); /// Attempt to ensure a \a UsdPrim adhering to this schema at \p path /// is defined (according to UsdPrim::IsDefined()) on this stage. @@ -114,8 +114,8 @@ class MjcPhysicsActuator : public UsdTyped { /// the opinion at the current EditTarget. /// MJCPHYSICS_API - static MjcPhysicsActuator Define(const UsdStagePtr &stage, - const SdfPath &path); + static MjcPhysicsActuator Define(const UsdStagePtr& stage, + const SdfPath& path); protected: /// Returns the kind of schema this class belongs to. @@ -128,13 +128,13 @@ class MjcPhysicsActuator : public UsdTyped { // needs to invoke _GetStaticTfType. friend class UsdSchemaRegistry; MJCPHYSICS_API - static const TfType &_GetStaticTfType(); + static const TfType& _GetStaticTfType(); static bool _IsTypedSchema(); // override SchemaBase virtuals. MJCPHYSICS_API - const TfType &_GetTfType() const override; + const TfType& _GetTfType() const override; public: // --------------------------------------------------------------------- // @@ -157,7 +157,7 @@ class MjcPhysicsActuator : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateGroupAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateGroupAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -187,7 +187,7 @@ class MjcPhysicsActuator : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcCtrlLimitedAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcCtrlLimitedAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -217,7 +217,7 @@ class MjcPhysicsActuator : public UsdTyped { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateMjcForceLimitedAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -247,7 +247,7 @@ class MjcPhysicsActuator : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcActLimitedAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcActLimitedAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -274,7 +274,7 @@ class MjcPhysicsActuator : public UsdTyped { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateMjcCtrlRangeMinAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -301,7 +301,7 @@ class MjcPhysicsActuator : public UsdTyped { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateMjcCtrlRangeMaxAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -328,7 +328,7 @@ class MjcPhysicsActuator : public UsdTyped { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateMjcForceRangeMinAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -355,7 +355,7 @@ class MjcPhysicsActuator : public UsdTyped { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateMjcForceRangeMaxAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -382,7 +382,7 @@ class MjcPhysicsActuator : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcActRangeMinAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcActRangeMinAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -409,7 +409,7 @@ class MjcPhysicsActuator : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcActRangeMaxAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcActRangeMaxAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -434,7 +434,7 @@ class MjcPhysicsActuator : public UsdTyped { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateMjcLengthRangeMinAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -459,7 +459,7 @@ class MjcPhysicsActuator : public UsdTyped { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateMjcLengthRangeMaxAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -490,7 +490,7 @@ class MjcPhysicsActuator : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcGearAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcGearAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -516,7 +516,7 @@ class MjcPhysicsActuator : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcCrankLengthAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcCrankLengthAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -543,7 +543,7 @@ class MjcPhysicsActuator : public UsdTyped { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateMjcJointInParentAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -571,7 +571,7 @@ class MjcPhysicsActuator : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcActDimAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcActDimAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -598,7 +598,7 @@ class MjcPhysicsActuator : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcDynTypeAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcDynTypeAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -624,7 +624,7 @@ class MjcPhysicsActuator : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcGainTypeAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcGainTypeAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -650,7 +650,7 @@ class MjcPhysicsActuator : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcBiasTypeAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcBiasTypeAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -679,7 +679,7 @@ class MjcPhysicsActuator : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcDynPrmAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcDynPrmAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -707,7 +707,7 @@ class MjcPhysicsActuator : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcGainPrmAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcGainPrmAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -734,7 +734,7 @@ class MjcPhysicsActuator : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcBiasPrmAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcBiasPrmAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -760,7 +760,7 @@ class MjcPhysicsActuator : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcActEarlyAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcActEarlyAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -794,7 +794,7 @@ class MjcPhysicsActuator : public UsdTyped { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateMjcInheritRangeAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: diff --git a/include/mujoco/experimental/usd/mjcPhysics/collisionAPI.h b/include/mujoco/experimental/usd/mjcPhysics/collisionAPI.h index 6903e633..1203ad5a 100644 --- a/include/mujoco/experimental/usd/mjcPhysics/collisionAPI.h +++ b/include/mujoco/experimental/usd/mjcPhysics/collisionAPI.h @@ -53,13 +53,13 @@ class MjcPhysicsCollisionAPI : public UsdAPISchemaBase { /// Equivalent to MjcPhysicsCollisionAPI::Get(prim.GetStage(), prim.GetPath()) /// for a \em valid \p prim, but will not immediately throw an error for /// an invalid \p prim - explicit MjcPhysicsCollisionAPI(const UsdPrim &prim = UsdPrim()) + explicit MjcPhysicsCollisionAPI(const UsdPrim& prim = UsdPrim()) : UsdAPISchemaBase(prim) {} /// Construct a MjcPhysicsCollisionAPI on the prim held by \p schemaObj . /// Should be preferred over MjcPhysicsCollisionAPI(schemaObj.GetPrim()), /// as it preserves SchemaBase state. - explicit MjcPhysicsCollisionAPI(const UsdSchemaBase &schemaObj) + explicit MjcPhysicsCollisionAPI(const UsdSchemaBase& schemaObj) : UsdAPISchemaBase(schemaObj) {} /// Destructor. @@ -70,7 +70,7 @@ class MjcPhysicsCollisionAPI : public UsdAPISchemaBase { /// class and all its ancestor classes. Does not include attributes that /// may be authored by custom/extended methods of the schemas involved. MJCPHYSICS_API - static const TfTokenVector &GetSchemaAttributeNames( + static const TfTokenVector& GetSchemaAttributeNames( bool includeInherited = true); /// Return a MjcPhysicsCollisionAPI holding the prim adhering to this @@ -83,8 +83,8 @@ class MjcPhysicsCollisionAPI : public UsdAPISchemaBase { /// \endcode /// MJCPHYSICS_API - static MjcPhysicsCollisionAPI Get(const UsdStagePtr &stage, - const SdfPath &path); + static MjcPhysicsCollisionAPI Get(const UsdStagePtr& stage, + const SdfPath& path); /// Returns true if this single-apply API schema can be applied to /// the given \p prim. If this schema can not be a applied to the prim, @@ -103,7 +103,7 @@ class MjcPhysicsCollisionAPI : public UsdAPISchemaBase { /// \sa UsdPrim::RemoveAPI() /// MJCPHYSICS_API - static bool CanApply(const UsdPrim &prim, std::string *whyNot = nullptr); + static bool CanApply(const UsdPrim& prim, std::string* whyNot = nullptr); /// Applies this single-apply API schema to the given \p prim. /// This information is stored by adding "MjcCollisionAPI" to the @@ -121,7 +121,7 @@ class MjcPhysicsCollisionAPI : public UsdAPISchemaBase { /// \sa UsdPrim::RemoveAPI() /// MJCPHYSICS_API - static MjcPhysicsCollisionAPI Apply(const UsdPrim &prim); + static MjcPhysicsCollisionAPI Apply(const UsdPrim& prim); protected: /// Returns the kind of schema this class belongs to. @@ -134,13 +134,13 @@ class MjcPhysicsCollisionAPI : public UsdAPISchemaBase { // needs to invoke _GetStaticTfType. friend class UsdSchemaRegistry; MJCPHYSICS_API - static const TfType &_GetStaticTfType(); + static const TfType& _GetStaticTfType(); static bool _IsTypedSchema(); // override SchemaBase virtuals. MJCPHYSICS_API - const TfType &_GetTfType() const override; + const TfType& _GetTfType() const override; public: // --------------------------------------------------------------------- // @@ -163,7 +163,7 @@ class MjcPhysicsCollisionAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateGroupAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateGroupAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -188,7 +188,7 @@ class MjcPhysicsCollisionAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateShellInertiaAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateShellInertiaAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -213,7 +213,7 @@ class MjcPhysicsCollisionAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreatePriorityAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreatePriorityAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -239,7 +239,7 @@ class MjcPhysicsCollisionAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateConDimAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateConDimAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -264,7 +264,7 @@ class MjcPhysicsCollisionAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateSolMixAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateSolMixAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -289,7 +289,7 @@ class MjcPhysicsCollisionAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateSolRefAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateSolRefAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -314,7 +314,7 @@ class MjcPhysicsCollisionAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateSolImpAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateSolImpAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -339,7 +339,7 @@ class MjcPhysicsCollisionAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMarginAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMarginAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -367,7 +367,7 @@ class MjcPhysicsCollisionAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateGapAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateGapAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: diff --git a/include/mujoco/experimental/usd/mjcPhysics/imageableAPI.h b/include/mujoco/experimental/usd/mjcPhysics/imageableAPI.h index 4dbd9a24..8a77eada 100644 --- a/include/mujoco/experimental/usd/mjcPhysics/imageableAPI.h +++ b/include/mujoco/experimental/usd/mjcPhysics/imageableAPI.h @@ -53,13 +53,13 @@ class MjcPhysicsImageableAPI : public UsdAPISchemaBase { /// Equivalent to MjcPhysicsImageableAPI::Get(prim.GetStage(), prim.GetPath()) /// for a \em valid \p prim, but will not immediately throw an error for /// an invalid \p prim - explicit MjcPhysicsImageableAPI(const UsdPrim &prim = UsdPrim()) + explicit MjcPhysicsImageableAPI(const UsdPrim& prim = UsdPrim()) : UsdAPISchemaBase(prim) {} /// Construct a MjcPhysicsImageableAPI on the prim held by \p schemaObj . /// Should be preferred over MjcPhysicsImageableAPI(schemaObj.GetPrim()), /// as it preserves SchemaBase state. - explicit MjcPhysicsImageableAPI(const UsdSchemaBase &schemaObj) + explicit MjcPhysicsImageableAPI(const UsdSchemaBase& schemaObj) : UsdAPISchemaBase(schemaObj) {} /// Destructor. @@ -70,7 +70,7 @@ class MjcPhysicsImageableAPI : public UsdAPISchemaBase { /// class and all its ancestor classes. Does not include attributes that /// may be authored by custom/extended methods of the schemas involved. MJCPHYSICS_API - static const TfTokenVector &GetSchemaAttributeNames( + static const TfTokenVector& GetSchemaAttributeNames( bool includeInherited = true); /// Return a MjcPhysicsImageableAPI holding the prim adhering to this @@ -83,8 +83,8 @@ class MjcPhysicsImageableAPI : public UsdAPISchemaBase { /// \endcode /// MJCPHYSICS_API - static MjcPhysicsImageableAPI Get(const UsdStagePtr &stage, - const SdfPath &path); + static MjcPhysicsImageableAPI Get(const UsdStagePtr& stage, + const SdfPath& path); /// Returns true if this single-apply API schema can be applied to /// the given \p prim. If this schema can not be a applied to the prim, @@ -103,7 +103,7 @@ class MjcPhysicsImageableAPI : public UsdAPISchemaBase { /// \sa UsdPrim::RemoveAPI() /// MJCPHYSICS_API - static bool CanApply(const UsdPrim &prim, std::string *whyNot = nullptr); + static bool CanApply(const UsdPrim& prim, std::string* whyNot = nullptr); /// Applies this single-apply API schema to the given \p prim. /// This information is stored by adding "MjcImageableAPI" to the @@ -121,7 +121,7 @@ class MjcPhysicsImageableAPI : public UsdAPISchemaBase { /// \sa UsdPrim::RemoveAPI() /// MJCPHYSICS_API - static MjcPhysicsImageableAPI Apply(const UsdPrim &prim); + static MjcPhysicsImageableAPI Apply(const UsdPrim& prim); protected: /// Returns the kind of schema this class belongs to. @@ -134,13 +134,13 @@ class MjcPhysicsImageableAPI : public UsdAPISchemaBase { // needs to invoke _GetStaticTfType. friend class UsdSchemaRegistry; MJCPHYSICS_API - static const TfType &_GetStaticTfType(); + static const TfType& _GetStaticTfType(); static bool _IsTypedSchema(); // override SchemaBase virtuals. MJCPHYSICS_API - const TfType &_GetTfType() const override; + const TfType& _GetTfType() const override; public: // --------------------------------------------------------------------- // @@ -163,7 +163,7 @@ class MjcPhysicsImageableAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateGroupAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateGroupAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: diff --git a/include/mujoco/experimental/usd/mjcPhysics/jointAPI.h b/include/mujoco/experimental/usd/mjcPhysics/jointAPI.h index d3b25f2f..6d53472d 100644 --- a/include/mujoco/experimental/usd/mjcPhysics/jointAPI.h +++ b/include/mujoco/experimental/usd/mjcPhysics/jointAPI.h @@ -58,13 +58,13 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// Equivalent to MjcPhysicsJointAPI::Get(prim.GetStage(), prim.GetPath()) /// for a \em valid \p prim, but will not immediately throw an error for /// an invalid \p prim - explicit MjcPhysicsJointAPI(const UsdPrim &prim = UsdPrim()) + explicit MjcPhysicsJointAPI(const UsdPrim& prim = UsdPrim()) : UsdAPISchemaBase(prim) {} /// Construct a MjcPhysicsJointAPI on the prim held by \p schemaObj . /// Should be preferred over MjcPhysicsJointAPI(schemaObj.GetPrim()), /// as it preserves SchemaBase state. - explicit MjcPhysicsJointAPI(const UsdSchemaBase &schemaObj) + explicit MjcPhysicsJointAPI(const UsdSchemaBase& schemaObj) : UsdAPISchemaBase(schemaObj) {} /// Destructor. @@ -75,7 +75,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// class and all its ancestor classes. Does not include attributes that /// may be authored by custom/extended methods of the schemas involved. MJCPHYSICS_API - static const TfTokenVector &GetSchemaAttributeNames( + static const TfTokenVector& GetSchemaAttributeNames( bool includeInherited = true); /// Return a MjcPhysicsJointAPI holding the prim adhering to this @@ -88,7 +88,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// \endcode /// MJCPHYSICS_API - static MjcPhysicsJointAPI Get(const UsdStagePtr &stage, const SdfPath &path); + static MjcPhysicsJointAPI Get(const UsdStagePtr& stage, const SdfPath& path); /// Returns true if this single-apply API schema can be applied to /// the given \p prim. If this schema can not be a applied to the prim, @@ -107,7 +107,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// \sa UsdPrim::RemoveAPI() /// MJCPHYSICS_API - static bool CanApply(const UsdPrim &prim, std::string *whyNot = nullptr); + static bool CanApply(const UsdPrim& prim, std::string* whyNot = nullptr); /// Applies this single-apply API schema to the given \p prim. /// This information is stored by adding "MjcJointAPI" to the @@ -125,7 +125,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// \sa UsdPrim::RemoveAPI() /// MJCPHYSICS_API - static MjcPhysicsJointAPI Apply(const UsdPrim &prim); + static MjcPhysicsJointAPI Apply(const UsdPrim& prim); protected: /// Returns the kind of schema this class belongs to. @@ -138,13 +138,13 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { // needs to invoke _GetStaticTfType. friend class UsdSchemaRegistry; MJCPHYSICS_API - static const TfType &_GetStaticTfType(); + static const TfType& _GetStaticTfType(); static bool _IsTypedSchema(); // override SchemaBase virtuals. MJCPHYSICS_API - const TfType &_GetTfType() const override; + const TfType& _GetTfType() const override; public: // --------------------------------------------------------------------- // @@ -167,7 +167,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateGroupAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateGroupAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -198,7 +198,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateMjcSpringdamperAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -222,7 +222,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcSolreflimitAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcSolreflimitAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -246,7 +246,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcSolimplimitAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcSolimplimitAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -271,7 +271,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateMjcSolreffrictionAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -296,7 +296,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateMjcSolimpfrictionAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -322,7 +322,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcStiffnessAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcStiffnessAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -352,7 +352,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateMjcActuatorfrcrangeMinAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -382,7 +382,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateMjcActuatorfrcrangeMaxAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -415,7 +415,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateMjcActuatorfrclimitedAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -448,7 +448,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateMjcActuatorgravcompAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -476,7 +476,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcMarginAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcMarginAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -506,7 +506,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcRefAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcRefAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -537,7 +537,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcSpringrefAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcSpringrefAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -568,7 +568,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcArmatureAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcArmatureAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -597,7 +597,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcDampingAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcDampingAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -625,7 +625,7 @@ class MjcPhysicsJointAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateMjcFrictionlossAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: diff --git a/include/mujoco/experimental/usd/mjcPhysics/keyframe.h b/include/mujoco/experimental/usd/mjcPhysics/keyframe.h index ef42e66a..4fa0091c 100644 --- a/include/mujoco/experimental/usd/mjcPhysics/keyframe.h +++ b/include/mujoco/experimental/usd/mjcPhysics/keyframe.h @@ -53,13 +53,13 @@ class MjcPhysicsKeyframe : public UsdTyped { /// Equivalent to MjcPhysicsKeyframe::Get(prim.GetStage(), prim.GetPath()) /// for a \em valid \p prim, but will not immediately throw an error for /// an invalid \p prim - explicit MjcPhysicsKeyframe(const UsdPrim &prim = UsdPrim()) + explicit MjcPhysicsKeyframe(const UsdPrim& prim = UsdPrim()) : UsdTyped(prim) {} /// Construct a MjcPhysicsKeyframe on the prim held by \p schemaObj . /// Should be preferred over MjcPhysicsKeyframe(schemaObj.GetPrim()), /// as it preserves SchemaBase state. - explicit MjcPhysicsKeyframe(const UsdSchemaBase &schemaObj) + explicit MjcPhysicsKeyframe(const UsdSchemaBase& schemaObj) : UsdTyped(schemaObj) {} /// Destructor. @@ -70,7 +70,7 @@ class MjcPhysicsKeyframe : public UsdTyped { /// class and all its ancestor classes. Does not include attributes that /// may be authored by custom/extended methods of the schemas involved. MJCPHYSICS_API - static const TfTokenVector &GetSchemaAttributeNames( + static const TfTokenVector& GetSchemaAttributeNames( bool includeInherited = true); /// Return a MjcPhysicsKeyframe holding the prim adhering to this @@ -83,7 +83,7 @@ class MjcPhysicsKeyframe : public UsdTyped { /// \endcode /// MJCPHYSICS_API - static MjcPhysicsKeyframe Get(const UsdStagePtr &stage, const SdfPath &path); + static MjcPhysicsKeyframe Get(const UsdStagePtr& stage, const SdfPath& path); /// Attempt to ensure a \a UsdPrim adhering to this schema at \p path /// is defined (according to UsdPrim::IsDefined()) on this stage. @@ -108,8 +108,8 @@ class MjcPhysicsKeyframe : public UsdTyped { /// the opinion at the current EditTarget. /// MJCPHYSICS_API - static MjcPhysicsKeyframe Define(const UsdStagePtr &stage, - const SdfPath &path); + static MjcPhysicsKeyframe Define(const UsdStagePtr& stage, + const SdfPath& path); protected: /// Returns the kind of schema this class belongs to. @@ -122,13 +122,13 @@ class MjcPhysicsKeyframe : public UsdTyped { // needs to invoke _GetStaticTfType. friend class UsdSchemaRegistry; MJCPHYSICS_API - static const TfType &_GetStaticTfType(); + static const TfType& _GetStaticTfType(); static bool _IsTypedSchema(); // override SchemaBase virtuals. MJCPHYSICS_API - const TfType &_GetTfType() const override; + const TfType& _GetTfType() const override; public: // --------------------------------------------------------------------- // @@ -151,7 +151,7 @@ class MjcPhysicsKeyframe : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcQposAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcQposAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -175,7 +175,7 @@ class MjcPhysicsKeyframe : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcQvelAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcQvelAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -199,7 +199,7 @@ class MjcPhysicsKeyframe : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcActAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcActAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -223,7 +223,7 @@ class MjcPhysicsKeyframe : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcCtrlAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcCtrlAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -247,7 +247,7 @@ class MjcPhysicsKeyframe : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcMposAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcMposAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -271,7 +271,7 @@ class MjcPhysicsKeyframe : public UsdTyped { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMjcMquatAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMjcMquatAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: diff --git a/include/mujoco/experimental/usd/mjcPhysics/materialAPI.h b/include/mujoco/experimental/usd/mjcPhysics/materialAPI.h index 13536d8e..8d30abfa 100644 --- a/include/mujoco/experimental/usd/mjcPhysics/materialAPI.h +++ b/include/mujoco/experimental/usd/mjcPhysics/materialAPI.h @@ -53,13 +53,13 @@ class MjcPhysicsMaterialAPI : public UsdAPISchemaBase { /// Equivalent to MjcPhysicsMaterialAPI::Get(prim.GetStage(), prim.GetPath()) /// for a \em valid \p prim, but will not immediately throw an error for /// an invalid \p prim - explicit MjcPhysicsMaterialAPI(const UsdPrim &prim = UsdPrim()) + explicit MjcPhysicsMaterialAPI(const UsdPrim& prim = UsdPrim()) : UsdAPISchemaBase(prim) {} /// Construct a MjcPhysicsMaterialAPI on the prim held by \p schemaObj . /// Should be preferred over MjcPhysicsMaterialAPI(schemaObj.GetPrim()), /// as it preserves SchemaBase state. - explicit MjcPhysicsMaterialAPI(const UsdSchemaBase &schemaObj) + explicit MjcPhysicsMaterialAPI(const UsdSchemaBase& schemaObj) : UsdAPISchemaBase(schemaObj) {} /// Destructor. @@ -70,7 +70,7 @@ class MjcPhysicsMaterialAPI : public UsdAPISchemaBase { /// class and all its ancestor classes. Does not include attributes that /// may be authored by custom/extended methods of the schemas involved. MJCPHYSICS_API - static const TfTokenVector &GetSchemaAttributeNames( + static const TfTokenVector& GetSchemaAttributeNames( bool includeInherited = true); /// Return a MjcPhysicsMaterialAPI holding the prim adhering to this @@ -83,8 +83,8 @@ class MjcPhysicsMaterialAPI : public UsdAPISchemaBase { /// \endcode /// MJCPHYSICS_API - static MjcPhysicsMaterialAPI Get(const UsdStagePtr &stage, - const SdfPath &path); + static MjcPhysicsMaterialAPI Get(const UsdStagePtr& stage, + const SdfPath& path); /// Returns true if this single-apply API schema can be applied to /// the given \p prim. If this schema can not be a applied to the prim, @@ -103,7 +103,7 @@ class MjcPhysicsMaterialAPI : public UsdAPISchemaBase { /// \sa UsdPrim::RemoveAPI() /// MJCPHYSICS_API - static bool CanApply(const UsdPrim &prim, std::string *whyNot = nullptr); + static bool CanApply(const UsdPrim& prim, std::string* whyNot = nullptr); /// Applies this single-apply API schema to the given \p prim. /// This information is stored by adding "MjcMaterialAPI" to the @@ -121,7 +121,7 @@ class MjcPhysicsMaterialAPI : public UsdAPISchemaBase { /// \sa UsdPrim::RemoveAPI() /// MJCPHYSICS_API - static MjcPhysicsMaterialAPI Apply(const UsdPrim &prim); + static MjcPhysicsMaterialAPI Apply(const UsdPrim& prim); protected: /// Returns the kind of schema this class belongs to. @@ -134,13 +134,13 @@ class MjcPhysicsMaterialAPI : public UsdAPISchemaBase { // needs to invoke _GetStaticTfType. friend class UsdSchemaRegistry; MJCPHYSICS_API - static const TfType &_GetStaticTfType(); + static const TfType& _GetStaticTfType(); static bool _IsTypedSchema(); // override SchemaBase virtuals. MJCPHYSICS_API - const TfType &_GetTfType() const override; + const TfType& _GetTfType() const override; public: // --------------------------------------------------------------------- // @@ -164,7 +164,7 @@ class MjcPhysicsMaterialAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateTorsionalFrictionAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -189,7 +189,7 @@ class MjcPhysicsMaterialAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateRollingFrictionAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: diff --git a/include/mujoco/experimental/usd/mjcPhysics/meshCollisionAPI.h b/include/mujoco/experimental/usd/mjcPhysics/meshCollisionAPI.h index 653e6ecd..431e9c38 100644 --- a/include/mujoco/experimental/usd/mjcPhysics/meshCollisionAPI.h +++ b/include/mujoco/experimental/usd/mjcPhysics/meshCollisionAPI.h @@ -58,13 +58,13 @@ class MjcPhysicsMeshCollisionAPI : public UsdAPISchemaBase { /// Equivalent to MjcPhysicsMeshCollisionAPI::Get(prim.GetStage(), /// prim.GetPath()) for a \em valid \p prim, but will not immediately throw an /// error for an invalid \p prim - explicit MjcPhysicsMeshCollisionAPI(const UsdPrim &prim = UsdPrim()) + explicit MjcPhysicsMeshCollisionAPI(const UsdPrim& prim = UsdPrim()) : UsdAPISchemaBase(prim) {} /// Construct a MjcPhysicsMeshCollisionAPI on the prim held by \p schemaObj . /// Should be preferred over MjcPhysicsMeshCollisionAPI(schemaObj.GetPrim()), /// as it preserves SchemaBase state. - explicit MjcPhysicsMeshCollisionAPI(const UsdSchemaBase &schemaObj) + explicit MjcPhysicsMeshCollisionAPI(const UsdSchemaBase& schemaObj) : UsdAPISchemaBase(schemaObj) {} /// Destructor. @@ -75,7 +75,7 @@ class MjcPhysicsMeshCollisionAPI : public UsdAPISchemaBase { /// class and all its ancestor classes. Does not include attributes that /// may be authored by custom/extended methods of the schemas involved. MJCPHYSICS_API - static const TfTokenVector &GetSchemaAttributeNames( + static const TfTokenVector& GetSchemaAttributeNames( bool includeInherited = true); /// Return a MjcPhysicsMeshCollisionAPI holding the prim adhering to this @@ -88,8 +88,8 @@ class MjcPhysicsMeshCollisionAPI : public UsdAPISchemaBase { /// \endcode /// MJCPHYSICS_API - static MjcPhysicsMeshCollisionAPI Get(const UsdStagePtr &stage, - const SdfPath &path); + static MjcPhysicsMeshCollisionAPI Get(const UsdStagePtr& stage, + const SdfPath& path); /// Returns true if this single-apply API schema can be applied to /// the given \p prim. If this schema can not be a applied to the prim, @@ -108,7 +108,7 @@ class MjcPhysicsMeshCollisionAPI : public UsdAPISchemaBase { /// \sa UsdPrim::RemoveAPI() /// MJCPHYSICS_API - static bool CanApply(const UsdPrim &prim, std::string *whyNot = nullptr); + static bool CanApply(const UsdPrim& prim, std::string* whyNot = nullptr); /// Applies this single-apply API schema to the given \p prim. /// This information is stored by adding "MjcMeshCollisionAPI" to the @@ -126,7 +126,7 @@ class MjcPhysicsMeshCollisionAPI : public UsdAPISchemaBase { /// \sa UsdPrim::RemoveAPI() /// MJCPHYSICS_API - static MjcPhysicsMeshCollisionAPI Apply(const UsdPrim &prim); + static MjcPhysicsMeshCollisionAPI Apply(const UsdPrim& prim); protected: /// Returns the kind of schema this class belongs to. @@ -139,13 +139,13 @@ class MjcPhysicsMeshCollisionAPI : public UsdAPISchemaBase { // needs to invoke _GetStaticTfType. friend class UsdSchemaRegistry; MJCPHYSICS_API - static const TfType &_GetStaticTfType(); + static const TfType& _GetStaticTfType(); static bool _IsTypedSchema(); // override SchemaBase virtuals. MJCPHYSICS_API - const TfType &_GetTfType() const override; + const TfType& _GetTfType() const override; public: // --------------------------------------------------------------------- // @@ -170,7 +170,7 @@ class MjcPhysicsMeshCollisionAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateInertiaAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateInertiaAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -195,7 +195,7 @@ class MjcPhysicsMeshCollisionAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMaxHullVertAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMaxHullVertAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: diff --git a/include/mujoco/experimental/usd/mjcPhysics/sceneAPI.h b/include/mujoco/experimental/usd/mjcPhysics/sceneAPI.h index f499536a..2ab8a58a 100644 --- a/include/mujoco/experimental/usd/mjcPhysics/sceneAPI.h +++ b/include/mujoco/experimental/usd/mjcPhysics/sceneAPI.h @@ -58,13 +58,13 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// Equivalent to MjcPhysicsSceneAPI::Get(prim.GetStage(), prim.GetPath()) /// for a \em valid \p prim, but will not immediately throw an error for /// an invalid \p prim - explicit MjcPhysicsSceneAPI(const UsdPrim &prim = UsdPrim()) + explicit MjcPhysicsSceneAPI(const UsdPrim& prim = UsdPrim()) : UsdAPISchemaBase(prim) {} /// Construct a MjcPhysicsSceneAPI on the prim held by \p schemaObj . /// Should be preferred over MjcPhysicsSceneAPI(schemaObj.GetPrim()), /// as it preserves SchemaBase state. - explicit MjcPhysicsSceneAPI(const UsdSchemaBase &schemaObj) + explicit MjcPhysicsSceneAPI(const UsdSchemaBase& schemaObj) : UsdAPISchemaBase(schemaObj) {} /// Destructor. @@ -75,7 +75,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// class and all its ancestor classes. Does not include attributes that /// may be authored by custom/extended methods of the schemas involved. MJCPHYSICS_API - static const TfTokenVector &GetSchemaAttributeNames( + static const TfTokenVector& GetSchemaAttributeNames( bool includeInherited = true); /// Return a MjcPhysicsSceneAPI holding the prim adhering to this @@ -88,7 +88,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// \endcode /// MJCPHYSICS_API - static MjcPhysicsSceneAPI Get(const UsdStagePtr &stage, const SdfPath &path); + static MjcPhysicsSceneAPI Get(const UsdStagePtr& stage, const SdfPath& path); /// Returns true if this single-apply API schema can be applied to /// the given \p prim. If this schema can not be a applied to the prim, @@ -107,7 +107,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// \sa UsdPrim::RemoveAPI() /// MJCPHYSICS_API - static bool CanApply(const UsdPrim &prim, std::string *whyNot = nullptr); + static bool CanApply(const UsdPrim& prim, std::string* whyNot = nullptr); /// Applies this single-apply API schema to the given \p prim. /// This information is stored by adding "MjcSceneAPI" to the @@ -125,7 +125,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// \sa UsdPrim::RemoveAPI() /// MJCPHYSICS_API - static MjcPhysicsSceneAPI Apply(const UsdPrim &prim); + static MjcPhysicsSceneAPI Apply(const UsdPrim& prim); protected: /// Returns the kind of schema this class belongs to. @@ -138,13 +138,13 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { // needs to invoke _GetStaticTfType. friend class UsdSchemaRegistry; MJCPHYSICS_API - static const TfType &_GetStaticTfType(); + static const TfType& _GetStaticTfType(); static bool _IsTypedSchema(); // override SchemaBase virtuals. MJCPHYSICS_API - const TfType &_GetTfType() const override; + const TfType& _GetTfType() const override; public: // --------------------------------------------------------------------- // @@ -167,7 +167,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateTimestepAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateTimestepAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -192,7 +192,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateApiRateAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateApiRateAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -217,7 +217,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateImpRatioAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateImpRatioAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -241,7 +241,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateWindAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateWindAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -265,7 +265,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMagneticAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMagneticAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -289,7 +289,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateDensityAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateDensityAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -313,7 +313,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateViscosityAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateViscosityAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -338,7 +338,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateOMarginAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateOMarginAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -363,7 +363,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateOSolRefAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateOSolRefAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -388,7 +388,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateOSolImpAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateOSolImpAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -413,7 +413,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateOFrictionAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateOFrictionAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -439,7 +439,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateIntegratorAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateIntegratorAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -464,7 +464,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateConeAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateConeAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -489,7 +489,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateJacobianAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateJacobianAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -514,7 +514,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateSolverAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateSolverAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -538,7 +538,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateIterationsAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateIterationsAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -563,7 +563,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateToleranceAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateToleranceAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -588,7 +588,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateLSIterationsAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateLSIterationsAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -613,7 +613,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateLSToleranceAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateLSToleranceAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -638,7 +638,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateNoslipIterationsAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -663,7 +663,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateNoslipToleranceAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -687,7 +687,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateCCDIterationsAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateCCDIterationsAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -712,7 +712,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateCCDToleranceAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateCCDToleranceAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -737,7 +737,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateSDFIterationsAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateSDFIterationsAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -762,7 +762,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateSDFInitPointsAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateSDFInitPointsAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -787,7 +787,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateActuatorGroupDisableAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -811,7 +811,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateConstraintFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateConstraintFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -835,7 +835,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateEqualityFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateEqualityFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -860,7 +860,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateFrictionLossFlagAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -885,7 +885,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateLimitFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateLimitFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -910,7 +910,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateContactFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateContactFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -935,7 +935,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreatePassiveFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreatePassiveFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -960,7 +960,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateGravityFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateGravityFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -985,7 +985,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateClampCtrlFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateClampCtrlFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1010,7 +1010,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateWarmStartFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateWarmStartFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1036,7 +1036,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateFilterParentFlagAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1061,7 +1061,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateActuationFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateActuationFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1086,7 +1086,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateRefSafeFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateRefSafeFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1110,7 +1110,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateSensorFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateSensorFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1135,7 +1135,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMidPhaseFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMidPhaseFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1160,7 +1160,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateNativeCCDFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateNativeCCDFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1185,7 +1185,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateEulerDampFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateEulerDampFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1210,7 +1210,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateAutoResetFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateAutoResetFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1234,7 +1234,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateOverrideFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateOverrideFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1259,7 +1259,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateEnergyFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateEnergyFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1283,7 +1283,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateFwdinvFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateFwdinvFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1309,7 +1309,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateInvDiscreteFlagAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1334,7 +1334,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateMultiCCDFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateMultiCCDFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1358,7 +1358,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateIslandFlagAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateIslandFlagAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1388,7 +1388,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateAutoLimitsAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateAutoLimitsAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1413,7 +1413,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateBoundMassAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateBoundMassAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1438,7 +1438,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateBoundInertiaAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateBoundInertiaAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1468,7 +1468,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateSetTotalMassAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateSetTotalMassAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1494,7 +1494,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateUseThreadAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateUseThreadAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1523,7 +1523,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateBalanceInertiaAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateBalanceInertiaAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1549,7 +1549,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateAngleAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateAngleAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1576,7 +1576,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateFitAABBAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateFitAABBAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1608,7 +1608,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateFuseStaticAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateFuseStaticAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1644,7 +1644,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateInertiaFromGeomAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1671,7 +1671,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateAlignFreeAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateAlignFreeAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1704,7 +1704,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateInertiaGroupRangeMinAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1738,7 +1738,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// the default for \p writeSparsely is \c false. MJCPHYSICS_API UsdAttribute CreateInertiaGroupRangeMaxAttr( - VtValue const &defaultValue = VtValue(), + VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: @@ -1762,7 +1762,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateSaveInertialAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateSaveInertialAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: diff --git a/include/mujoco/experimental/usd/mjcPhysics/siteAPI.h b/include/mujoco/experimental/usd/mjcPhysics/siteAPI.h index 22b650bf..8e92e9c2 100644 --- a/include/mujoco/experimental/usd/mjcPhysics/siteAPI.h +++ b/include/mujoco/experimental/usd/mjcPhysics/siteAPI.h @@ -53,13 +53,13 @@ class MjcPhysicsSiteAPI : public UsdAPISchemaBase { /// Equivalent to MjcPhysicsSiteAPI::Get(prim.GetStage(), prim.GetPath()) /// for a \em valid \p prim, but will not immediately throw an error for /// an invalid \p prim - explicit MjcPhysicsSiteAPI(const UsdPrim &prim = UsdPrim()) + explicit MjcPhysicsSiteAPI(const UsdPrim& prim = UsdPrim()) : UsdAPISchemaBase(prim) {} /// Construct a MjcPhysicsSiteAPI on the prim held by \p schemaObj . /// Should be preferred over MjcPhysicsSiteAPI(schemaObj.GetPrim()), /// as it preserves SchemaBase state. - explicit MjcPhysicsSiteAPI(const UsdSchemaBase &schemaObj) + explicit MjcPhysicsSiteAPI(const UsdSchemaBase& schemaObj) : UsdAPISchemaBase(schemaObj) {} /// Destructor. @@ -70,7 +70,7 @@ class MjcPhysicsSiteAPI : public UsdAPISchemaBase { /// class and all its ancestor classes. Does not include attributes that /// may be authored by custom/extended methods of the schemas involved. MJCPHYSICS_API - static const TfTokenVector &GetSchemaAttributeNames( + static const TfTokenVector& GetSchemaAttributeNames( bool includeInherited = true); /// Return a MjcPhysicsSiteAPI holding the prim adhering to this @@ -83,7 +83,7 @@ class MjcPhysicsSiteAPI : public UsdAPISchemaBase { /// \endcode /// MJCPHYSICS_API - static MjcPhysicsSiteAPI Get(const UsdStagePtr &stage, const SdfPath &path); + static MjcPhysicsSiteAPI Get(const UsdStagePtr& stage, const SdfPath& path); /// Returns true if this single-apply API schema can be applied to /// the given \p prim. If this schema can not be a applied to the prim, @@ -102,7 +102,7 @@ class MjcPhysicsSiteAPI : public UsdAPISchemaBase { /// \sa UsdPrim::RemoveAPI() /// MJCPHYSICS_API - static bool CanApply(const UsdPrim &prim, std::string *whyNot = nullptr); + static bool CanApply(const UsdPrim& prim, std::string* whyNot = nullptr); /// Applies this single-apply API schema to the given \p prim. /// This information is stored by adding "MjcSiteAPI" to the @@ -120,7 +120,7 @@ class MjcPhysicsSiteAPI : public UsdAPISchemaBase { /// \sa UsdPrim::RemoveAPI() /// MJCPHYSICS_API - static MjcPhysicsSiteAPI Apply(const UsdPrim &prim); + static MjcPhysicsSiteAPI Apply(const UsdPrim& prim); protected: /// Returns the kind of schema this class belongs to. @@ -133,13 +133,13 @@ class MjcPhysicsSiteAPI : public UsdAPISchemaBase { // needs to invoke _GetStaticTfType. friend class UsdSchemaRegistry; MJCPHYSICS_API - static const TfType &_GetStaticTfType(); + static const TfType& _GetStaticTfType(); static bool _IsTypedSchema(); // override SchemaBase virtuals. MJCPHYSICS_API - const TfType &_GetTfType() const override; + const TfType& _GetTfType() const override; public: // --------------------------------------------------------------------- // @@ -162,7 +162,7 @@ class MjcPhysicsSiteAPI : public UsdAPISchemaBase { /// sparsely (when it makes sense to do so) if \p writeSparsely is \c true - /// the default for \p writeSparsely is \c false. MJCPHYSICS_API - UsdAttribute CreateGroupAttr(VtValue const &defaultValue = VtValue(), + UsdAttribute CreateGroupAttr(VtValue const& defaultValue = VtValue(), bool writeSparsely = false) const; public: diff --git a/src/experimental/usd/mjcPhysics/actuator.cpp b/src/experimental/usd/mjcPhysics/actuator.cpp index 5e63b3cc..0db68f9a 100644 --- a/src/experimental/usd/mjcPhysics/actuator.cpp +++ b/src/experimental/usd/mjcPhysics/actuator.cpp @@ -37,8 +37,8 @@ TF_REGISTRY_FUNCTION(TfType) { MjcPhysicsActuator::~MjcPhysicsActuator() {} /* static */ -MjcPhysicsActuator MjcPhysicsActuator::Get(const UsdStagePtr &stage, - const SdfPath &path) { +MjcPhysicsActuator MjcPhysicsActuator::Get(const UsdStagePtr& stage, + const SdfPath& path) { if (!stage) { TF_CODING_ERROR("Invalid stage"); return MjcPhysicsActuator(); @@ -47,8 +47,8 @@ MjcPhysicsActuator MjcPhysicsActuator::Get(const UsdStagePtr &stage, } /* static */ -MjcPhysicsActuator MjcPhysicsActuator::Define(const UsdStagePtr &stage, - const SdfPath &path) { +MjcPhysicsActuator MjcPhysicsActuator::Define(const UsdStagePtr& stage, + const SdfPath& path) { static TfToken usdPrimTypeName("MjcActuator"); if (!stage) { TF_CODING_ERROR("Invalid stage"); @@ -63,7 +63,7 @@ UsdSchemaKind MjcPhysicsActuator::_GetSchemaKind() const { } /* static */ -const TfType &MjcPhysicsActuator::_GetStaticTfType() { +const TfType& MjcPhysicsActuator::_GetStaticTfType() { static TfType tfType = TfType::Find(); return tfType; } @@ -75,7 +75,7 @@ bool MjcPhysicsActuator::_IsTypedSchema() { } /* virtual */ -const TfType &MjcPhysicsActuator::_GetTfType() const { +const TfType& MjcPhysicsActuator::_GetTfType() const { return _GetStaticTfType(); } @@ -83,7 +83,7 @@ UsdAttribute MjcPhysicsActuator::GetGroupAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcGroup); } -UsdAttribute MjcPhysicsActuator::CreateGroupAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsActuator::CreateGroupAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcGroup, SdfValueTypeNames->Int, @@ -95,7 +95,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcCtrlLimitedAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcCtrlLimitedAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCtrlLimited, SdfValueTypeNames->Token, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -106,7 +106,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcForceLimitedAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcForceLimitedAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcForceLimited, SdfValueTypeNames->Token, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -117,7 +117,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcActLimitedAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcActLimitedAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcActLimited, SdfValueTypeNames->Token, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -128,7 +128,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcCtrlRangeMinAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcCtrlRangeMinAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCtrlRangeMin, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -139,7 +139,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcCtrlRangeMaxAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcCtrlRangeMaxAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCtrlRangeMax, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -150,7 +150,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcForceRangeMinAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcForceRangeMinAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcForceRangeMin, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -161,7 +161,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcForceRangeMaxAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcForceRangeMaxAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcForceRangeMax, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -172,7 +172,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcActRangeMinAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcActRangeMinAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcActRangeMin, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -183,7 +183,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcActRangeMaxAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcActRangeMaxAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcActRangeMax, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -194,7 +194,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcLengthRangeMinAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcLengthRangeMinAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcLengthRangeMin, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -205,7 +205,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcLengthRangeMaxAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcLengthRangeMaxAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcLengthRangeMax, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -215,7 +215,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcGearAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcGear); } -UsdAttribute MjcPhysicsActuator::CreateMjcGearAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsActuator::CreateMjcGearAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcGear, SdfValueTypeNames->DoubleArray, @@ -227,7 +227,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcCrankLengthAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcCrankLengthAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCrankLength, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -238,7 +238,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcJointInParentAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcJointInParentAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcJointInParent, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -249,7 +249,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcActDimAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcActDimAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcActDim, SdfValueTypeNames->Int, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -260,7 +260,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcDynTypeAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcDynTypeAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcDynType, SdfValueTypeNames->Token, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -271,7 +271,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcGainTypeAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcGainTypeAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcGainType, SdfValueTypeNames->Token, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -282,7 +282,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcBiasTypeAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcBiasTypeAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcBiasType, SdfValueTypeNames->Token, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -293,7 +293,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcDynPrmAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcDynPrmAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcDynPrm, SdfValueTypeNames->DoubleArray, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -304,7 +304,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcGainPrmAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcGainPrmAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcGainPrm, SdfValueTypeNames->DoubleArray, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -315,7 +315,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcBiasPrmAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcBiasPrmAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcBiasPrm, SdfValueTypeNames->DoubleArray, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -326,7 +326,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcActEarlyAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcActEarlyAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcActEarly, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -337,7 +337,7 @@ UsdAttribute MjcPhysicsActuator::GetMjcInheritRangeAttr() const { } UsdAttribute MjcPhysicsActuator::CreateMjcInheritRangeAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcInheritRange, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -372,7 +372,7 @@ UsdRelationship MjcPhysicsActuator::CreateMjcSliderSiteRel() const { namespace { static inline TfTokenVector _ConcatenateAttributeNames( - const TfTokenVector &left, const TfTokenVector &right) { + const TfTokenVector& left, const TfTokenVector& right) { TfTokenVector result; result.reserve(left.size() + right.size()); result.insert(result.end(), left.begin(), left.end()); @@ -382,7 +382,7 @@ static inline TfTokenVector _ConcatenateAttributeNames( } // namespace /*static*/ -const TfTokenVector &MjcPhysicsActuator::GetSchemaAttributeNames( +const TfTokenVector& MjcPhysicsActuator::GetSchemaAttributeNames( bool includeInherited) { static TfTokenVector localNames = { MjcPhysicsTokens->mjcGroup, MjcPhysicsTokens->mjcCtrlLimited, diff --git a/src/experimental/usd/mjcPhysics/collisionAPI.cpp b/src/experimental/usd/mjcPhysics/collisionAPI.cpp index 077eb034..a3e1ab32 100644 --- a/src/experimental/usd/mjcPhysics/collisionAPI.cpp +++ b/src/experimental/usd/mjcPhysics/collisionAPI.cpp @@ -30,8 +30,8 @@ TF_REGISTRY_FUNCTION(TfType) { MjcPhysicsCollisionAPI::~MjcPhysicsCollisionAPI() {} /* static */ -MjcPhysicsCollisionAPI MjcPhysicsCollisionAPI::Get(const UsdStagePtr &stage, - const SdfPath &path) { +MjcPhysicsCollisionAPI MjcPhysicsCollisionAPI::Get(const UsdStagePtr& stage, + const SdfPath& path) { if (!stage) { TF_CODING_ERROR("Invalid stage"); return MjcPhysicsCollisionAPI(); @@ -45,13 +45,13 @@ UsdSchemaKind MjcPhysicsCollisionAPI::_GetSchemaKind() const { } /* static */ -bool MjcPhysicsCollisionAPI::CanApply(const UsdPrim &prim, - std::string *whyNot) { +bool MjcPhysicsCollisionAPI::CanApply(const UsdPrim& prim, + std::string* whyNot) { return prim.CanApplyAPI(whyNot); } /* static */ -MjcPhysicsCollisionAPI MjcPhysicsCollisionAPI::Apply(const UsdPrim &prim) { +MjcPhysicsCollisionAPI MjcPhysicsCollisionAPI::Apply(const UsdPrim& prim) { if (prim.ApplyAPI()) { return MjcPhysicsCollisionAPI(prim); } @@ -59,7 +59,7 @@ MjcPhysicsCollisionAPI MjcPhysicsCollisionAPI::Apply(const UsdPrim &prim) { } /* static */ -const TfType &MjcPhysicsCollisionAPI::_GetStaticTfType() { +const TfType& MjcPhysicsCollisionAPI::_GetStaticTfType() { static TfType tfType = TfType::Find(); return tfType; } @@ -71,7 +71,7 @@ bool MjcPhysicsCollisionAPI::_IsTypedSchema() { } /* virtual */ -const TfType &MjcPhysicsCollisionAPI::_GetTfType() const { +const TfType& MjcPhysicsCollisionAPI::_GetTfType() const { return _GetStaticTfType(); } @@ -80,7 +80,7 @@ UsdAttribute MjcPhysicsCollisionAPI::GetGroupAttr() const { } UsdAttribute MjcPhysicsCollisionAPI::CreateGroupAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcGroup, SdfValueTypeNames->Int, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -91,7 +91,7 @@ UsdAttribute MjcPhysicsCollisionAPI::GetShellInertiaAttr() const { } UsdAttribute MjcPhysicsCollisionAPI::CreateShellInertiaAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcShellinertia, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -102,7 +102,7 @@ UsdAttribute MjcPhysicsCollisionAPI::GetPriorityAttr() const { } UsdAttribute MjcPhysicsCollisionAPI::CreatePriorityAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcPriority, SdfValueTypeNames->Int, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -113,7 +113,7 @@ UsdAttribute MjcPhysicsCollisionAPI::GetConDimAttr() const { } UsdAttribute MjcPhysicsCollisionAPI::CreateConDimAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCondim, SdfValueTypeNames->Int, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -124,7 +124,7 @@ UsdAttribute MjcPhysicsCollisionAPI::GetSolMixAttr() const { } UsdAttribute MjcPhysicsCollisionAPI::CreateSolMixAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcSolmix, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -135,7 +135,7 @@ UsdAttribute MjcPhysicsCollisionAPI::GetSolRefAttr() const { } UsdAttribute MjcPhysicsCollisionAPI::CreateSolRefAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcSolref, SdfValueTypeNames->DoubleArray, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -146,7 +146,7 @@ UsdAttribute MjcPhysicsCollisionAPI::GetSolImpAttr() const { } UsdAttribute MjcPhysicsCollisionAPI::CreateSolImpAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcSolimp, SdfValueTypeNames->DoubleArray, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -157,7 +157,7 @@ UsdAttribute MjcPhysicsCollisionAPI::GetMarginAttr() const { } UsdAttribute MjcPhysicsCollisionAPI::CreateMarginAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcMargin, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -167,7 +167,7 @@ UsdAttribute MjcPhysicsCollisionAPI::GetGapAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcGap); } -UsdAttribute MjcPhysicsCollisionAPI::CreateGapAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsCollisionAPI::CreateGapAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcGap, SdfValueTypeNames->Double, @@ -176,7 +176,7 @@ UsdAttribute MjcPhysicsCollisionAPI::CreateGapAttr(VtValue const &defaultValue, namespace { static inline TfTokenVector _ConcatenateAttributeNames( - const TfTokenVector &left, const TfTokenVector &right) { + const TfTokenVector& left, const TfTokenVector& right) { TfTokenVector result; result.reserve(left.size() + right.size()); result.insert(result.end(), left.begin(), left.end()); @@ -186,7 +186,7 @@ static inline TfTokenVector _ConcatenateAttributeNames( } // namespace /*static*/ -const TfTokenVector &MjcPhysicsCollisionAPI::GetSchemaAttributeNames( +const TfTokenVector& MjcPhysicsCollisionAPI::GetSchemaAttributeNames( bool includeInherited) { static TfTokenVector localNames = { MjcPhysicsTokens->mjcGroup, MjcPhysicsTokens->mjcShellinertia, diff --git a/src/experimental/usd/mjcPhysics/imageableAPI.cpp b/src/experimental/usd/mjcPhysics/imageableAPI.cpp index 4a3d36f3..c36a3c5a 100644 --- a/src/experimental/usd/mjcPhysics/imageableAPI.cpp +++ b/src/experimental/usd/mjcPhysics/imageableAPI.cpp @@ -30,8 +30,8 @@ TF_REGISTRY_FUNCTION(TfType) { MjcPhysicsImageableAPI::~MjcPhysicsImageableAPI() {} /* static */ -MjcPhysicsImageableAPI MjcPhysicsImageableAPI::Get(const UsdStagePtr &stage, - const SdfPath &path) { +MjcPhysicsImageableAPI MjcPhysicsImageableAPI::Get(const UsdStagePtr& stage, + const SdfPath& path) { if (!stage) { TF_CODING_ERROR("Invalid stage"); return MjcPhysicsImageableAPI(); @@ -45,13 +45,13 @@ UsdSchemaKind MjcPhysicsImageableAPI::_GetSchemaKind() const { } /* static */ -bool MjcPhysicsImageableAPI::CanApply(const UsdPrim &prim, - std::string *whyNot) { +bool MjcPhysicsImageableAPI::CanApply(const UsdPrim& prim, + std::string* whyNot) { return prim.CanApplyAPI(whyNot); } /* static */ -MjcPhysicsImageableAPI MjcPhysicsImageableAPI::Apply(const UsdPrim &prim) { +MjcPhysicsImageableAPI MjcPhysicsImageableAPI::Apply(const UsdPrim& prim) { if (prim.ApplyAPI()) { return MjcPhysicsImageableAPI(prim); } @@ -59,7 +59,7 @@ MjcPhysicsImageableAPI MjcPhysicsImageableAPI::Apply(const UsdPrim &prim) { } /* static */ -const TfType &MjcPhysicsImageableAPI::_GetStaticTfType() { +const TfType& MjcPhysicsImageableAPI::_GetStaticTfType() { static TfType tfType = TfType::Find(); return tfType; } @@ -71,7 +71,7 @@ bool MjcPhysicsImageableAPI::_IsTypedSchema() { } /* virtual */ -const TfType &MjcPhysicsImageableAPI::_GetTfType() const { +const TfType& MjcPhysicsImageableAPI::_GetTfType() const { return _GetStaticTfType(); } @@ -80,7 +80,7 @@ UsdAttribute MjcPhysicsImageableAPI::GetGroupAttr() const { } UsdAttribute MjcPhysicsImageableAPI::CreateGroupAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcGroup, SdfValueTypeNames->Int, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -88,7 +88,7 @@ UsdAttribute MjcPhysicsImageableAPI::CreateGroupAttr( namespace { static inline TfTokenVector _ConcatenateAttributeNames( - const TfTokenVector &left, const TfTokenVector &right) { + const TfTokenVector& left, const TfTokenVector& right) { TfTokenVector result; result.reserve(left.size() + right.size()); result.insert(result.end(), left.begin(), left.end()); @@ -98,7 +98,7 @@ static inline TfTokenVector _ConcatenateAttributeNames( } // namespace /*static*/ -const TfTokenVector &MjcPhysicsImageableAPI::GetSchemaAttributeNames( +const TfTokenVector& MjcPhysicsImageableAPI::GetSchemaAttributeNames( bool includeInherited) { static TfTokenVector localNames = { MjcPhysicsTokens->mjcGroup, diff --git a/src/experimental/usd/mjcPhysics/jointAPI.cpp b/src/experimental/usd/mjcPhysics/jointAPI.cpp index fac959a1..f918008f 100644 --- a/src/experimental/usd/mjcPhysics/jointAPI.cpp +++ b/src/experimental/usd/mjcPhysics/jointAPI.cpp @@ -30,8 +30,8 @@ TF_REGISTRY_FUNCTION(TfType) { MjcPhysicsJointAPI::~MjcPhysicsJointAPI() {} /* static */ -MjcPhysicsJointAPI MjcPhysicsJointAPI::Get(const UsdStagePtr &stage, - const SdfPath &path) { +MjcPhysicsJointAPI MjcPhysicsJointAPI::Get(const UsdStagePtr& stage, + const SdfPath& path) { if (!stage) { TF_CODING_ERROR("Invalid stage"); return MjcPhysicsJointAPI(); @@ -45,12 +45,12 @@ UsdSchemaKind MjcPhysicsJointAPI::_GetSchemaKind() const { } /* static */ -bool MjcPhysicsJointAPI::CanApply(const UsdPrim &prim, std::string *whyNot) { +bool MjcPhysicsJointAPI::CanApply(const UsdPrim& prim, std::string* whyNot) { return prim.CanApplyAPI(whyNot); } /* static */ -MjcPhysicsJointAPI MjcPhysicsJointAPI::Apply(const UsdPrim &prim) { +MjcPhysicsJointAPI MjcPhysicsJointAPI::Apply(const UsdPrim& prim) { if (prim.ApplyAPI()) { return MjcPhysicsJointAPI(prim); } @@ -58,7 +58,7 @@ MjcPhysicsJointAPI MjcPhysicsJointAPI::Apply(const UsdPrim &prim) { } /* static */ -const TfType &MjcPhysicsJointAPI::_GetStaticTfType() { +const TfType& MjcPhysicsJointAPI::_GetStaticTfType() { static TfType tfType = TfType::Find(); return tfType; } @@ -70,7 +70,7 @@ bool MjcPhysicsJointAPI::_IsTypedSchema() { } /* virtual */ -const TfType &MjcPhysicsJointAPI::_GetTfType() const { +const TfType& MjcPhysicsJointAPI::_GetTfType() const { return _GetStaticTfType(); } @@ -78,7 +78,7 @@ UsdAttribute MjcPhysicsJointAPI::GetGroupAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcGroup); } -UsdAttribute MjcPhysicsJointAPI::CreateGroupAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsJointAPI::CreateGroupAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcGroup, SdfValueTypeNames->Int, @@ -90,7 +90,7 @@ UsdAttribute MjcPhysicsJointAPI::GetMjcSpringdamperAttr() const { } UsdAttribute MjcPhysicsJointAPI::CreateMjcSpringdamperAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcSpringdamper, SdfValueTypeNames->DoubleArray, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -101,7 +101,7 @@ UsdAttribute MjcPhysicsJointAPI::GetMjcSolreflimitAttr() const { } UsdAttribute MjcPhysicsJointAPI::CreateMjcSolreflimitAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcSolreflimit, SdfValueTypeNames->DoubleArray, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -112,7 +112,7 @@ UsdAttribute MjcPhysicsJointAPI::GetMjcSolimplimitAttr() const { } UsdAttribute MjcPhysicsJointAPI::CreateMjcSolimplimitAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcSolimplimit, SdfValueTypeNames->DoubleArray, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -123,7 +123,7 @@ UsdAttribute MjcPhysicsJointAPI::GetMjcSolreffrictionAttr() const { } UsdAttribute MjcPhysicsJointAPI::CreateMjcSolreffrictionAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcSolreffriction, SdfValueTypeNames->DoubleArray, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -134,7 +134,7 @@ UsdAttribute MjcPhysicsJointAPI::GetMjcSolimpfrictionAttr() const { } UsdAttribute MjcPhysicsJointAPI::CreateMjcSolimpfrictionAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcSolimpfriction, SdfValueTypeNames->DoubleArray, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -145,7 +145,7 @@ UsdAttribute MjcPhysicsJointAPI::GetMjcStiffnessAttr() const { } UsdAttribute MjcPhysicsJointAPI::CreateMjcStiffnessAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcStiffness, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -156,7 +156,7 @@ UsdAttribute MjcPhysicsJointAPI::GetMjcActuatorfrcrangeMinAttr() const { } UsdAttribute MjcPhysicsJointAPI::CreateMjcActuatorfrcrangeMinAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcActuatorfrcrangeMin, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -167,7 +167,7 @@ UsdAttribute MjcPhysicsJointAPI::GetMjcActuatorfrcrangeMaxAttr() const { } UsdAttribute MjcPhysicsJointAPI::CreateMjcActuatorfrcrangeMaxAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcActuatorfrcrangeMax, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -178,7 +178,7 @@ UsdAttribute MjcPhysicsJointAPI::GetMjcActuatorfrclimitedAttr() const { } UsdAttribute MjcPhysicsJointAPI::CreateMjcActuatorfrclimitedAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcActuatorfrclimited, SdfValueTypeNames->Token, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -189,7 +189,7 @@ UsdAttribute MjcPhysicsJointAPI::GetMjcActuatorgravcompAttr() const { } UsdAttribute MjcPhysicsJointAPI::CreateMjcActuatorgravcompAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcActuatorgravcomp, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -200,7 +200,7 @@ UsdAttribute MjcPhysicsJointAPI::GetMjcMarginAttr() const { } UsdAttribute MjcPhysicsJointAPI::CreateMjcMarginAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcMargin, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -210,7 +210,7 @@ UsdAttribute MjcPhysicsJointAPI::GetMjcRefAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcRef); } -UsdAttribute MjcPhysicsJointAPI::CreateMjcRefAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsJointAPI::CreateMjcRefAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcRef, SdfValueTypeNames->Double, @@ -222,7 +222,7 @@ UsdAttribute MjcPhysicsJointAPI::GetMjcSpringrefAttr() const { } UsdAttribute MjcPhysicsJointAPI::CreateMjcSpringrefAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcSpringref, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -233,7 +233,7 @@ UsdAttribute MjcPhysicsJointAPI::GetMjcArmatureAttr() const { } UsdAttribute MjcPhysicsJointAPI::CreateMjcArmatureAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcArmature, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -244,7 +244,7 @@ UsdAttribute MjcPhysicsJointAPI::GetMjcDampingAttr() const { } UsdAttribute MjcPhysicsJointAPI::CreateMjcDampingAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcDamping, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -255,7 +255,7 @@ UsdAttribute MjcPhysicsJointAPI::GetMjcFrictionlossAttr() const { } UsdAttribute MjcPhysicsJointAPI::CreateMjcFrictionlossAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFrictionloss, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -263,7 +263,7 @@ UsdAttribute MjcPhysicsJointAPI::CreateMjcFrictionlossAttr( namespace { static inline TfTokenVector _ConcatenateAttributeNames( - const TfTokenVector &left, const TfTokenVector &right) { + const TfTokenVector& left, const TfTokenVector& right) { TfTokenVector result; result.reserve(left.size() + right.size()); result.insert(result.end(), left.begin(), left.end()); @@ -273,7 +273,7 @@ static inline TfTokenVector _ConcatenateAttributeNames( } // namespace /*static*/ -const TfTokenVector &MjcPhysicsJointAPI::GetSchemaAttributeNames( +const TfTokenVector& MjcPhysicsJointAPI::GetSchemaAttributeNames( bool includeInherited) { static TfTokenVector localNames = { MjcPhysicsTokens->mjcGroup, diff --git a/src/experimental/usd/mjcPhysics/keyframe.cpp b/src/experimental/usd/mjcPhysics/keyframe.cpp index 47b0f18c..203d3c0d 100644 --- a/src/experimental/usd/mjcPhysics/keyframe.cpp +++ b/src/experimental/usd/mjcPhysics/keyframe.cpp @@ -37,8 +37,8 @@ TF_REGISTRY_FUNCTION(TfType) { MjcPhysicsKeyframe::~MjcPhysicsKeyframe() {} /* static */ -MjcPhysicsKeyframe MjcPhysicsKeyframe::Get(const UsdStagePtr &stage, - const SdfPath &path) { +MjcPhysicsKeyframe MjcPhysicsKeyframe::Get(const UsdStagePtr& stage, + const SdfPath& path) { if (!stage) { TF_CODING_ERROR("Invalid stage"); return MjcPhysicsKeyframe(); @@ -47,8 +47,8 @@ MjcPhysicsKeyframe MjcPhysicsKeyframe::Get(const UsdStagePtr &stage, } /* static */ -MjcPhysicsKeyframe MjcPhysicsKeyframe::Define(const UsdStagePtr &stage, - const SdfPath &path) { +MjcPhysicsKeyframe MjcPhysicsKeyframe::Define(const UsdStagePtr& stage, + const SdfPath& path) { static TfToken usdPrimTypeName("MjcKeyframe"); if (!stage) { TF_CODING_ERROR("Invalid stage"); @@ -63,7 +63,7 @@ UsdSchemaKind MjcPhysicsKeyframe::_GetSchemaKind() const { } /* static */ -const TfType &MjcPhysicsKeyframe::_GetStaticTfType() { +const TfType& MjcPhysicsKeyframe::_GetStaticTfType() { static TfType tfType = TfType::Find(); return tfType; } @@ -75,7 +75,7 @@ bool MjcPhysicsKeyframe::_IsTypedSchema() { } /* virtual */ -const TfType &MjcPhysicsKeyframe::_GetTfType() const { +const TfType& MjcPhysicsKeyframe::_GetTfType() const { return _GetStaticTfType(); } @@ -83,7 +83,7 @@ UsdAttribute MjcPhysicsKeyframe::GetMjcQposAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcQpos); } -UsdAttribute MjcPhysicsKeyframe::CreateMjcQposAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsKeyframe::CreateMjcQposAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcQpos, SdfValueTypeNames->DoubleArray, @@ -94,7 +94,7 @@ UsdAttribute MjcPhysicsKeyframe::GetMjcQvelAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcQvel); } -UsdAttribute MjcPhysicsKeyframe::CreateMjcQvelAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsKeyframe::CreateMjcQvelAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcQvel, SdfValueTypeNames->DoubleArray, @@ -105,7 +105,7 @@ UsdAttribute MjcPhysicsKeyframe::GetMjcActAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcAct); } -UsdAttribute MjcPhysicsKeyframe::CreateMjcActAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsKeyframe::CreateMjcActAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcAct, SdfValueTypeNames->DoubleArray, @@ -116,7 +116,7 @@ UsdAttribute MjcPhysicsKeyframe::GetMjcCtrlAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcCtrl); } -UsdAttribute MjcPhysicsKeyframe::CreateMjcCtrlAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsKeyframe::CreateMjcCtrlAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCtrl, SdfValueTypeNames->DoubleArray, @@ -127,7 +127,7 @@ UsdAttribute MjcPhysicsKeyframe::GetMjcMposAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcMpos); } -UsdAttribute MjcPhysicsKeyframe::CreateMjcMposAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsKeyframe::CreateMjcMposAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcMpos, SdfValueTypeNames->DoubleArray, @@ -138,7 +138,7 @@ UsdAttribute MjcPhysicsKeyframe::GetMjcMquatAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcMquat); } -UsdAttribute MjcPhysicsKeyframe::CreateMjcMquatAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsKeyframe::CreateMjcMquatAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcMquat, SdfValueTypeNames->DoubleArray, @@ -147,7 +147,7 @@ UsdAttribute MjcPhysicsKeyframe::CreateMjcMquatAttr(VtValue const &defaultValue, namespace { static inline TfTokenVector _ConcatenateAttributeNames( - const TfTokenVector &left, const TfTokenVector &right) { + const TfTokenVector& left, const TfTokenVector& right) { TfTokenVector result; result.reserve(left.size() + right.size()); result.insert(result.end(), left.begin(), left.end()); @@ -157,7 +157,7 @@ static inline TfTokenVector _ConcatenateAttributeNames( } // namespace /*static*/ -const TfTokenVector &MjcPhysicsKeyframe::GetSchemaAttributeNames( +const TfTokenVector& MjcPhysicsKeyframe::GetSchemaAttributeNames( bool includeInherited) { static TfTokenVector localNames = { MjcPhysicsTokens->mjcQpos, MjcPhysicsTokens->mjcQvel, diff --git a/src/experimental/usd/mjcPhysics/materialAPI.cpp b/src/experimental/usd/mjcPhysics/materialAPI.cpp index 20dc2560..705af0d8 100644 --- a/src/experimental/usd/mjcPhysics/materialAPI.cpp +++ b/src/experimental/usd/mjcPhysics/materialAPI.cpp @@ -30,8 +30,8 @@ TF_REGISTRY_FUNCTION(TfType) { MjcPhysicsMaterialAPI::~MjcPhysicsMaterialAPI() {} /* static */ -MjcPhysicsMaterialAPI MjcPhysicsMaterialAPI::Get(const UsdStagePtr &stage, - const SdfPath &path) { +MjcPhysicsMaterialAPI MjcPhysicsMaterialAPI::Get(const UsdStagePtr& stage, + const SdfPath& path) { if (!stage) { TF_CODING_ERROR("Invalid stage"); return MjcPhysicsMaterialAPI(); @@ -45,12 +45,12 @@ UsdSchemaKind MjcPhysicsMaterialAPI::_GetSchemaKind() const { } /* static */ -bool MjcPhysicsMaterialAPI::CanApply(const UsdPrim &prim, std::string *whyNot) { +bool MjcPhysicsMaterialAPI::CanApply(const UsdPrim& prim, std::string* whyNot) { return prim.CanApplyAPI(whyNot); } /* static */ -MjcPhysicsMaterialAPI MjcPhysicsMaterialAPI::Apply(const UsdPrim &prim) { +MjcPhysicsMaterialAPI MjcPhysicsMaterialAPI::Apply(const UsdPrim& prim) { if (prim.ApplyAPI()) { return MjcPhysicsMaterialAPI(prim); } @@ -58,7 +58,7 @@ MjcPhysicsMaterialAPI MjcPhysicsMaterialAPI::Apply(const UsdPrim &prim) { } /* static */ -const TfType &MjcPhysicsMaterialAPI::_GetStaticTfType() { +const TfType& MjcPhysicsMaterialAPI::_GetStaticTfType() { static TfType tfType = TfType::Find(); return tfType; } @@ -70,7 +70,7 @@ bool MjcPhysicsMaterialAPI::_IsTypedSchema() { } /* virtual */ -const TfType &MjcPhysicsMaterialAPI::_GetTfType() const { +const TfType& MjcPhysicsMaterialAPI::_GetTfType() const { return _GetStaticTfType(); } @@ -79,7 +79,7 @@ UsdAttribute MjcPhysicsMaterialAPI::GetTorsionalFrictionAttr() const { } UsdAttribute MjcPhysicsMaterialAPI::CreateTorsionalFrictionAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcTorsionalfriction, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -90,7 +90,7 @@ UsdAttribute MjcPhysicsMaterialAPI::GetRollingFrictionAttr() const { } UsdAttribute MjcPhysicsMaterialAPI::CreateRollingFrictionAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcRollingfriction, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -98,7 +98,7 @@ UsdAttribute MjcPhysicsMaterialAPI::CreateRollingFrictionAttr( namespace { static inline TfTokenVector _ConcatenateAttributeNames( - const TfTokenVector &left, const TfTokenVector &right) { + const TfTokenVector& left, const TfTokenVector& right) { TfTokenVector result; result.reserve(left.size() + right.size()); result.insert(result.end(), left.begin(), left.end()); @@ -108,7 +108,7 @@ static inline TfTokenVector _ConcatenateAttributeNames( } // namespace /*static*/ -const TfTokenVector &MjcPhysicsMaterialAPI::GetSchemaAttributeNames( +const TfTokenVector& MjcPhysicsMaterialAPI::GetSchemaAttributeNames( bool includeInherited) { static TfTokenVector localNames = { MjcPhysicsTokens->mjcTorsionalfriction, diff --git a/src/experimental/usd/mjcPhysics/meshCollisionAPI.cpp b/src/experimental/usd/mjcPhysics/meshCollisionAPI.cpp index e8db13f4..05b53877 100644 --- a/src/experimental/usd/mjcPhysics/meshCollisionAPI.cpp +++ b/src/experimental/usd/mjcPhysics/meshCollisionAPI.cpp @@ -32,7 +32,7 @@ MjcPhysicsMeshCollisionAPI::~MjcPhysicsMeshCollisionAPI() {} /* static */ MjcPhysicsMeshCollisionAPI MjcPhysicsMeshCollisionAPI::Get( - const UsdStagePtr &stage, const SdfPath &path) { + const UsdStagePtr& stage, const SdfPath& path) { if (!stage) { TF_CODING_ERROR("Invalid stage"); return MjcPhysicsMeshCollisionAPI(); @@ -46,14 +46,14 @@ UsdSchemaKind MjcPhysicsMeshCollisionAPI::_GetSchemaKind() const { } /* static */ -bool MjcPhysicsMeshCollisionAPI::CanApply(const UsdPrim &prim, - std::string *whyNot) { +bool MjcPhysicsMeshCollisionAPI::CanApply(const UsdPrim& prim, + std::string* whyNot) { return prim.CanApplyAPI(whyNot); } /* static */ MjcPhysicsMeshCollisionAPI MjcPhysicsMeshCollisionAPI::Apply( - const UsdPrim &prim) { + const UsdPrim& prim) { if (prim.ApplyAPI()) { return MjcPhysicsMeshCollisionAPI(prim); } @@ -61,7 +61,7 @@ MjcPhysicsMeshCollisionAPI MjcPhysicsMeshCollisionAPI::Apply( } /* static */ -const TfType &MjcPhysicsMeshCollisionAPI::_GetStaticTfType() { +const TfType& MjcPhysicsMeshCollisionAPI::_GetStaticTfType() { static TfType tfType = TfType::Find(); return tfType; } @@ -73,7 +73,7 @@ bool MjcPhysicsMeshCollisionAPI::_IsTypedSchema() { } /* virtual */ -const TfType &MjcPhysicsMeshCollisionAPI::_GetTfType() const { +const TfType& MjcPhysicsMeshCollisionAPI::_GetTfType() const { return _GetStaticTfType(); } @@ -82,7 +82,7 @@ UsdAttribute MjcPhysicsMeshCollisionAPI::GetInertiaAttr() const { } UsdAttribute MjcPhysicsMeshCollisionAPI::CreateInertiaAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcInertia, SdfValueTypeNames->Token, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -93,7 +93,7 @@ UsdAttribute MjcPhysicsMeshCollisionAPI::GetMaxHullVertAttr() const { } UsdAttribute MjcPhysicsMeshCollisionAPI::CreateMaxHullVertAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcMaxhullvert, SdfValueTypeNames->Int, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -101,7 +101,7 @@ UsdAttribute MjcPhysicsMeshCollisionAPI::CreateMaxHullVertAttr( namespace { static inline TfTokenVector _ConcatenateAttributeNames( - const TfTokenVector &left, const TfTokenVector &right) { + const TfTokenVector& left, const TfTokenVector& right) { TfTokenVector result; result.reserve(left.size() + right.size()); result.insert(result.end(), left.begin(), left.end()); @@ -111,7 +111,7 @@ static inline TfTokenVector _ConcatenateAttributeNames( } // namespace /*static*/ -const TfTokenVector &MjcPhysicsMeshCollisionAPI::GetSchemaAttributeNames( +const TfTokenVector& MjcPhysicsMeshCollisionAPI::GetSchemaAttributeNames( bool includeInherited) { static TfTokenVector localNames = { MjcPhysicsTokens->mjcInertia, diff --git a/src/experimental/usd/mjcPhysics/sceneAPI.cpp b/src/experimental/usd/mjcPhysics/sceneAPI.cpp index 700c1c2f..c4dbf29b 100644 --- a/src/experimental/usd/mjcPhysics/sceneAPI.cpp +++ b/src/experimental/usd/mjcPhysics/sceneAPI.cpp @@ -30,8 +30,8 @@ TF_REGISTRY_FUNCTION(TfType) { MjcPhysicsSceneAPI::~MjcPhysicsSceneAPI() {} /* static */ -MjcPhysicsSceneAPI MjcPhysicsSceneAPI::Get(const UsdStagePtr &stage, - const SdfPath &path) { +MjcPhysicsSceneAPI MjcPhysicsSceneAPI::Get(const UsdStagePtr& stage, + const SdfPath& path) { if (!stage) { TF_CODING_ERROR("Invalid stage"); return MjcPhysicsSceneAPI(); @@ -45,12 +45,12 @@ UsdSchemaKind MjcPhysicsSceneAPI::_GetSchemaKind() const { } /* static */ -bool MjcPhysicsSceneAPI::CanApply(const UsdPrim &prim, std::string *whyNot) { +bool MjcPhysicsSceneAPI::CanApply(const UsdPrim& prim, std::string* whyNot) { return prim.CanApplyAPI(whyNot); } /* static */ -MjcPhysicsSceneAPI MjcPhysicsSceneAPI::Apply(const UsdPrim &prim) { +MjcPhysicsSceneAPI MjcPhysicsSceneAPI::Apply(const UsdPrim& prim) { if (prim.ApplyAPI()) { return MjcPhysicsSceneAPI(prim); } @@ -58,7 +58,7 @@ MjcPhysicsSceneAPI MjcPhysicsSceneAPI::Apply(const UsdPrim &prim) { } /* static */ -const TfType &MjcPhysicsSceneAPI::_GetStaticTfType() { +const TfType& MjcPhysicsSceneAPI::_GetStaticTfType() { static TfType tfType = TfType::Find(); return tfType; } @@ -70,7 +70,7 @@ bool MjcPhysicsSceneAPI::_IsTypedSchema() { } /* virtual */ -const TfType &MjcPhysicsSceneAPI::_GetTfType() const { +const TfType& MjcPhysicsSceneAPI::_GetTfType() const { return _GetStaticTfType(); } @@ -78,7 +78,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetTimestepAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcOptionTimestep); } -UsdAttribute MjcPhysicsSceneAPI::CreateTimestepAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsSceneAPI::CreateTimestepAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionTimestep, SdfValueTypeNames->Double, @@ -89,7 +89,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetApiRateAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcOptionApirate); } -UsdAttribute MjcPhysicsSceneAPI::CreateApiRateAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsSceneAPI::CreateApiRateAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionApirate, SdfValueTypeNames->Double, @@ -100,7 +100,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetImpRatioAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcOptionImpratio); } -UsdAttribute MjcPhysicsSceneAPI::CreateImpRatioAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsSceneAPI::CreateImpRatioAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionImpratio, SdfValueTypeNames->Double, @@ -111,7 +111,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetWindAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcOptionWind); } -UsdAttribute MjcPhysicsSceneAPI::CreateWindAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsSceneAPI::CreateWindAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionWind, SdfValueTypeNames->Double3, @@ -122,7 +122,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetMagneticAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcOptionMagnetic); } -UsdAttribute MjcPhysicsSceneAPI::CreateMagneticAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsSceneAPI::CreateMagneticAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionMagnetic, SdfValueTypeNames->Double3, @@ -133,7 +133,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetDensityAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcOptionDensity); } -UsdAttribute MjcPhysicsSceneAPI::CreateDensityAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsSceneAPI::CreateDensityAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionDensity, SdfValueTypeNames->Double, @@ -145,7 +145,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetViscosityAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateViscosityAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionViscosity, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -155,7 +155,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetOMarginAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcOptionO_margin); } -UsdAttribute MjcPhysicsSceneAPI::CreateOMarginAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsSceneAPI::CreateOMarginAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionO_margin, SdfValueTypeNames->Double, @@ -166,7 +166,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetOSolRefAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcOptionO_solref); } -UsdAttribute MjcPhysicsSceneAPI::CreateOSolRefAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsSceneAPI::CreateOSolRefAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionO_solref, SdfValueTypeNames->DoubleArray, @@ -177,7 +177,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetOSolImpAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcOptionO_solimp); } -UsdAttribute MjcPhysicsSceneAPI::CreateOSolImpAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsSceneAPI::CreateOSolImpAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionO_solimp, SdfValueTypeNames->DoubleArray, @@ -189,7 +189,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetOFrictionAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateOFrictionAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionO_friction, SdfValueTypeNames->DoubleArray, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -200,7 +200,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetIntegratorAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateIntegratorAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionIntegrator, SdfValueTypeNames->Token, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -210,7 +210,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetConeAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcOptionCone); } -UsdAttribute MjcPhysicsSceneAPI::CreateConeAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsSceneAPI::CreateConeAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionCone, SdfValueTypeNames->Token, @@ -221,7 +221,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetJacobianAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcOptionJacobian); } -UsdAttribute MjcPhysicsSceneAPI::CreateJacobianAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsSceneAPI::CreateJacobianAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionJacobian, SdfValueTypeNames->Token, @@ -232,7 +232,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetSolverAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcOptionSolver); } -UsdAttribute MjcPhysicsSceneAPI::CreateSolverAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsSceneAPI::CreateSolverAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionSolver, SdfValueTypeNames->Token, @@ -244,7 +244,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetIterationsAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateIterationsAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionIterations, SdfValueTypeNames->Int, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -255,7 +255,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetToleranceAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateToleranceAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionTolerance, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -266,7 +266,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetLSIterationsAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateLSIterationsAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionLs_iterations, SdfValueTypeNames->Int, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -277,7 +277,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetLSToleranceAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateLSToleranceAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionLs_tolerance, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -288,7 +288,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetNoslipIterationsAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateNoslipIterationsAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionNoslip_iterations, SdfValueTypeNames->Int, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -299,7 +299,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetNoslipToleranceAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateNoslipToleranceAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionNoslip_tolerance, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -310,7 +310,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetCCDIterationsAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateCCDIterationsAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionCcd_iterations, SdfValueTypeNames->Int, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -321,7 +321,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetCCDToleranceAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateCCDToleranceAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionCcd_tolerance, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -332,7 +332,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetSDFIterationsAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateSDFIterationsAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionSdf_iterations, SdfValueTypeNames->Int, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -343,7 +343,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetSDFInitPointsAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateSDFInitPointsAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionSdf_initpoints, SdfValueTypeNames->Int, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -355,7 +355,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetActuatorGroupDisableAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateActuatorGroupDisableAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcOptionActuatorgroupdisable, SdfValueTypeNames->IntArray, @@ -367,7 +367,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetConstraintFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateConstraintFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagConstraint, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -378,7 +378,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetEqualityFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateEqualityFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagEquality, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -389,7 +389,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetFrictionLossFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateFrictionLossFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagFrictionloss, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -400,7 +400,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetLimitFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateLimitFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagLimit, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -411,7 +411,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetContactFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateContactFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagContact, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -422,7 +422,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetPassiveFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreatePassiveFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagPassive, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -433,7 +433,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetGravityFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateGravityFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagGravity, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -444,7 +444,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetClampCtrlFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateClampCtrlFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagClampctrl, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -455,7 +455,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetWarmStartFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateWarmStartFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagWarmstart, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -466,7 +466,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetFilterParentFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateFilterParentFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagFilterparent, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -477,7 +477,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetActuationFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateActuationFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagActuation, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -488,7 +488,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetRefSafeFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateRefSafeFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagRefsafe, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -499,7 +499,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetSensorFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateSensorFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagSensor, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -510,7 +510,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetMidPhaseFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateMidPhaseFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagMidphase, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -521,7 +521,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetNativeCCDFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateNativeCCDFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagNativeccd, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -532,7 +532,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetEulerDampFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateEulerDampFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagEulerdamp, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -543,7 +543,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetAutoResetFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateAutoResetFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagAutoreset, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -554,7 +554,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetOverrideFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateOverrideFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagOverride, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -565,7 +565,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetEnergyFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateEnergyFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagEnergy, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -576,7 +576,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetFwdinvFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateFwdinvFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagFwdinv, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -587,7 +587,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetInvDiscreteFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateInvDiscreteFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagInvdiscrete, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -598,7 +598,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetMultiCCDFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateMultiCCDFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagMulticcd, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -609,7 +609,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetIslandFlagAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateIslandFlagAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcFlagIsland, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -620,7 +620,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetAutoLimitsAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateAutoLimitsAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCompilerAutoLimits, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -631,7 +631,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetBoundMassAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateBoundMassAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCompilerBoundMass, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -642,7 +642,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetBoundInertiaAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateBoundInertiaAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCompilerBoundInertia, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -653,7 +653,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetSetTotalMassAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateSetTotalMassAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCompilerSetTotalMass, SdfValueTypeNames->Double, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -664,7 +664,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetUseThreadAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateUseThreadAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCompilerUseThread, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -675,7 +675,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetBalanceInertiaAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateBalanceInertiaAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCompilerBalanceInertia, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -685,7 +685,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetAngleAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcCompilerAngle); } -UsdAttribute MjcPhysicsSceneAPI::CreateAngleAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsSceneAPI::CreateAngleAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCompilerAngle, SdfValueTypeNames->Token, @@ -696,7 +696,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetFitAABBAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcCompilerFitAABB); } -UsdAttribute MjcPhysicsSceneAPI::CreateFitAABBAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsSceneAPI::CreateFitAABBAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCompilerFitAABB, SdfValueTypeNames->Bool, @@ -708,7 +708,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetFuseStaticAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateFuseStaticAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCompilerFuseStatic, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -719,7 +719,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetInertiaFromGeomAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateInertiaFromGeomAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCompilerInertiaFromGeom, SdfValueTypeNames->Token, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -730,7 +730,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetAlignFreeAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateAlignFreeAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCompilerAlignFree, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -742,7 +742,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetInertiaGroupRangeMinAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateInertiaGroupRangeMinAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCompilerInertiaGroupRangeMin, SdfValueTypeNames->Int, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -754,7 +754,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetInertiaGroupRangeMaxAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateInertiaGroupRangeMaxAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCompilerInertiaGroupRangeMax, SdfValueTypeNames->Int, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -765,7 +765,7 @@ UsdAttribute MjcPhysicsSceneAPI::GetSaveInertialAttr() const { } UsdAttribute MjcPhysicsSceneAPI::CreateSaveInertialAttr( - VtValue const &defaultValue, bool writeSparsely) const { + VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcCompilerSaveInertial, SdfValueTypeNames->Bool, /* custom = */ false, SdfVariabilityUniform, defaultValue, writeSparsely); @@ -773,7 +773,7 @@ UsdAttribute MjcPhysicsSceneAPI::CreateSaveInertialAttr( namespace { static inline TfTokenVector _ConcatenateAttributeNames( - const TfTokenVector &left, const TfTokenVector &right) { + const TfTokenVector& left, const TfTokenVector& right) { TfTokenVector result; result.reserve(left.size() + right.size()); result.insert(result.end(), left.begin(), left.end()); @@ -783,7 +783,7 @@ static inline TfTokenVector _ConcatenateAttributeNames( } // namespace /*static*/ -const TfTokenVector &MjcPhysicsSceneAPI::GetSchemaAttributeNames( +const TfTokenVector& MjcPhysicsSceneAPI::GetSchemaAttributeNames( bool includeInherited) { static TfTokenVector localNames = { MjcPhysicsTokens->mjcOptionTimestep, diff --git a/src/experimental/usd/mjcPhysics/siteAPI.cpp b/src/experimental/usd/mjcPhysics/siteAPI.cpp index 87bf0025..0ec70277 100644 --- a/src/experimental/usd/mjcPhysics/siteAPI.cpp +++ b/src/experimental/usd/mjcPhysics/siteAPI.cpp @@ -30,8 +30,8 @@ TF_REGISTRY_FUNCTION(TfType) { MjcPhysicsSiteAPI::~MjcPhysicsSiteAPI() {} /* static */ -MjcPhysicsSiteAPI MjcPhysicsSiteAPI::Get(const UsdStagePtr &stage, - const SdfPath &path) { +MjcPhysicsSiteAPI MjcPhysicsSiteAPI::Get(const UsdStagePtr& stage, + const SdfPath& path) { if (!stage) { TF_CODING_ERROR("Invalid stage"); return MjcPhysicsSiteAPI(); @@ -45,12 +45,12 @@ UsdSchemaKind MjcPhysicsSiteAPI::_GetSchemaKind() const { } /* static */ -bool MjcPhysicsSiteAPI::CanApply(const UsdPrim &prim, std::string *whyNot) { +bool MjcPhysicsSiteAPI::CanApply(const UsdPrim& prim, std::string* whyNot) { return prim.CanApplyAPI(whyNot); } /* static */ -MjcPhysicsSiteAPI MjcPhysicsSiteAPI::Apply(const UsdPrim &prim) { +MjcPhysicsSiteAPI MjcPhysicsSiteAPI::Apply(const UsdPrim& prim) { if (prim.ApplyAPI()) { return MjcPhysicsSiteAPI(prim); } @@ -58,7 +58,7 @@ MjcPhysicsSiteAPI MjcPhysicsSiteAPI::Apply(const UsdPrim &prim) { } /* static */ -const TfType &MjcPhysicsSiteAPI::_GetStaticTfType() { +const TfType& MjcPhysicsSiteAPI::_GetStaticTfType() { static TfType tfType = TfType::Find(); return tfType; } @@ -70,7 +70,7 @@ bool MjcPhysicsSiteAPI::_IsTypedSchema() { } /* virtual */ -const TfType &MjcPhysicsSiteAPI::_GetTfType() const { +const TfType& MjcPhysicsSiteAPI::_GetTfType() const { return _GetStaticTfType(); } @@ -78,7 +78,7 @@ UsdAttribute MjcPhysicsSiteAPI::GetGroupAttr() const { return GetPrim().GetAttribute(MjcPhysicsTokens->mjcGroup); } -UsdAttribute MjcPhysicsSiteAPI::CreateGroupAttr(VtValue const &defaultValue, +UsdAttribute MjcPhysicsSiteAPI::CreateGroupAttr(VtValue const& defaultValue, bool writeSparsely) const { return UsdSchemaBase::_CreateAttr( MjcPhysicsTokens->mjcGroup, SdfValueTypeNames->Int, @@ -87,7 +87,7 @@ UsdAttribute MjcPhysicsSiteAPI::CreateGroupAttr(VtValue const &defaultValue, namespace { static inline TfTokenVector _ConcatenateAttributeNames( - const TfTokenVector &left, const TfTokenVector &right) { + const TfTokenVector& left, const TfTokenVector& right) { TfTokenVector result; result.reserve(left.size() + right.size()); result.insert(result.end(), left.begin(), left.end()); @@ -97,7 +97,7 @@ static inline TfTokenVector _ConcatenateAttributeNames( } // namespace /*static*/ -const TfTokenVector &MjcPhysicsSiteAPI::GetSchemaAttributeNames( +const TfTokenVector& MjcPhysicsSiteAPI::GetSchemaAttributeNames( bool includeInherited) { static TfTokenVector localNames = { MjcPhysicsTokens->mjcGroup,