File: collisions.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 (36 lines) | stat: -rw-r--r-- 1,191 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
<mujoco model="collisions">
  <worldbody>
    <body name="box">
      <geom name="box" type="box" size="1 1 1"/>
    </body>
    <body pos="1.2 1.2 0.0">
      <!-- collides with box -->
      <joint/>
      <geom name="sphere_collides" type="sphere" size="1"/>
    </body>
    <body pos="-0.9 -0.9 0.0">
      <!-- collides with box, and is a predefined pair -->
      <joint/>
      <geom name="sphere_predefined" type="sphere"  size="0.1"/>
    </body>
    <body pos="1.8 -1.8 0.0" >
      <!-- doesn't collide with box, but requires narrowphase checking -->
      <joint/>
      <geom name="sphere_narrowphase" type="sphere" size="1"/>
    </body>
    <body pos="-2.1 -2.1 0.0">
      <!-- doesn't collide with box, and can be eliminated in broadphase -->
      <joint/>
      <geom name="sphere_broadphase" type="sphere" size="1"/>
    </body>
    <body name="sphere_excluded">
      <!-- collides with box, but is excluded -->
      <joint/>
      <geom name="sphere_excluded" type="sphere" pos="0.0 0.0 0.0" size="0.2"/>
    </body>
  </worldbody>
  <contact>
    <exclude body1="box" body2="sphere_excluded"/>
    <pair geom1="box" geom2="sphere_predefined"/>
  </contact>
</mujoco>