half_cheetah.xml 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!-- Cheetah Model
  2. The state space is populated with joints in the order that they are
  3. defined in this file. The actuators also operate on joints.
  4. State-Space (name/joint/parameter):
  5. - rootx slider position (m)
  6. - rootz slider position (m)
  7. - rooty hinge angle (rad)
  8. - bthigh hinge angle (rad)
  9. - bshin hinge angle (rad)
  10. - bfoot hinge angle (rad)
  11. - fthigh hinge angle (rad)
  12. - fshin hinge angle (rad)
  13. - ffoot hinge angle (rad)
  14. - rootx slider velocity (m/s)
  15. - rootz slider velocity (m/s)
  16. - rooty hinge angular velocity (rad/s)
  17. - bthigh hinge angular velocity (rad/s)
  18. - bshin hinge angular velocity (rad/s)
  19. - bfoot hinge angular velocity (rad/s)
  20. - fthigh hinge angular velocity (rad/s)
  21. - fshin hinge angular velocity (rad/s)
  22. - ffoot hinge angular velocity (rad/s)
  23. Actuators (name/actuator/parameter):
  24. - bthigh hinge torque (N m)
  25. - bshin hinge torque (N m)
  26. - bfoot hinge torque (N m)
  27. - fthigh hinge torque (N m)
  28. - fshin hinge torque (N m)
  29. - ffoot hinge torque (N m)
  30. -->
  31. <mujoco model="cheetah">
  32. <compiler angle="radian" coordinate="local" inertiafromgeom="true" settotalmass="14"/>
  33. <default>
  34. <joint armature=".1" damping=".01" limited="true" solimplimit="0 .8 .03" solreflimit=".02 1" stiffness="8"/>
  35. <geom conaffinity="0" condim="3" contype="1" friction="0.8 .1 .1" rgba="0.8 0.6 .4 1" solimp="0.0 0.8 0.01" solref="0.02 1"/>
  36. <motor ctrllimited="true" ctrlrange="-1 1"/>
  37. </default>
  38. <size nstack="300000" nuser_geom="1"/>
  39. <option gravity="0 0 -9.81" timestep="0.01"/>
  40. <worldbody>
  41. <body name="torso" pos="0 0 .7">
  42. <joint armature="0" axis="1 0 0" damping="0" limited="false" name="ignorex" pos="0 0 0" stiffness="0" type="slide"/>
  43. <joint armature="0" axis="0 0 1" damping="0" limited="false" name="ignorez" pos="0 0 0" stiffness="0" type="slide"/>
  44. <joint armature="0" axis="0 1 0" damping="0" limited="false" name="ignorey" pos="0 0 0" stiffness="0" type="hinge"/>
  45. <geom fromto="-.5 0 0 .5 0 0" name="torso" size="0.046" type="capsule"/>
  46. <geom axisangle="0 1 0 .87" name="head" pos=".6 0 .1" size="0.046 .15" type="capsule"/>
  47. <!-- <site name='tip' pos='.15 0 .11'/>-->
  48. <body name="bthigh" pos="-.5 0 0">
  49. <joint axis="0 1 0" damping="6" name="bthigh" pos="0 0 0" range="-.52 1.05" stiffness="240" type="hinge"/>
  50. <geom axisangle="0 1 0 -3.8" name="bthigh" pos=".1 0 -.13" size="0.046 .145" type="capsule"/>
  51. <body name="bshin" pos=".16 0 -.25">
  52. <joint axis="0 1 0" damping="4.5" name="bshin" pos="0 0 0" range="-.785 .785" stiffness="180" type="hinge"/>
  53. <geom axisangle="0 1 0 -2.03" name="bshin" pos="-.14 0 -.07" rgba="0.9 0.6 0.6 1" size="0.046 .15" type="capsule"/>
  54. <body name="bfoot" pos="-.28 0 -.14">
  55. <joint axis="0 1 0" damping="3" name="bfoot" pos="0 0 0" range="-.4 .785" stiffness="120" type="hinge"/>
  56. <geom axisangle="0 1 0 -.27" name="bfoot" pos=".03 0 -.097" rgba="0.9 0.6 0.6 1" size="0.046 .094" type="capsule"/>
  57. <inertial mass="10"/>
  58. </body>
  59. </body>
  60. </body>
  61. <body name="fthigh" pos=".5 0 0">
  62. <joint axis="0 1 0" damping="4.5" name="fthigh" pos="0 0 0" range="-1.5 0.8" stiffness="180" type="hinge"/>
  63. <geom axisangle="0 1 0 .52" name="fthigh" pos="-.07 0 -.12" size="0.046 .133" type="capsule"/>
  64. <body name="fshin" pos="-.14 0 -.24">
  65. <joint axis="0 1 0" damping="3" name="fshin" pos="0 0 0" range="-1.2 1.1" stiffness="120" type="hinge"/>
  66. <geom axisangle="0 1 0 -.6" name="fshin" pos=".065 0 -.09" rgba="0.9 0.6 0.6 1" size="0.046 .106" type="capsule"/>
  67. <body name="ffoot" pos=".13 0 -.18">
  68. <joint axis="0 1 0" damping="1.5" name="ffoot" pos="0 0 0" range="-3.1 -0.3" stiffness="60" type="hinge"/>
  69. <geom axisangle="0 1 0 -.6" name="ffoot" pos=".045 0 -.07" rgba="0.9 0.6 0.6 1" size="0.046 .07" type="capsule"/>
  70. <inertial mass="10"/>
  71. </body>
  72. </body>
  73. </body>
  74. </body>
  75. </worldbody>
  76. <actuator>
  77. <motor gear="120" joint="bthigh" name="bthigh"/>
  78. <motor gear="90" joint="bshin" name="bshin"/>
  79. <motor gear="60" joint="bfoot" name="bfoot"/>
  80. <motor gear="120" joint="fthigh" name="fthigh"/>
  81. <motor gear="60" joint="fshin" name="fshin"/>
  82. <motor gear="30" joint="ffoot" name="ffoot"/>
  83. </actuator>
  84. </mujoco>