humanoid.xml 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <mujoco model='humanoid'>
  2. <compiler inertiafromgeom='true' angle='degree'/>
  3. <default>
  4. <joint limited='true' damping='1' armature='0' />
  5. <geom contype='1' conaffinity='1' condim='1' rgba='0.8 0.6 .4 1'
  6. margin="0.001" solref=".02 1" solimp=".8 .8 .01" material="geom"/>
  7. <motor ctrlrange='-.4 .4' ctrllimited='true'/>
  8. </default>
  9. <option timestep='0.002' iterations="50" solver="PGS">
  10. <flag energy="enable"/>
  11. </option>
  12. <visual>
  13. <map fogstart="3" fogend="5" force="0.1"/>
  14. <quality shadowsize="2048"/>
  15. </visual>
  16. <asset>
  17. <texture type="skybox" builtin="gradient" width="100" height="100" rgb1=".4 .6 .8"
  18. rgb2="0 0 0"/>
  19. <texture name="texgeom" type="cube" builtin="flat" mark="cross" width="127" height="1278"
  20. rgb1="0.8 0.6 0.4" rgb2="0.8 0.6 0.4" markrgb="1 1 1" random="0.01"/>
  21. <texture name="texplane" type="2d" builtin="checker" rgb1=".2 .3 .4" rgb2=".1 0.15 0.2"
  22. width="100" height="100"/>
  23. <material name='MatPlane' reflectance='0.5' texture="texplane" texrepeat="1 1" texuniform="true"/>
  24. <material name='geom' texture="texgeom" texuniform="true"/>
  25. </asset>
  26. <worldbody>
  27. <geom name='floor' pos='0 0 0' size='10 10 0.125' type='plane' material="MatPlane" condim='3'/>
  28. <body name='torso' pos='0 0 1.4'>
  29. <light mode='trackcom' directional='false' diffuse='.8 .8 .8' specular='0.3 0.3 0.3' pos='0 0 4.0' dir='0 0 -1'/>
  30. <geom name='torso1' type='capsule' fromto='0 -.07 0 0 .07 0' size='0.07' />
  31. <geom name='head' type='sphere' pos='0 0 .19' size='.09'/>
  32. <geom name='uwaist' type='capsule' fromto='-.01 -.06 -.12 -.01 .06 -.12' size='0.06'/>
  33. <body name='lwaist' pos='-.01 0 -0.260' quat='1.000 0 -0.002 0' >
  34. <geom name='lwaist' type='capsule' fromto='0 -.06 0 0 .06 0' size='0.06' />
  35. <joint name='abdomen_z' type='hinge' pos='0 0 0.065' axis='0 0 1' range='-45 45' damping='5' stiffness='20' armature='0.02' />
  36. <joint name='abdomen_y' type='hinge' pos='0 0 0.065' axis='0 1 0' range='-75 30' damping='5' stiffness='10' armature='0.02' />
  37. <body name='pelvis' pos='0 0 -0.165' quat='1.000 0 -0.002 0' >
  38. <joint name='abdomen_x' type='hinge' pos='0 0 0.1' axis='1 0 0' range='-35 35' damping='5' stiffness='10' armature='0.02' />
  39. <geom name='butt' type='capsule' fromto='-.02 -.07 0 -.02 .07 0' size='0.09' />
  40. <body name='right_thigh' pos='0 -0.1 -0.04' >
  41. <joint name='right_hip_x' type='hinge' pos='0 0 0' axis='1 0 0' range='-25 5' damping='5' stiffness='10' armature='0.01' />
  42. <joint name='right_hip_z' type='hinge' pos='0 0 0' axis='0 0 1' range='-60 35' damping='5' stiffness='10' armature='0.01' />
  43. <joint name='right_hip_y' type='hinge' pos='0 0 0' axis='0 1 0' range='-110 20' damping='5' stiffness='20' armature='0.0080' />
  44. <geom name='right_thigh1' type='capsule' fromto='0 0 0 0 0.01 -.34' size='0.06' />
  45. <body name='right_shin' pos='0 0.01 -0.403' >
  46. <joint name='right_knee' type='hinge' pos='0 0 .02' axis='0 -1 0' range='-160 -2' armature='0.0060' />
  47. <geom name='right_shin1' type='capsule' fromto='0 0 0 0 0 -.3' size='0.049' />
  48. <body name='right_foot' pos='0 0 -.39' >
  49. <joint name='right_ankle_y' type='hinge' pos='0 0 0.08' axis='0 1 0' range='-50 50' stiffness='4' armature='0.0008' />
  50. <joint name='right_ankle_x' type='hinge' pos='0 0 0.04' axis='1 0 0.5' range='-50 50' stiffness='1' armature='0.0006' />
  51. <geom name='right_foot_cap1' type='capsule' fromto='-.07 -0.02 0 0.14 -0.04 0' size='0.027' />
  52. <geom name='right_foot_cap2' type='capsule' fromto='-.07 0 0 0.14 0.02 0' size='0.027' />
  53. </body>
  54. </body>
  55. </body>
  56. <body name='left_thigh' pos='0 0.1 -0.04' >
  57. <joint name='left_hip_x' type='hinge' pos='0 0 0' axis='-1 0 0' range='-25 5' damping='5' stiffness='10' armature='0.01' />
  58. <joint name='left_hip_z' type='hinge' pos='0 0 0' axis='0 0 -1' range='-60 35' damping='5' stiffness='10' armature='0.01' />
  59. <joint name='left_hip_y' type='hinge' pos='0 0 0' axis='0 1 0' range='-120 20' damping='5' stiffness='20' armature='0.01' />
  60. <geom name='left_thigh1' type='capsule' fromto='0 0 0 0 -0.01 -.34' size='0.06' />
  61. <body name='left_shin' pos='0 -0.01 -0.403' >
  62. <joint name='left_knee' type='hinge' pos='0 0 .02' axis='0 -1 0' range='-160 -2' stiffness='1' armature='0.0060' />
  63. <geom name='left_shin1' type='capsule' fromto='0 0 0 0 0 -.3' size='0.049' />
  64. <body name='left_foot' pos='0 0 -.39' >
  65. <joint name='left_ankle_y' type='hinge' pos='0 0 0.08' axis='0 1 0' range='-50 50' stiffness='4' armature='0.0008' />
  66. <joint name='left_ankle_x' type='hinge' pos='0 0 0.04' axis='1 0 0.5' range='-50 50' stiffness='1' armature='0.0006' />
  67. <geom name='left_foot_cap1' type='capsule' fromto='-.07 0.02 0 0.14 0.04 0' size='0.027' />
  68. <geom name='left_foot_cap2' type='capsule' fromto='-.07 0 0 0.14 -0.02 0' size='0.027' />
  69. </body>
  70. </body>
  71. </body>
  72. </body>
  73. </body>
  74. <body name='right_upper_arm' pos='0 -0.17 0.06' >
  75. <joint name='right_shoulder1' type='hinge' pos='0 0 0' axis='2 1 1' range='-85 60' stiffness='1' armature='0.0068' />
  76. <joint name='right_shoulder2' type='hinge' pos='0 0 0' axis='0 -1 1' range='-85 60' stiffness='1' armature='0.0051' />
  77. <geom name='right_uarm1' type='capsule' fromto='0 0 0 .16 -.16 -.16' size='0.04 0.16' />
  78. <body name='right_lower_arm' pos='.18 -.18 -.18' >
  79. <joint name='right_elbow' type='hinge' pos='0 0 0' axis='0 -1 1' range='-90 50' stiffness='0' armature='0.0028' />
  80. <geom name='right_larm' type='capsule' fromto='0.01 0.01 0.01 .17 .17 .17' size='0.031' />
  81. <geom name='right_hand' type='sphere' pos='.18 .18 .18' size='0.04'/>
  82. </body>
  83. </body>
  84. <body name='left_upper_arm' pos='0 0.17 0.06' >
  85. <joint name='left_shoulder1' type='hinge' pos='0 0 0' axis='2 -1 1' range='-60 85' stiffness='1' armature='0.0068' />
  86. <joint name='left_shoulder2' type='hinge' pos='0 0 0' axis='0 1 1' range='-60 85' stiffness='1' armature='0.0051' />
  87. <geom name='left_uarm1' type='capsule' fromto='0 0 0 .16 .16 -.16' size='0.04 0.16' />
  88. <body name='left_lower_arm' pos='.18 .18 -.18' >
  89. <joint name='left_elbow' type='hinge' pos='0 0 0' axis='0 -1 -1' range='-90 50' stiffness='0' armature='0.0028' />
  90. <geom name='left_larm' type='capsule' fromto='0.01 -0.01 0.01 .17 -.17 .17' size='0.031' />
  91. <geom name='left_hand' type='sphere' pos='.18 -.18 .18' size='0.04'/>
  92. </body>
  93. </body>
  94. </body>
  95. </worldbody>
  96. <actuator>
  97. <motor name='abdomen_y' gear='200' joint='abdomen_y' />
  98. <motor name='abdomen_z' gear='200' joint='abdomen_z' />
  99. <motor name='abdomen_x' gear='200' joint='abdomen_x' />
  100. <motor name='right_hip_x' gear='200' joint='right_hip_x' />
  101. <motor name='right_hip_z' gear='200' joint='right_hip_z' />
  102. <motor name='right_hip_y' gear='600' joint='right_hip_y' />
  103. <motor name='right_knee' gear='400' joint='right_knee' />
  104. <motor name='right_ankle_x' gear='100' joint='right_ankle_x' />
  105. <motor name='right_ankle_y' gear='100' joint='right_ankle_y' />
  106. <motor name='left_hip_x' gear='200' joint='left_hip_x' />
  107. <motor name='left_hip_z' gear='200' joint='left_hip_z' />
  108. <motor name='left_hip_y' gear='600' joint='left_hip_y' />
  109. <motor name='left_knee' gear='400' joint='left_knee' />
  110. <motor name='left_ankle_x' gear='100' joint='left_ankle_x' />
  111. <motor name='left_ankle_y' gear='100' joint='left_ankle_y' />
  112. <motor name='right_shoulder1' gear='100' joint='right_shoulder1' />
  113. <motor name='right_shoulder2' gear='100' joint='right_shoulder2' />
  114. <motor name='right_elbow' gear='200' joint='right_elbow' />
  115. <motor name='left_shoulder1' gear='100' joint='left_shoulder1' />
  116. <motor name='left_shoulder2' gear='100' joint='left_shoulder2' />
  117. <motor name='left_elbow' gear='200' joint='left_elbow' />
  118. </actuator>
  119. </mujoco>