From 931ea6938c2e9d972857d527827a65ce4accb615 Mon Sep 17 00:00:00 2001 From: Robin Alazard Date: Fri, 27 Jun 2025 06:00:30 -0700 Subject: [PATCH] Add parsing tests for joints. Also remove the not properly supported SphericalJoint (ball joint). PiperOrigin-RevId: 776550199 Change-Id: I863dfa89c4cb564cf453e57c19df563ddade92b8 --- src/experimental/usd/usd_to_mjspec.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/experimental/usd/usd_to_mjspec.cc b/src/experimental/usd/usd_to_mjspec.cc index d1c48ceb..21ef2cb6 100644 --- a/src/experimental/usd/usd_to_mjspec.cc +++ b/src/experimental/usd/usd_to_mjspec.cc @@ -872,10 +872,8 @@ void ParseUsdPhysicsJoint(mjSpec* spec, const pxr::UsdPrim& prim, mjsBody* body, type = mjJNT_HINGE; } else if (prim.IsA()) { type = mjJNT_SLIDE; - } else if (prim.IsA()) { - type = mjJNT_BALL; } else { - // Unknown joint type. + // Unsupported joint type. mju_warning("Unsupported joint type for %s", prim.GetPath().GetAsString().c_str()); return;