File: weld.xml

package info (click to toggle)
mujoco 2.2.2-3.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,796 kB
  • sloc: ansic: 28,947; cpp: 28,897; cs: 14,241; python: 10,465; xml: 5,104; sh: 93; makefile: 34
file content (58 lines) | stat: -rw-r--r-- 1,556 bytes parent folder | download | duplicates (2)
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
48
49
50
51
52
53
54
55
56
57
58
<mujoco>
  <option>
    <flag contact="disable"/>
  </option>

  <default>
    <default class="static">
      <geom size=".5 .1 .5" rgba=".5 .7 .5 .3"/>
    </default>
    <default class="free">
      <geom type="box" size=".2" fromto="0 0 0 0 -2 0" rgba=".4 .7 .6 .3"/>
    </default>
  </default>

  <worldbody>
    <geom pos="0 0 -2" type="plane" size="10 10 .01"/>
    <light pos="0 0 20"/>

    <body name="box1" pos="-3 0 0">
      <geom type="box" class="static"/>
    </body>
    <body name="beam1" pos="-3 0 0">
      <freejoint/>
      <geom class="free"/>
    </body>

    <body name="box2" pos="-1 0 0">
      <geom type="box" class="static"/>
    </body>
    <body name="beam2" pos="-1 0 0">
      <freejoint/>
      <geom class="free"/>
    </body>

    <body name="box3" pos="1 0 0">
      <geom type="box" class="static"/>
    </body>
    <body name="beam3" pos="1 0 0">
      <freejoint/>
      <geom class="free"/>
    </body>

    <body name="box4" pos="3 0 0">
      <geom type="box" class="static"/>
    </body>
    <body name="beam4" pos="3 0 0">
      <freejoint/>
      <geom class="free"/>
    </body>
  </worldbody>

  <equality>
    <weld name="weak torques"      body1="box1" body2="beam1" torquescale="0.002"/>
    <weld name="anchor no torques" body1="box2" body2="beam2" torquescale="0" anchor="0 -2 0"/>
    <weld name="relpose"           body1="box3" body2="beam3" relpose="0 0 0 1 -.3 0 0"/>
    <weld name="relpose+anchor"    body1="box4" body2="beam4" relpose="0 0 0 1 -.3 0 0" anchor="0 0 -1"/>
  </equality>
</mujoco>