From 70e02527b0f087528bb045a89fbb1d783ee1b428 Mon Sep 17 00:00:00 2001 From: Kevin Harrington Date: Mon, 20 May 2024 22:38:05 -0400 Subject: [PATCH] updating the wheel loader to use normal loading --- .../bowlerstudio/physics/MuJoCoPhysicsManager.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/neuronrobotics/bowlerstudio/physics/MuJoCoPhysicsManager.java b/src/main/java/com/neuronrobotics/bowlerstudio/physics/MuJoCoPhysicsManager.java index 820f86c8..0e9e5e15 100644 --- a/src/main/java/com/neuronrobotics/bowlerstudio/physics/MuJoCoPhysicsManager.java +++ b/src/main/java/com/neuronrobotics/bowlerstudio/physics/MuJoCoPhysicsManager.java @@ -664,7 +664,7 @@ public org.mujoco.xml.BodyarchType.Builder loadLink(MobileBase cat, DHParamet .withRef(BigDecimal.valueOf(0)) // set the reference position on loading as the links 0 degrees value .withType(JointtypeType.HINGE) // hinge type .withLimited(true) - .withDamping(BigDecimal.valueOf(0.000001)) + //.withDamping(BigDecimal.valueOf(0.000001)) // .withStiffness(BigDecimal.valueOf(1)) .withSolreflimit("4e-3 1").withSolimplimit(".95 .99 1e-3").withName(name); double forceKgCm = 3.5;// mg92b default @@ -750,11 +750,9 @@ public org.mujoco.xml.BodyarchType.Builder loadLink(MobileBase cat, DHParamet setWheelMeshToGeom(geomname, geom, part); // default is 1 0.005 0.0001 // println "Setting Wheel Friction for "+part.getName() - if (myLink.getLinkConfiguration().isPassive()) { - geom.withFriction("0.0001 0.00005 0.000001");// this is a hack for "onmi wheels" - }else { - geom.withFriction("1.2 0.005 0.001"); - } + + geom.withFriction("1.2 0.005 0.001"); + } else { setCSGMeshToGeom(geomname, geom);