arm26.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <!-- Copyright 2021 DeepMind Technologies Limited
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.
  11. -->
  12. <mujoco model="2-link 6-muscle arm">
  13. <option timestep="0.005" iterations="50" solver="Newton" tolerance="1e-10"/>
  14. <visual>
  15. <rgba haze=".3 .3 .3 1"/>
  16. </visual>
  17. <default>
  18. <joint type="hinge" pos="0 0 0" axis="0 0 1" limited="true" range="0 120" damping="0.1"/>
  19. <muscle ctrllimited="true" ctrlrange="0 1"/>
  20. </default>
  21. <asset>
  22. <texture type="skybox" builtin="gradient" rgb1="0.6 0.6 0.6" rgb2="0 0 0" width="512" height="512"/>
  23. <texture name="texplane" type="2d" builtin="checker" rgb1=".25 .25 .25" rgb2=".3 .3 .3" width="512" height="512" mark="cross" markrgb=".8 .8 .8"/>
  24. <material name="matplane" reflectance="0.3" texture="texplane" texrepeat="1 1" texuniform="true"/>
  25. </asset>
  26. <worldbody>
  27. <geom name="floor" pos="0 0 -0.5" size="0 0 1" type="plane" material="matplane"/>
  28. <light directional="true" diffuse=".8 .8 .8" specular=".2 .2 .2" pos="0 0 5" dir="0 0 -1"/>
  29. <site name="s0" pos="-0.15 0 0" size="0.02"/>
  30. <site name="x0" pos="0 -0.15 0" size="0.02" rgba="0 .7 0 1" group="1"/>
  31. <body pos="0 0 0">
  32. <geom name="upper arm" type="capsule" size="0.045" fromto="0 0 0 0.5 0 0" rgba=".5 .1 .1 1"/>
  33. <joint name="shoulder"/>
  34. <geom name="shoulder" type="cylinder" pos="0 0 0" size=".1 .05" rgba=".5 .1 .8 .5" mass="0" group="1"/>
  35. <site name="s1" pos="0.15 0.06 0" size="0.02"/>
  36. <site name="s2" pos="0.15 -0.06 0" size="0.02"/>
  37. <site name="s3" pos="0.4 0.06 0" size="0.02"/>
  38. <site name="s4" pos="0.4 -0.06 0" size="0.02"/>
  39. <site name="s5" pos="0.25 0.1 0" size="0.02"/>
  40. <site name="s6" pos="0.25 -0.1 0" size="0.02"/>
  41. <site name="x1" pos="0.5 -0.15 0" size="0.02" rgba="0 .7 0 1" group="1"/>
  42. <body pos="0.5 0 0">
  43. <geom name="forearm" type="capsule" size="0.035" fromto="0 0 0 0.5 0 0" rgba=".5 .1 .1 1"/>
  44. <joint name="elbow"/>
  45. <geom name="elbow" type="cylinder" pos="0 0 0" size=".08 .05" rgba=".5 .1 .8 .5" mass="0" group="1"/>
  46. <site name="s7" pos="0.11 0.05 0" size="0.02"/>
  47. <site name="s8" pos="0.11 -0.05 0" size="0.02"/>
  48. </body>
  49. </body>
  50. </worldbody>
  51. <tendon>
  52. <spatial name="SF" width="0.01">
  53. <site site="s0"/>
  54. <geom geom="shoulder"/>
  55. <site site="s1"/>
  56. </spatial>
  57. <spatial name="SE" width="0.01">
  58. <site site="s0"/>
  59. <geom geom="shoulder" sidesite="x0"/>
  60. <site site="s2"/>
  61. </spatial>
  62. <spatial name="EF" width="0.01">
  63. <site site="s3"/>
  64. <geom geom="elbow"/>
  65. <site site="s7"/>
  66. </spatial>
  67. <spatial name="EE" width="0.01">
  68. <site site="s4"/>
  69. <geom geom="elbow" sidesite="x1"/>
  70. <site site="s8"/>
  71. </spatial>
  72. <spatial name="BF" width="0.009" rgba=".4 .6 .4 1">
  73. <site site="s0"/>
  74. <geom geom="shoulder"/>
  75. <site site="s5"/>
  76. <geom geom="elbow"/>
  77. <site site="s7"/>
  78. </spatial>
  79. <spatial name="BE" width="0.009" rgba=".4 .6 .4 1">
  80. <site site="s0"/>
  81. <geom geom="shoulder" sidesite="x0"/>
  82. <site site="s6"/>
  83. <geom geom="elbow" sidesite="x1"/>
  84. <site site="s8"/>
  85. </spatial>
  86. </tendon>
  87. <actuator>
  88. <muscle name="SF" tendon="SF"/>
  89. <muscle name="SE" tendon="SE"/>
  90. <muscle name="EF" tendon="EF"/>
  91. <muscle name="EE" tendon="EE"/>
  92. <muscle name="BF" tendon="BF"/>
  93. <muscle name="BE" tendon="BE"/>
  94. </actuator>
  95. </mujoco>