Add Genesis unit tests assets.
Browse files- connect.xml +53 -0
- weld.xml +70 -0
connect.xml
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<mujoco>
|
| 2 |
+
<!-- https://github.com/google-deepmind/mujoco/blob/main/test/engine/testdata/connect.xml -->
|
| 3 |
+
<option>
|
| 4 |
+
<flag contact="disable"/>
|
| 5 |
+
</option>
|
| 6 |
+
|
| 7 |
+
<default>
|
| 8 |
+
<default class="static">
|
| 9 |
+
<geom size=".5 .1 .5" rgba=".5 .7 .5 .3"/>
|
| 10 |
+
</default>
|
| 11 |
+
<default class="free">
|
| 12 |
+
<geom type="box" size=".2" fromto="0 0 0 0 -1 0" rgba=".4 .7 .6 .3"/>
|
| 13 |
+
</default>
|
| 14 |
+
</default>
|
| 15 |
+
|
| 16 |
+
<worldbody>
|
| 17 |
+
<geom pos="0 0 -2" type="plane" size="10 10 .01"/>
|
| 18 |
+
<light pos="0 0 20"/>
|
| 19 |
+
|
| 20 |
+
<body name="box1" pos="-3 0 0">
|
| 21 |
+
<geom type="box" class="static"/>
|
| 22 |
+
</body>
|
| 23 |
+
<body name="beam1" pos="-3 0 0">
|
| 24 |
+
<freejoint/>
|
| 25 |
+
<geom class="free"/>
|
| 26 |
+
</body>
|
| 27 |
+
|
| 28 |
+
<body name="box2" pos="-1 0 0">
|
| 29 |
+
<geom type="box" class="static"/>
|
| 30 |
+
</body>
|
| 31 |
+
<body name="beam2" pos="-1 0 0">
|
| 32 |
+
<freejoint/>
|
| 33 |
+
<geom class="free"/>
|
| 34 |
+
</body>
|
| 35 |
+
|
| 36 |
+
<body name="box3" pos="1 0 0">
|
| 37 |
+
<geom type="box" class="static"/>
|
| 38 |
+
<site name="box3" pos=".5 -.1 .5" type="box" size=".05 .05 .05"/>
|
| 39 |
+
</body>
|
| 40 |
+
<body name="beam3" pos="1 0 0">
|
| 41 |
+
<freejoint/>
|
| 42 |
+
<geom class="free"/>
|
| 43 |
+
<site name="beam3" pos=".2 -.1 .2" type="box" size=".05 .05 .05"/>
|
| 44 |
+
</body>
|
| 45 |
+
|
| 46 |
+
</worldbody>
|
| 47 |
+
|
| 48 |
+
<equality>
|
| 49 |
+
<connect body1="beam1" anchor="0 0 0"/>
|
| 50 |
+
<connect body1="box2" body2="beam2" anchor=".5 .1 .5"/>
|
| 51 |
+
<connect site1="box3" site2="beam3"/>
|
| 52 |
+
</equality>
|
| 53 |
+
</mujoco>
|
weld.xml
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<mujoco>
|
| 2 |
+
<!-- https://github.com/google-deepmind/mujoco/blob/main/test/engine/testdata/weld.xml -->
|
| 3 |
+
<option>
|
| 4 |
+
<flag contact="disable"/>
|
| 5 |
+
</option>
|
| 6 |
+
|
| 7 |
+
<default>
|
| 8 |
+
<default class="static">
|
| 9 |
+
<geom size=".5 .1 .5" rgba=".5 .7 .5 .3"/>
|
| 10 |
+
</default>
|
| 11 |
+
<default class="free">
|
| 12 |
+
<geom type="box" size=".2" fromto="0 0 0 0 -2 0" rgba=".4 .7 .6 .3"/>
|
| 13 |
+
</default>
|
| 14 |
+
</default>
|
| 15 |
+
|
| 16 |
+
<worldbody>
|
| 17 |
+
<geom pos="0 0 -2" type="plane" size="10 10 .01"/>
|
| 18 |
+
<light pos="0 0 20"/>
|
| 19 |
+
|
| 20 |
+
<body name="box1" pos="-3 0 0">
|
| 21 |
+
<geom type="box" class="static"/>
|
| 22 |
+
</body>
|
| 23 |
+
<body name="beam1" pos="-3 0 0">
|
| 24 |
+
<freejoint/>
|
| 25 |
+
<geom class="free"/>
|
| 26 |
+
</body>
|
| 27 |
+
|
| 28 |
+
<body name="box2" pos="-1 0 0">
|
| 29 |
+
<geom type="box" class="static"/>
|
| 30 |
+
</body>
|
| 31 |
+
<body name="beam2" pos="-1 0 0">
|
| 32 |
+
<freejoint/>
|
| 33 |
+
<geom class="free"/>
|
| 34 |
+
</body>
|
| 35 |
+
|
| 36 |
+
<body name="box3" pos="1 0 0">
|
| 37 |
+
<geom type="box" class="static"/>
|
| 38 |
+
</body>
|
| 39 |
+
<body name="beam3" pos="1 0 0">
|
| 40 |
+
<freejoint/>
|
| 41 |
+
<geom class="free"/>
|
| 42 |
+
</body>
|
| 43 |
+
|
| 44 |
+
<body name="box4" pos="3 0 0">
|
| 45 |
+
<geom type="box" class="static"/>
|
| 46 |
+
</body>
|
| 47 |
+
<body name="beam4" pos="3 0 0">
|
| 48 |
+
<freejoint/>
|
| 49 |
+
<geom class="free"/>
|
| 50 |
+
</body>
|
| 51 |
+
|
| 52 |
+
<body name="box5" pos="5 0 0">
|
| 53 |
+
<geom type="box" class="static"/>
|
| 54 |
+
<site name="box5"/>
|
| 55 |
+
</body>
|
| 56 |
+
<body name="beam5" pos="5 0 0">
|
| 57 |
+
<freejoint/>
|
| 58 |
+
<geom class="free"/>
|
| 59 |
+
<site name="beam5" pos="0 -1 0" euler="45 20 5"/>
|
| 60 |
+
</body>
|
| 61 |
+
</worldbody>
|
| 62 |
+
|
| 63 |
+
<equality>
|
| 64 |
+
<weld name="weak torques" body1="box1" body2="beam1" torquescale="0.002"/>
|
| 65 |
+
<weld name="anchor no torques" body1="box2" body2="beam2" torquescale="0" anchor="0 -2 0"/>
|
| 66 |
+
<weld name="relpose" body1="box3" body2="beam3" relpose="0 0 0 1 -.3 0 0"/>
|
| 67 |
+
<weld name="relpose+anchor" body1="box4" body2="beam4" relpose="0 0 0 1 -.3 0 0" anchor="0 0 -1"/>
|
| 68 |
+
<weld name="site" site1="box5" site2="beam5"/>
|
| 69 |
+
</equality>
|
| 70 |
+
</mujoco>
|