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."
)
class "MjcPhysicsSceneAPI" (
class "SceneAPI" (
doc = "API providing global simulation options for Mujoco."
)
{
@@ -220,7 +220,7 @@ class "MjcPhysicsSceneAPI" (
)
}
class "MjcPhysicsSiteAPI" (
class "SiteAPI" (
doc = "API describing a Mujoco site."
)
{
@@ -8,7 +8,7 @@
"Types": {
"MjcPhysicsSceneAPI": {
"alias": {
"UsdSchemaBase": "MjcPhysicsSceneAPI"
"UsdSchemaBase": "SceneAPI"
},
"autoGenerated": true,
"bases": [
@@ -18,7 +18,7 @@
},
"MjcPhysicsSiteAPI": {
"alias": {
"UsdSchemaBase": "MjcPhysicsSiteAPI"
"UsdSchemaBase": "SiteAPI"
},
"autoGenerated": true,
"bases": [
+2 -2
View File
@@ -35,7 +35,7 @@ PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// MJCPHYSICSSCENEAPI //
// SCENEAPI //
// -------------------------------------------------------------------------- //
/// \class MjcPhysicsSceneAPI
@@ -110,7 +110,7 @@ class MjcPhysicsSceneAPI : public UsdAPISchemaBase {
static bool CanApply(const UsdPrim &prim, std::string *whyNot = nullptr);
/// 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.
///
/// \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."""
inherits = </APISchemaBase>
@@ -510,11 +507,8 @@ class "MjcPhysicsSceneAPI"
)
}
class "MjcPhysicsSiteAPI"
class "SiteAPI"
(
customData = {
string className = "SiteAPI"
}
doc = """API describing a Mujoco site."""
inherits = </APISchemaBase>
+2 -2
View File
@@ -34,7 +34,7 @@ PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// MJCPHYSICSSITEAPI //
// SITEAPI //
// -------------------------------------------------------------------------- //
/// \class MjcPhysicsSiteAPI
@@ -104,7 +104,7 @@ class MjcPhysicsSiteAPI : public UsdAPISchemaBase {
static bool CanApply(const UsdPrim &prim, std::string *whyNot = nullptr);
/// 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.
///
/// \return A valid MjcPhysicsSiteAPI object is returned upon success.
+4 -4
View File
@@ -85,8 +85,8 @@ MjcPhysicsTokensType::MjcPhysicsTokensType()
pyramidal("pyramidal", TfToken::Immortal),
rk4("rk4", TfToken::Immortal),
sparse("sparse", TfToken::Immortal),
MjcPhysicsSceneAPI("MjcPhysicsSceneAPI", TfToken::Immortal),
MjcPhysicsSiteAPI("MjcPhysicsSiteAPI", TfToken::Immortal),
SceneAPI("SceneAPI", TfToken::Immortal),
SiteAPI("SiteAPI", TfToken::Immortal),
allTokens({auto_,
cg,
dense,
@@ -148,8 +148,8 @@ MjcPhysicsTokensType::MjcPhysicsTokensType()
pyramidal,
rk4,
sparse,
MjcPhysicsSceneAPI,
MjcPhysicsSiteAPI}) {}
SceneAPI,
SiteAPI}) {}
TfStaticData<MjcPhysicsTokensType> MjcPhysicsTokens;
+4 -4
View File
@@ -309,14 +309,14 @@ struct MjcPhysicsTokensType {
/// Possible value for MjcPhysicsSceneAPI::GetJacobianAttr(), This token
/// represents the sparse constraint Jacobian and matrices computed from it.
const TfToken sparse;
/// \brief "MjcPhysicsSceneAPI"
/// \brief "SceneAPI"
///
/// Schema identifer and family for MjcPhysicsSceneAPI
const TfToken MjcPhysicsSceneAPI;
/// \brief "MjcPhysicsSiteAPI"
const TfToken SceneAPI;
/// \brief "SiteAPI"
///
/// Schema identifer and family for MjcPhysicsSiteAPI
const TfToken MjcPhysicsSiteAPI;
const TfToken SiteAPI;
/// A vector of all of the tokens listed above.
const std::vector<TfToken> allTokens;
};
@@ -145,6 +145,6 @@ void wrapMjcPhysicsTokens() {
_AddToken(cls, "pyramidal", MjcPhysicsTokens->pyramidal);
_AddToken(cls, "rk4", MjcPhysicsTokens->rk4);
_AddToken(cls, "sparse", MjcPhysicsTokens->sparse);
_AddToken(cls, "MjcPhysicsSceneAPI", MjcPhysicsTokens->MjcPhysicsSceneAPI);
_AddToken(cls, "MjcPhysicsSiteAPI", MjcPhysicsTokens->MjcPhysicsSiteAPI);
_AddToken(cls, "SceneAPI", MjcPhysicsTokens->SceneAPI);
_AddToken(cls, "SiteAPI", MjcPhysicsTokens->SiteAPI);
}