Remove MjcPhysics prefix from schema API types.

PiperOrigin-RevId: 758718987
Change-Id: I8a3a5dc7a990d401a91f5982e62c590e8924472a
This commit is contained in:
Sam Haves
2025-05-14 09:38:11 -07:00
committed by Copybara-Service
parent 0a5da8db22
commit dc4968506b
8 changed files with 20 additions and 26 deletions
@@ -3,7 +3,7 @@
"WARNING: THIS FILE IS GENERATED BY usdGenSchema. DO NOT EDIT." "WARNING: THIS FILE IS GENERATED BY usdGenSchema. DO NOT EDIT."
) )
class "MjcPhysicsSceneAPI" ( class "SceneAPI" (
doc = "API providing global simulation options for Mujoco." doc = "API providing global simulation options for Mujoco."
) )
{ {
@@ -220,7 +220,7 @@ class "MjcPhysicsSceneAPI" (
) )
} }
class "MjcPhysicsSiteAPI" ( class "SiteAPI" (
doc = "API describing a Mujoco site." doc = "API describing a Mujoco site."
) )
{ {
@@ -8,7 +8,7 @@
"Types": { "Types": {
"MjcPhysicsSceneAPI": { "MjcPhysicsSceneAPI": {
"alias": { "alias": {
"UsdSchemaBase": "MjcPhysicsSceneAPI" "UsdSchemaBase": "SceneAPI"
}, },
"autoGenerated": true, "autoGenerated": true,
"bases": [ "bases": [
@@ -18,7 +18,7 @@
}, },
"MjcPhysicsSiteAPI": { "MjcPhysicsSiteAPI": {
"alias": { "alias": {
"UsdSchemaBase": "MjcPhysicsSiteAPI" "UsdSchemaBase": "SiteAPI"
}, },
"autoGenerated": true, "autoGenerated": true,
"bases": [ "bases": [
+2 -2
View File
@@ -35,7 +35,7 @@ PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath; class SdfAssetPath;
// -------------------------------------------------------------------------- // // -------------------------------------------------------------------------- //
// MJCPHYSICSSCENEAPI // // SCENEAPI //
// -------------------------------------------------------------------------- // // -------------------------------------------------------------------------- //
/// \class MjcPhysicsSceneAPI /// \class MjcPhysicsSceneAPI
@@ -110,7 +110,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase {
static bool CanApply(const UsdPrim &prim, std::string *whyNot = nullptr); static bool CanApply(const UsdPrim &prim, std::string *whyNot = nullptr);
/// Applies this <b>single-apply</b> API schema to the given \p prim. /// Applies this <b>single-apply</b> API schema to the given \p prim.
/// This information is stored by adding "MjcPhysicsSceneAPI" to the /// This information is stored by adding "SceneAPI" to the
/// token-valued, listOp metadata \em apiSchemas on the prim. /// token-valued, listOp metadata \em apiSchemas on the prim.
/// ///
/// \return A valid MjcPhysicsSceneAPI object is returned upon success. /// \return A valid MjcPhysicsSceneAPI object is returned upon success.
+2 -8
View File
@@ -92,11 +92,8 @@ over "GLOBAL" (
} }
class "MjcPhysicsSceneAPI" class "SceneAPI"
( (
customData = {
string className = "SceneAPI"
}
doc = """API providing global simulation options for Mujoco.""" doc = """API providing global simulation options for Mujoco."""
inherits = </APISchemaBase> inherits = </APISchemaBase>
@@ -510,11 +507,8 @@ class "MjcPhysicsSceneAPI"
) )
} }
class "MjcPhysicsSiteAPI" class "SiteAPI"
( (
customData = {
string className = "SiteAPI"
}
doc = """API describing a Mujoco site.""" doc = """API describing a Mujoco site."""
inherits = </APISchemaBase> inherits = </APISchemaBase>
+2 -2
View File
@@ -34,7 +34,7 @@ PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath; class SdfAssetPath;
// -------------------------------------------------------------------------- // // -------------------------------------------------------------------------- //
// MJCPHYSICSSITEAPI // // SITEAPI //
// -------------------------------------------------------------------------- // // -------------------------------------------------------------------------- //
/// \class MjcPhysicsSiteAPI /// \class MjcPhysicsSiteAPI
@@ -104,7 +104,7 @@ class MjcPhysicsSiteAPI : public UsdAPISchemaBase {
static bool CanApply(const UsdPrim &prim, std::string *whyNot = nullptr); static bool CanApply(const UsdPrim &prim, std::string *whyNot = nullptr);
/// Applies this <b>single-apply</b> API schema to the given \p prim. /// Applies this <b>single-apply</b> API schema to the given \p prim.
/// This information is stored by adding "MjcPhysicsSiteAPI" to the /// This information is stored by adding "SiteAPI" to the
/// token-valued, listOp metadata \em apiSchemas on the prim. /// token-valued, listOp metadata \em apiSchemas on the prim.
/// ///
/// \return A valid MjcPhysicsSiteAPI object is returned upon success. /// \return A valid MjcPhysicsSiteAPI object is returned upon success.
+4 -4
View File
@@ -85,8 +85,8 @@ MjcPhysicsTokensType::MjcPhysicsTokensType()
pyramidal("pyramidal", TfToken::Immortal), pyramidal("pyramidal", TfToken::Immortal),
rk4("rk4", TfToken::Immortal), rk4("rk4", TfToken::Immortal),
sparse("sparse", TfToken::Immortal), sparse("sparse", TfToken::Immortal),
MjcPhysicsSceneAPI("MjcPhysicsSceneAPI", TfToken::Immortal), SceneAPI("SceneAPI", TfToken::Immortal),
MjcPhysicsSiteAPI("MjcPhysicsSiteAPI", TfToken::Immortal), SiteAPI("SiteAPI", TfToken::Immortal),
allTokens({auto_, allTokens({auto_,
cg, cg,
dense, dense,
@@ -148,8 +148,8 @@ MjcPhysicsTokensType::MjcPhysicsTokensType()
pyramidal, pyramidal,
rk4, rk4,
sparse, sparse,
MjcPhysicsSceneAPI, SceneAPI,
MjcPhysicsSiteAPI}) {} SiteAPI}) {}
TfStaticData<MjcPhysicsTokensType> MjcPhysicsTokens; TfStaticData<MjcPhysicsTokensType> MjcPhysicsTokens;
+4 -4
View File
@@ -309,14 +309,14 @@ struct MjcPhysicsTokensType {
/// Possible value for MjcPhysicsSceneAPI::GetJacobianAttr(), This token /// Possible value for MjcPhysicsSceneAPI::GetJacobianAttr(), This token
/// represents the sparse constraint Jacobian and matrices computed from it. /// represents the sparse constraint Jacobian and matrices computed from it.
const TfToken sparse; const TfToken sparse;
/// \brief "MjcPhysicsSceneAPI" /// \brief "SceneAPI"
/// ///
/// Schema identifer and family for MjcPhysicsSceneAPI /// Schema identifer and family for MjcPhysicsSceneAPI
const TfToken MjcPhysicsSceneAPI; const TfToken SceneAPI;
/// \brief "MjcPhysicsSiteAPI" /// \brief "SiteAPI"
/// ///
/// Schema identifer and family for MjcPhysicsSiteAPI /// Schema identifer and family for MjcPhysicsSiteAPI
const TfToken MjcPhysicsSiteAPI; const TfToken SiteAPI;
/// A vector of all of the tokens listed above. /// A vector of all of the tokens listed above.
const std::vector<TfToken> allTokens; const std::vector<TfToken> allTokens;
}; };
@@ -145,6 +145,6 @@ void wrapMjcPhysicsTokens() {
_AddToken(cls, "pyramidal", MjcPhysicsTokens->pyramidal); _AddToken(cls, "pyramidal", MjcPhysicsTokens->pyramidal);
_AddToken(cls, "rk4", MjcPhysicsTokens->rk4); _AddToken(cls, "rk4", MjcPhysicsTokens->rk4);
_AddToken(cls, "sparse", MjcPhysicsTokens->sparse); _AddToken(cls, "sparse", MjcPhysicsTokens->sparse);
_AddToken(cls, "MjcPhysicsSceneAPI", MjcPhysicsTokens->MjcPhysicsSceneAPI); _AddToken(cls, "SceneAPI", MjcPhysicsTokens->SceneAPI);
_AddToken(cls, "MjcPhysicsSiteAPI", MjcPhysicsTokens->MjcPhysicsSiteAPI); _AddToken(cls, "SiteAPI", MjcPhysicsTokens->SiteAPI);
} }