Skip to content

Commit

Permalink
updating the wheel loader to use normal loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Harrington committed May 21, 2024
1 parent ee152a1 commit 70e0252
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 70e0252

Please sign in to comment.