Add parsing tests for joints.
Also remove the not properly supported SphericalJoint (ball joint). PiperOrigin-RevId: 776550199 Change-Id: I863dfa89c4cb564cf453e57c19df563ddade92b8
This commit is contained in:
committed by
Copybara-Service
parent
2e8e38b492
commit
931ea6938c
@@ -872,10 +872,8 @@ void ParseUsdPhysicsJoint(mjSpec* spec, const pxr::UsdPrim& prim, mjsBody* body,
|
||||
type = mjJNT_HINGE;
|
||||
} else if (prim.IsA<pxr::UsdPhysicsPrismaticJoint>()) {
|
||||
type = mjJNT_SLIDE;
|
||||
} else if (prim.IsA<pxr::UsdPhysicsSphericalJoint>()) {
|
||||
type = mjJNT_BALL;
|
||||
} else {
|
||||
// Unknown joint type.
|
||||
// Unsupported joint type.
|
||||
mju_warning("Unsupported joint type for %s",
|
||||
prim.GetPath().GetAsString().c_str());
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user