Skip to content

Commit

Permalink
make passive no friction
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Mar 21, 2024
1 parent 26788d3 commit b9a76a5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,6 @@ public org.mujoco.xml.BodyarchType.Builder<?> loadLink(
.withRange(ctrlRange) // engineering units range
.withRef(BigDecimal.valueOf(0)) // set the reference position on loading as the links 0 degrees value
.withType(JointtypeType.HINGE) // hinge type
.withFrictionloss(BigDecimal.valueOf(0.01))// experementally determined
//.withLimited(true)
//.withDamping(BigDecimal.valueOf(0.00001))
//.withStiffness(BigDecimal.valueOf(1))
Expand All @@ -654,7 +653,8 @@ public org.mujoco.xml.BodyarchType.Builder<?> loadLink(
newtonMeterLimit=Double.parseDouble(torque.toString())/gear;
}
if (!conf.isPassive()) {

jointBuilder.withFrictionloss(BigDecimal.valueOf(0.01));// experementally determined

actuators.addPosition()// A position controller to model a servo
.withKp(BigDecimal.valueOf(0.000006)) // experementally determined value
//.withForcelimited(true)
Expand Down Expand Up @@ -695,7 +695,7 @@ public org.mujoco.xml.BodyarchType.Builder<?> loadLink(
double height = part.getTotalZ();
double radius =( part.getTotalY()+part.getTotalX())/4.0;
hull = new RoundedCylinder(radius, radius, height, 40)
.cornerRadius(radius/4)
.cornerRadius(height/4)
.toCSG()
.toZMin()
.movez(transformed.getMinZ())
Expand Down

0 comments on commit b9a76a5

Please sign in to comment.