Merge branch 'main' into newton-schemas

This commit is contained in:
Sam Haves
2026-05-13 09:57:59 -04:00
committed by GitHub
430 changed files with 44557 additions and 19852 deletions
@@ -141,7 +141,7 @@ class "MjcSceneAPI" (
displayName = "Mid-Phase Collision Filtering Toggle"
doc = "Enables mid-phase collision filtering using a static AABB bounding volume hierarchy (BVH)."
)
uniform bool mjc:flag:multiccd = 0 (
uniform bool mjc:flag:multiccd = 1 (
displayName = "Multiple Contact Collision Detection (CCD) Toggle"
doc = "Enables multiple-contact collision detection for geom pairs using a general-purpose convex-convex collider."
)
@@ -322,7 +322,7 @@ class "MjcCollisionAPI" (
displayName = "Gap"
doc = """DEPRECATED: Use newton:contactGap instead.
This attribute is used to enable the generation of inactive contacts, i.e., contacts that are ignored by the constraint solver but are included in mjData.contact for the purpose of custom computations. When this value is positive, geom distances between margin and margin-gap correspond to such inactive contacts."""
Additional contact detection buffer beyond margin. Contacts are detected at distance margin + gap but forces are only generated at distance margin."
)
uniform int mjc:group = 0 (
displayName = "Group"
@@ -332,7 +332,7 @@ class "MjcCollisionAPI" (
displayName = "Margin"
doc = """DEPRECATED: Use newton:contactMargin and newton:contactGap instead.
Distance threshold below which contacts are detected and included in the global array mjData.contact."""
Geometric inflation of the geom surface for the purpose of contact force generation."
)
uniform int mjc:priority = 0 (
displayName = "Priority"
+3 -3
View File
@@ -500,7 +500,7 @@ class "MjcSceneAPI"
doc = """Enables discrete-time inverse dynamics with mj_inverse for integrators other than RK4."""
)
uniform bool mjc:flag:multiccd = False (
uniform bool mjc:flag:multiccd = True (
customData = {
string apiName = "MultiCCDFlag"
}
@@ -748,7 +748,7 @@ class "MjcCollisionAPI"
displayName = "Margin"
doc = """DEPRECATED: Use newton:contactMargin and newton:contactGap instead.
Distance threshold below which contacts are detected and included in the global array mjData.contact."""
Geometric inflation of the geom surface for the purpose of contact force generation."""
)
uniform double mjc:gap = 0.0 (
@@ -758,7 +758,7 @@ class "MjcCollisionAPI"
displayName = "Gap"
doc = """DEPRECATED: Use newton:contactGap instead.
This attribute is used to enable the generation of inactive contacts, i.e., contacts that are ignored by the constraint solver but are included in mjData.contact for the purpose of custom computations. When this value is positive, geom distances between margin and margin-gap correspond to such inactive contacts."""
Additional contact detection buffer beyond margin. Contacts are detected at distance margin + gap but forces are only generated at distance margin."""
)
}
@@ -663,7 +663,6 @@ class ModelWriter {
};
const std::vector<std::pair<pxr::TfToken, int>> enable_flags = {
{MjcPhysicsTokens->mjcFlagMulticcd, mjENBL_MULTICCD},
{MjcPhysicsTokens->mjcFlagFwdinv, mjENBL_FWDINV},
{MjcPhysicsTokens->mjcFlagEnergy, mjENBL_ENERGY},
{MjcPhysicsTokens->mjcFlagOverride, mjENBL_OVERRIDE},
@@ -691,7 +690,8 @@ class ModelWriter {
{MjcPhysicsTokens->mjcFlagEulerdamp, mjDSBL_EULERDAMP},
{MjcPhysicsTokens->mjcFlagAutoreset, mjDSBL_AUTORESET},
{MjcPhysicsTokens->mjcFlagNativeccd, mjDSBL_NATIVECCD},
{MjcPhysicsTokens->mjcFlagIsland, mjDSBL_ISLAND}};
{MjcPhysicsTokens->mjcFlagIsland, mjDSBL_ISLAND},
{MjcPhysicsTokens->mjcFlagMulticcd, mjDSBL_MULTICCD}};
for (const auto &[token, flag] : disable_flags) {
create_flag_attr(token, flag, false);
}