hopper.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <mujoco model="hopper">
  2. <compiler angle="degree" coordinate="global" inertiafromgeom="true"/>
  3. <default>
  4. <joint armature="1" damping="1" limited="true"/>
  5. <geom conaffinity="1" condim="1" contype="1" margin="0.001" friction="0.8 .1 .1" material="geom" rgba="0.8 0.6 .4 1" solimp=".8 .8 .01" solref=".02 1"/>
  6. <motor ctrllimited="true" ctrlrange="-.4 .4"/>
  7. </default>
  8. <option integrator="RK4" timestep="0.002"/>
  9. <worldbody>
  10. <!-- CHANGE: body pos="" deleted for all bodies (you can also set pos="0 0 0", it works)
  11. Interpretation of body pos="" depends on coordinate="global" above.
  12. Bullet doesn't support global coordinates in bodies, little motivation to fix this, as long as it works without pos="" as well.
  13. After this change, Hopper still loads and works in MuJoCo simulator.
  14. -->
  15. <body name="torso">
  16. <joint armature="0" axis="1 0 0" damping="0" limited="false" name="ignore1" pos="0 0 0" stiffness="0" type="slide"/>
  17. <joint armature="0" axis="0 0 1" damping="0" limited="false" name="ignore2" pos="0 0 0" ref="1.25" stiffness="0" type="slide"/>
  18. <joint armature="0" axis="0 1 0" damping="0" limited="false" name="ignore3" pos="0 0 0" stiffness="0" type="hinge"/>
  19. <geom fromto="0 0 1.45 0 0 1.05" name="torso_geom" size="0.05" type="capsule"/>
  20. <body name="thigh">
  21. <joint axis="0 -1 0" name="thigh_joint" pos="0 0 1.05" range="-150 0" type="hinge"/>
  22. <geom fromto="0 0 1.05 0 0 0.6" name="thigh_geom" size="0.05" type="capsule"/>
  23. <body name="leg">
  24. <joint axis="0 -1 0" name="leg_joint" pos="0 0 0.6" range="-150 0" type="hinge"/>
  25. <geom fromto="0 0 0.6 0 0 0.1" name="leg_geom" size="0.04" type="capsule"/>
  26. <body name="foot">
  27. <joint axis="0 -1 0" name="foot_joint" pos="0 0 0.1" range="-45 45" type="hinge"/>
  28. <geom fromto="-0.13 0 0.1 0.26 0 0.1" name="foot_geom" size="0.06" type="capsule"/>
  29. </body>
  30. </body>
  31. </body>
  32. </body>
  33. </worldbody>
  34. <actuator>
  35. <motor ctrllimited="true" ctrlrange="-1.0 1.0" gear="200.0" joint="thigh_joint"/>
  36. <motor ctrllimited="true" ctrlrange="-1.0 1.0" gear="200.0" joint="leg_joint"/>
  37. <motor ctrllimited="true" ctrlrange="-1.0 1.0" gear="200.0" joint="foot_joint"/>
  38. </actuator>
  39. </mujoco>