[20044c]: / basic / myomuscle.xml

Download this file

47 lines (37 with data), 1.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<mujoco model="tendon-finger">
<!-- =================================================
Copyright 2020 Vikash Kumar
Model :: myomuscle (MuJoCoV2.0)
Author :: Vikash Kumar (vikashplus@gmail.com)
source :: https://github.com/vikashplus
License :: Under Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
====================================================== -->
<default>
<geom rgba=".9 .8 .6 1" size="0.01"/>
<site type="sphere" rgba=".9 .9 .9 1" size="0.005"/>
<default class="muscle">
<muscle timeconst="0.01 0.04" range="0.75 1.05" scale="25" lmin="0.5" lmax="1.6" vmax="1.5" fpmax="1.3" fvmax="1.2"/>
</default>
</default>
<visual>
<headlight diffuse=".9 .9 .9"/>
</visual>
<worldbody>
<geom type="plane" size="1 1 1" rgba=".2 .3 .2 1" pos="0 0 0"/>
<site name="hook" pos="0 0 .200" type="box" size=".01 .01 .001"/>
<body name="load" pos="0 0 .100">
<geom type="sphere" size="0.01" mass="1" pos="0 0 0"/>
<site name="load"/>
<joint type="slide" axis="0 0 1" damping="0.01"/>
</body>
</worldbody>
<tendon>
<spatial name="tendon" width="0.002" rgba=".95 .3 .3 1" limited="true" range="0.075 0.105">
<site site="hook"/>
<site site="load"/>
</spatial>
</tendon>
<actuator>
<muscle name="muscle" tendon="tendon" ctrllimited="true" ctrlrange="0 1" class="muscle"/>
</actuator>
</mujoco>