File size: 1,649 Bytes
2c55b92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
59
60
61
62
63
64
65
66
67
68
69

<mujoco>
  <extension>
    <plugin plugin="mujoco.sdf.torus">
      <instance name="torus">
        <config key="radius1" value="0.35"/>
        <config key="radius2" value="0.15"/>
      </instance>
    </plugin>
  </extension>

  <asset>
    <mesh name="torus">
      <plugin instance="torus"/>
    </mesh>
  </asset>

  <option sdf_iterations="10" sdf_initpoints="20"/>

  <include file="scene.xml"/>

  <default>
    <geom solref="0.01 1" solimp=".95 .99 .0001"/>
  </default>

  <worldbody>
    <body pos="0 0 .175">
      <freejoint/>
      <geom type="sdf" mesh="torus" rgba=".8 .2 .2 1">
        <plugin instance="torus"/>
      </geom>
    </body>
    <body pos=".1 .1 1.2">
      <freejoint/>
      <geom type="sdf" mesh="torus" rgba=".8 .2 .2 1">
        <plugin instance="torus"/>
      </geom>
    </body>
    <body pos=".1 .1 2.6">
      <freejoint/>
      <geom type="sdf" mesh="torus" rgba=".8 .2 .2 1">
        <plugin instance="torus"/>
      </geom>
    </body>
    <body pos="-.1 .2 2">
      <freejoint/>
      <geom type="sphere" size="0.3"/>
    </body>
    <body pos=".3 -.1 2" euler="0 0 45">
      <freejoint/>
      <geom type="ellipsoid" size=".4 .2 .2"/>
    </body>
    <body pos="-.1 .1 .5">
      <freejoint/>
      <geom type="capsule" size=".1" fromto="-.2 -.2 .1 .2 .2 .1"/>
    </body>
    <body pos=".2 -.2 .3">
      <freejoint/>
      <geom type="cylinder" size=".1" fromto="-.2 -.2 .1 .2 .2 .1"/>
    </body>
    <body pos=".1 .1 3.5">
      <freejoint/>
      <geom type="box" size=".2 .2 .2"/>
    </body>
    <light name="left" pos="0 0 1"/>
    <light name="right" pos="1 0 1"/>
  </worldbody>
</mujoco>