Skip to content

Commit 37a5a51

Browse files
Kenny-Vilellahartikainenthowell
authored
Add a benchmark scene with multiple rigid objects (#798)
* Add benchmark scenes with rigid objects * Fix indentation * Add more primitive geoms * Move the stack of objects closer to the side * attach * attach last --------- Co-authored-by: Kristian Hartikainen <[email protected]> Co-authored-by: Taylor Howell <[email protected]>
1 parent 467e319 commit 37a5a51

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<mujoco model="apptronik_apollo scene objects">
2+
3+
<visual>
4+
<map znear="0.01" zfar="200" />
5+
<quality shadowsize="8192" />
6+
<headlight diffuse=".8 .8 .8" ambient=".2 .2 .2" specular="1 1 1" />
7+
<global azimuth="140" elevation="-20" />
8+
</visual>
9+
10+
<asset>
11+
<texture type="skybox" builtin="gradient" rgb1="1 1 1" rgb2="1 1 1" width="800" height="800" />
12+
<texture name="grid" type="2d" builtin="checker" width="512" height="512" rgb1=".1 .2 .3" rgb2=".2 .3 .4"/>
13+
<material name="grid" texture="grid" texrepeat="1 1" texuniform="true" reflectance=".2"/>
14+
<model name="apptronik_apollo" file="apptronik_apollo.xml"/>
15+
</asset>
16+
17+
<worldbody>
18+
<geom name="floor" size="0 0 .05" type="plane" material="grid" contype="1" conaffinity="1"/>
19+
<light pos="0 0 3" dir="0 0 -1" directional="true" />
20+
21+
<geom name="table" pos="0.8 0.0 0.5" type="box" size="0.5 1.0 0.01" quat="1.0 0.0 0.0 0.0" contype="1" conaffinity="1"/>
22+
<!-- Walls of the container box -->
23+
<geom name="box back wall" pos="0.9 0.0 0.61" type="box" size="0.01 0.21 0.1" contype="1" conaffinity="1"/>
24+
<geom name="box front wall" pos="0.5 0.0 0.61" type="box" size="0.01 0.21 0.1" contype="1" conaffinity="1"/>
25+
<geom name="box left wall" pos="0.7 -0.2 0.61" type="box" size="0.21 0.01 0.1" contype="1" conaffinity="1"/>
26+
<geom name="box right wall" pos="0.7 0.2 0.61" type="box" size="0.21 0.01 0.1" contype="1" conaffinity="1"/>
27+
28+
<!-- 4 spheres -->
29+
<replicate count="4" offset="0.075 0.075 0">
30+
<body name="sphere" pos="0.6 -0.1 0.81">
31+
<freejoint name="sphere"/>
32+
<geom name="geom_sphere" type="sphere" size="0.05" contype="1" conaffinity="1" rgba="1 0 0 1"/>
33+
</body>
34+
</replicate>
35+
36+
<!-- 2 capsules -->
37+
<replicate count="2" offset="0.2 0 0">
38+
<body name="capsule" pos="0.6 -0.15 0.91" quat="1 0.5 0 0">
39+
<freejoint name="capsule"/>
40+
<geom name="geom_capsule" type="capsule" size="0.04 0.04" contype="1" conaffinity="1" rgba="0 1 0 1"/>
41+
</body>
42+
</replicate>
43+
44+
<!-- 4 ellipsoids -->
45+
<replicate count="4" offset="0 0.1 0">
46+
<body name="ellipsoid" pos="0.7 -0.15 1.16">
47+
<freejoint name="ellipsoid"/>
48+
<geom name="geom_ellipsoid" type="ellipsoid" size="0.05 0.04 0.03" contype="1" conaffinity="1" rgba="0 0 1 1"/>
49+
</body>
50+
</replicate>
51+
52+
<!-- 2 cylinders -->
53+
<replicate count="2" offset="0.3 0 0" euler="0 0 15">
54+
<body name="cylinder" pos="0.55 0 0.95" quat="0 0.5 0 1">
55+
<freejoint name="cylinder"/>
56+
<geom name="geom_cylinder" type="cylinder" size="0.04 0.04" contype="1" conaffinity="1" rgba="1 1 0 1"/>
57+
</body>
58+
</replicate>
59+
60+
<!-- Two stacks of 3 boxes -->
61+
<replicate count="3" offset="0 0 0.06">
62+
<body name="box1" pos="0.65 0 0.94">
63+
<freejoint name="joint1"/>
64+
<geom name="geom1" type="box" size="0.03 0.03 0.03" contype="1" conaffinity="1" rgba="0 1 1 1"/>
65+
</body>
66+
</replicate>
67+
<replicate count="3" offset="0 0 0.06">
68+
<body name="box2" pos="0.75 0 0.94">
69+
<freejoint name="joint2"/>
70+
<geom name="geom2" type="box" size="0.03 0.03 0.03" contype="1" conaffinity="1" rgba="0 1 1 1"/>
71+
</body>
72+
</replicate>
73+
74+
<!-- attach Apptronik Apollo -->
75+
<attach model="apptronik_apollo" body="base_link" prefix="_"/>
76+
</worldbody>
77+
</mujoco>

0 commit comments

Comments
 (0)