BEGIN_PUBLIC

Replaced "shark" test models with lighter models to speed up tests.
END_PUBLIC.

- procedurally generated light cube
- replaced shark GMSH with cube for all tests with extension GMSH
- Reduced size of shark model used for tests with extension Ftetwild

PiperOrigin-RevId: 631776421
Change-Id: I66f6b4058b86338a10d06c39bc93bef1c6fbdab6
This commit is contained in:
Mohammad Hamid
2024-05-08 06:14:13 -07:00
committed by Copybara-Service
parent 13bf9ae6bd
commit d6bc8c7781
44 changed files with 3318 additions and 37174 deletions
+2 -6
View File
@@ -34,12 +34,8 @@ test_model() {
fi
if [[ "$model" == */benchmark/testdata/humanoid200.xml ||
"$model" == */engine/testdata/collision_convex/stacked_boxes.xml ||
"$model" == */user/testdata/shark_41_ascii_gmshApp.xml ||
"$model" == */user/testdata/shark_22_ascii_fTetWild.xml ||
"$model" == */user/testdata/shark_22_ascii_gmshApp.xml ||
"$model" == */user/testdata/shark_22_binary_fTetWild.xml ||
"$model" == */user/testdata/shark_41_binary_gmshApp.xml ||
"$model" == */user/testdata/shark_22_binary_gmshApp.xml
"$model" == */user/testdata/shark_22_binary_fTetWild.xml
]]; then
iterations=2
fi
@@ -74,7 +70,7 @@ for model_dir in ${MODEL_DIRS[@]}; do
echo "Skipping $model" >&2
continue
fi
if [[ $(basename $model) == shark* ]]; then
if [[ $(basename $model) == malformed* ]]; then
echo "Skipping $model" >&2
continue
fi
+47
View File
@@ -0,0 +1,47 @@
$MeshFormat
2.2 0 8
$EndMeshFormat
$Nodes
14
1 -0.5 -0.5 0
2 0.5 -0.5 0
3 0.5 0.5 0
4 -0.5 0.5 0
5 -0.5 -0.5 1
6 0.5 -0.5 1
7 0.5 0.5 1
8 -0.5 0.5 1
9 0 0 0
10 0 -0.5 0.5
11 0.5 0 0.5
12 0 0.5 0.5
13 -0.5 0 0.5
14 0 0 1
$EndNodes
$Elements
24
1 4 2 0 1 10 9 12 11
2 4 2 0 1 10 12 13 14
3 4 2 0 1 9 10 12 13
4 4 2 0 1 10 12 14 11
5 4 2 0 1 9 10 1 2
6 4 2 0 1 7 11 12 3
7 4 2 0 1 4 1 9 13
8 4 2 0 1 13 12 4 8
9 4 2 0 1 1 10 13 5
10 4 2 0 1 13 8 5 14
11 4 2 0 1 12 8 14 7
12 4 2 0 1 14 5 10 6
13 4 2 0 1 14 6 11 7
14 4 2 0 1 9 4 12 3
15 4 2 0 1 3 11 9 2
16 4 2 0 1 11 6 10 2
17 4 2 0 1 6 10 14 11
18 4 2 0 1 1 10 9 13
19 4 2 0 1 12 4 9 13
20 4 2 0 1 5 10 13 14
21 4 2 0 1 8 13 12 14
22 4 2 0 1 12 14 11 7
23 4 2 0 1 9 12 11 3
24 4 2 0 1 10 9 11 2
$EndElements
@@ -18,7 +18,8 @@
<worldbody>
<geom name="floor" size="1 1 .05" type="plane" material="grid" condim="3"/>
<light directional="false" diffuse=".2 .2 .2" specular="0 0 0" pos="0 0 5" dir="0 0 -1"/>
<flexcomp name="shark" type="gmsh" dim="3" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 0.3" mass="10" scale="1 1 1" file="shark_22_binary_gmshApp.msh">
<flexcomp name="cube" type="gmsh" dim="3" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 0.3"
mass="10" scale="1 1 1" file="cube_22_ascii_vol_gmshApp.msh">
<edge equality="true"/>
</flexcomp>
</worldbody>
Binary file not shown.
@@ -18,7 +18,8 @@
<worldbody>
<geom name="floor" size="1 1 .05" type="plane" material="grid" condim="3"/>
<light directional="false" diffuse=".2 .2 .2" specular="0 0 0" pos="0 0 5" dir="0 0 -1"/>
<flexcomp name="shark" type="gmsh" dim="3" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 0.3" mass="10" scale="1 1 1" file="shark_22_ascii_gmshApp.msh">
<flexcomp name="shark" type="gmsh" dim="3" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 0.3"
mass="10" scale="1 1 1" file="cube_22_binary_vol_gmshApp.msh">
<edge equality="true"/>
</flexcomp>
</worldbody>
+67
View File
@@ -0,0 +1,67 @@
$MeshFormat
4.1 0 8
$EndMeshFormat
$Entities
0 0 0 1
1 -0.5 -0.5 0 0.5 0.5 1 0 0
$EndEntities
$Nodes
1 14 1 14
3 1 0 14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-0.5 -0.5 0
0.5 -0.5 0
0.5 0.5 0
-0.5 0.5 0
-0.5 -0.5 1
0.5 -0.5 1
0.5 0.5 1
-0.5 0.5 1
0 0 0
0 -0.5 0.5
0.5 0 0.5
0 0.5 0.5
-0.5 0 0.5
0 0 1
$EndNodes
$Elements
1 24 1 24
3 1 4 24
1 10 9 12 11
2 10 12 13 14
3 9 10 12 13
4 10 12 14 11
5 9 10 1 2
6 7 11 12 3
7 4 1 9 13
8 13 12 4 8
9 1 10 13 5
10 13 8 5 14
11 12 8 14 7
12 14 5 10 6
13 14 6 11 7
14 9 4 12 3
15 3 11 9 2
16 11 6 10 2
17 6 10 14 11
18 1 10 9 13
19 12 4 9 13
20 5 10 13 14
21 8 13 12 14
22 12 14 11 7
23 9 12 11 3
24 10 9 11 2
$EndElements
@@ -18,7 +18,8 @@
<worldbody>
<geom name="floor" size="20 20 .05" type="plane" material="grid" condim="3"/>
<light directional="false" diffuse=".2 .2 .2" specular="0 0 0" pos="0 0 5" dir="0 0 -1"/>
<flexcomp name="shark" type="gmsh" dim="3" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4" mass="10" scale="1 1 1" file="shark_41_ascii_gmshApp.msh">
<flexcomp name="shark" type="gmsh" dim="3" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4"
mass="10" scale="1 1 1" file="cube_41_ascii_vol_gmshApp.msh">
<edge equality="true"/>
</flexcomp>
</worldbody>
Binary file not shown.
@@ -18,7 +18,8 @@
<worldbody>
<geom name="floor" size="20 20 .05" type="plane" material="grid" condim="3"/>
<light directional="false" diffuse=".2 .2 .2" specular="0 0 0" pos="0 0 5" dir="0 0 -1"/>
<flexcomp name="shark" type="gmsh" dim="3" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4" mass="10" scale="1 1 1" file="shark_41_binary_gmshApp.msh">
<flexcomp name="shark" type="gmsh" dim="3" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4"
mass="10" scale="1 1 1" file="cube_41_binary_vol_gmshApp.msh">
<edge equality="true"/>
</flexcomp>
</worldbody>
@@ -0,0 +1,46 @@
$MeshFormat
2.2 0 8
$EndMeshFormat
$Nodes
14
1 -0.5 -0.5 0
2 0.5 -0.5 0
3 0.5 0.5 0
4 -0.5 0.5 0
5 -0.5 -0.5 1
6 0.5 -0.5 1
7 0.5 0.5 1
8 -0.5 0.5 1
9 0 0 0
10 0 -0.5 0.5
11 0.5 0 0.5
12 0 0.5 0.5
13 -0.5 0 0.5
14 0 0 1
$EndNodes
$Elements
24
2 4 2 0 1 10 12 13 14
3 4 2 0 1 9 10 12 13
4 4 2 0 1 10 12 14 11
5 4 2 0 1 9 10 1 2
6 4 2 0 1 7 11 12 3
7 4 2 0 1 4 1 9 13
8 4 2 0 1 13 12 4 8
9 4 2 0 1 1 10 13 5
10 4 2 0 1 13 8 5 14
11 4 2 0 1 12 8 14 7
12 4 2 0 1 14 5 10 6
13 4 2 0 1 14 6 11 7
14 4 2 0 1 9 4 12 3
15 4 2 0 1 3 11 9 2
16 4 2 0 1 11 6 10 2
17 4 2 0 1 6 10 14 11
18 4 2 0 1 1 10 9 13
19 4 2 0 1 12 4 9 13
20 4 2 0 1 5 10 13 14
21 4 2 0 1 8 13 12 14
22 4 2 0 1 12 14 11 7
23 4 2 0 1 9 12 11 3
24 4 2 0 1 10 9 11 2
$EndElements
@@ -18,7 +18,8 @@
<worldbody>
<geom name="floor" size="20 20 .05" type="plane" material="grid" condim="3"/>
<light directional="false" diffuse=".2 .2 .2" specular="0 0 0" pos="0 0 5" dir="0 0 -1"/>
<flexcomp name="shark" type="gmsh" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4" mass="10" scale="1 1 1" file="shark_22_ascii_missing_element.msh">
<flexcomp name="cube" type="gmsh" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4" mass="10"
scale="1 1 1" file="malformed_cube_22_ascii_missing_element.msh">
<edge equality="true"/>
</flexcomp>
</worldbody>
@@ -0,0 +1,46 @@
$MeshFormat
2.2 0 8
$EndMeshFormat
$Nodes
14
2 0.5 -0.5 0
3 0.5 0.5 0
4 -0.5 0.5 0
5 -0.5 -0.5 1
6 0.5 -0.5 1
7 0.5 0.5 1
8 -0.5 0.5 1
9 0 0 0
10 0 -0.5 0.5
11 0.5 0 0.5
12 0 0.5 0.5
13 -0.5 0 0.5
14 0 0 1
$EndNodes
$Elements
24
1 4 2 0 1 10 9 12 11
2 4 2 0 1 10 12 13 14
3 4 2 0 1 9 10 12 13
4 4 2 0 1 10 12 14 11
5 4 2 0 1 9 10 1 2
6 4 2 0 1 7 11 12 3
7 4 2 0 1 4 1 9 13
8 4 2 0 1 13 12 4 8
9 4 2 0 1 1 10 13 5
10 4 2 0 1 13 8 5 14
11 4 2 0 1 12 8 14 7
12 4 2 0 1 14 5 10 6
13 4 2 0 1 14 6 11 7
14 4 2 0 1 9 4 12 3
15 4 2 0 1 3 11 9 2
16 4 2 0 1 11 6 10 2
17 4 2 0 1 6 10 14 11
18 4 2 0 1 1 10 9 13
19 4 2 0 1 12 4 9 13
20 4 2 0 1 5 10 13 14
21 4 2 0 1 8 13 12 14
22 4 2 0 1 12 14 11 7
23 4 2 0 1 9 12 11 3
24 4 2 0 1 10 9 11 2
$EndElements
@@ -19,8 +19,8 @@
<worldbody>
<geom name="floor" size="20 20 .05" type="plane" material="grid" condim="3" />
<light directional="false" diffuse=".2 .2 .2" specular="0 0 0" pos="0 0 5" dir="0 0 -1" />
<flexcomp name="shark binary 2.2" type="gmsh" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4"
mass="10" scale="1 1 1" file="shark_41_ascii_missing_element.msh">
<flexcomp name="cube" type="gmsh" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4" mass="10"
scale="1 1 1" file="malformed_cube_22_ascii_missing_node.msh">
<edge equality="true" />
</flexcomp>
</worldbody>
@@ -0,0 +1,46 @@
$MeshFormat
2.2 0 8
$EndMeshFormat
$Nodes
14
1 -0.5 -0.5 0
2 0.5 -0.5 0
3 0.5 0.5 0
4 -0.5 0.5 0
5 -0.5 -0.5 1
6 0.5 -0.5 1
7 0.5 0.5 1
8 -0.5 0.5 1
9 0 0 0
10 0 -0.5 0.5
11 0.5 0 0.5
12 0 0.5 0.5
13 -0.5 0 0.5
14 0 0 1
$EndNodes
$Elements
1 4 2 0 1 10 9 12 11
2 4 2 0 1 10 12 13 14
3 4 2 0 1 9 10 12 13
4 4 2 0 1 10 12 14 11
5 4 2 0 1 9 10 1 2
6 4 2 0 1 7 11 12 3
7 4 2 0 1 4 1 9 13
8 4 2 0 1 13 12 4 8
9 4 2 0 1 1 10 13 5
10 4 2 0 1 13 8 5 14
11 4 2 0 1 12 8 14 7
12 4 2 0 1 14 5 10 6
13 4 2 0 1 14 6 11 7
14 4 2 0 1 9 4 12 3
15 4 2 0 1 3 11 9 2
16 4 2 0 1 11 6 10 2
17 4 2 0 1 6 10 14 11
18 4 2 0 1 1 10 9 13
19 4 2 0 1 12 4 9 13
20 4 2 0 1 5 10 13 14
21 4 2 0 1 8 13 12 14
22 4 2 0 1 12 14 11 7
23 4 2 0 1 9 12 11 3
24 4 2 0 1 10 9 11 2
$EndElements
@@ -0,0 +1,27 @@
<mujoco model="gmsh">
<option timestep="0.01" integrator="implicitfast" solver="CG" />
<asset>
<texture type="skybox" builtin="gradient" rgb1=".3 .5 .7" rgb2="0 0 0" width="512" height="512" />
<texture name="grid" type="2d" builtin="checker" width="512" height="512" rgb1=".1 .2 .3"
rgb2=".2 .3 .4" />
<material name="grid" texture="grid" texrepeat="1 1" texuniform="true" reflectance=".2" />
</asset>
<visual>
<headlight diffuse="0.9 0.9 0.9" ambient="0.3 0.3 0.3" specular="0 0 0" />
<map force="0.1" zfar="30" />
<rgba haze="0.15 0.25 0.35 1" />
<quality shadowsize="4096" />
<global offwidth="800" offheight="800" />
</visual>
<worldbody>
<geom name="floor" size="20 20 .05" type="plane" material="grid" condim="3" />
<light directional="false" diffuse=".2 .2 .2" specular="0 0 0" pos="0 0 5" dir="0 0 -1" />
<flexcomp name="cube" type="gmsh" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4" mass="10"
scale="1 1 1" file="malformed_cube_22_ascii_missing_num_elements.msh">
<edge equality="true" />
</flexcomp>
</worldbody>
</mujoco>
@@ -0,0 +1,46 @@
$MeshFormat
2.2 0 8
$EndMeshFormat
$Nodes
1 -0.5 -0.5 0
2 0.5 -0.5 0
3 0.5 0.5 0
4 -0.5 0.5 0
5 -0.5 -0.5 1
6 0.5 -0.5 1
7 0.5 0.5 1
8 -0.5 0.5 1
9 0 0 0
10 0 -0.5 0.5
11 0.5 0 0.5
12 0 0.5 0.5
13 -0.5 0 0.5
14 0 0 1
$EndNodes
$Elements
24
1 4 2 0 1 10 9 12 11
2 4 2 0 1 10 12 13 14
3 4 2 0 1 9 10 12 13
4 4 2 0 1 10 12 14 11
5 4 2 0 1 9 10 1 2
6 4 2 0 1 7 11 12 3
7 4 2 0 1 4 1 9 13
8 4 2 0 1 13 12 4 8
9 4 2 0 1 1 10 13 5
10 4 2 0 1 13 8 5 14
11 4 2 0 1 12 8 14 7
12 4 2 0 1 14 5 10 6
13 4 2 0 1 14 6 11 7
14 4 2 0 1 9 4 12 3
15 4 2 0 1 3 11 9 2
16 4 2 0 1 11 6 10 2
17 4 2 0 1 6 10 14 11
18 4 2 0 1 1 10 9 13
19 4 2 0 1 12 4 9 13
20 4 2 0 1 5 10 13 14
21 4 2 0 1 8 13 12 14
22 4 2 0 1 12 14 11 7
23 4 2 0 1 9 12 11 3
24 4 2 0 1 10 9 11 2
$EndElements
@@ -0,0 +1,27 @@
<mujoco model="gmsh">
<option timestep="0.01" integrator="implicitfast" solver="CG" />
<asset>
<texture type="skybox" builtin="gradient" rgb1=".3 .5 .7" rgb2="0 0 0" width="512" height="512" />
<texture name="grid" type="2d" builtin="checker" width="512" height="512" rgb1=".1 .2 .3"
rgb2=".2 .3 .4" />
<material name="grid" texture="grid" texrepeat="1 1" texuniform="true" reflectance=".2" />
</asset>
<visual>
<headlight diffuse="0.9 0.9 0.9" ambient="0.3 0.3 0.3" specular="0 0 0" />
<map force="0.1" zfar="30" />
<rgba haze="0.15 0.25 0.35 1" />
<quality shadowsize="4096" />
<global offwidth="800" offheight="800" />
</visual>
<worldbody>
<geom name="floor" size="20 20 .05" type="plane" material="grid" condim="3" />
<light directional="false" diffuse=".2 .2 .2" specular="0 0 0" pos="0 0 5" dir="0 0 -1" />
<flexcomp name="cube" type="gmsh" dim="3" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4" mass="10"
scale="1 1 1" file="malformed_cube_22_ascii_missing_num_nodes.msh">
<edge equality="true" />
</flexcomp>
</worldbody>
</mujoco>
@@ -0,0 +1,66 @@
$MeshFormat
4.1 0 8
$EndMeshFormat
$Entities
0 0 0 1
1 -0.5 -0.5 0 0.5 0.5 1 0 0
$EndEntities
$Nodes
1 14 1 14
3 1 0 14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-0.5 -0.5 0
0.5 -0.5 0
0.5 0.5 0
-0.5 0.5 0
-0.5 -0.5 1
0.5 -0.5 1
0.5 0.5 1
-0.5 0.5 1
0 0 0
0 -0.5 0.5
0.5 0 0.5
0 0.5 0.5
-0.5 0 0.5
0 0 1
$EndNodes
$Elements
1 24 1 24
3 1 4 24
2 10 12 13 14
3 9 10 12 13
4 10 12 14 11
5 9 10 1 2
6 7 11 12 3
7 4 1 9 13
8 13 12 4 8
9 1 10 13 5
10 13 8 5 14
11 12 8 14 7
12 14 5 10 6
13 14 6 11 7
14 9 4 12 3
15 3 11 9 2
16 11 6 10 2
17 6 10 14 11
18 1 10 9 13
19 12 4 9 13
20 5 10 13 14
21 8 13 12 14
22 12 14 11 7
23 9 12 11 3
24 10 9 11 2
$EndElements
@@ -19,8 +19,8 @@
<worldbody>
<geom name="floor" size="20 20 .05" type="plane" material="grid" condim="3" />
<light directional="false" diffuse=".2 .2 .2" specular="0 0 0" pos="0 0 5" dir="0 0 -1" />
<flexcomp name="shark" type="gmsh" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4" mass="10"
scale="1 1 1" file="shark_22_ascii_missing_node.msh">
<flexcomp name="cube" type="gmsh" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4"
mass="10" scale="1 1 1" file="malformed_cube_41_ascii_missing_element.msh">
<edge equality="true" />
</flexcomp>
</worldbody>
@@ -0,0 +1,65 @@
$MeshFormat
4.1 0 8
$EndMeshFormat
$Entities
0 0 0 1
1 -0.5 -0.5 0 0.5 0.5 1 0 0
$EndEntities
$Nodes
1 14 1 14
3 1 0 14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-0.5 -0.5 0
0.5 -0.5 0
0.5 0.5 0
-0.5 0.5 0
-0.5 -0.5 1
0.5 -0.5 1
0.5 0.5 1
-0.5 0.5 1
0 0 0
0 -0.5 0.5
0.5 0 0.5
0 0.5 0.5
-0.5 0 0.5
0 0 1
$EndNodes
$Elements
1 10 9 12 11
2 10 12 13 14
3 9 10 12 13
4 10 12 14 11
5 9 10 1 2
6 7 11 12 3
7 4 1 9 13
8 13 12 4 8
9 1 10 13 5
10 13 8 5 14
11 12 8 14 7
12 14 5 10 6
13 14 6 11 7
14 9 4 12 3
15 3 11 9 2
16 11 6 10 2
17 6 10 14 11
18 1 10 9 13
19 12 4 9 13
20 5 10 13 14
21 8 13 12 14
22 12 14 11 7
23 9 12 11 3
24 10 9 11 2
$EndElements
@@ -0,0 +1,27 @@
<mujoco model="gmsh">
<option timestep="0.01" integrator="implicitfast" solver="CG" />
<asset>
<texture type="skybox" builtin="gradient" rgb1=".3 .5 .7" rgb2="0 0 0" width="512" height="512" />
<texture name="grid" type="2d" builtin="checker" width="512" height="512" rgb1=".1 .2 .3"
rgb2=".2 .3 .4" />
<material name="grid" texture="grid" texrepeat="1 1" texuniform="true" reflectance=".2" />
</asset>
<visual>
<headlight diffuse="0.9 0.9 0.9" ambient="0.3 0.3 0.3" specular="0 0 0" />
<map force="0.1" zfar="30" />
<rgba haze="0.15 0.25 0.35 1" />
<quality shadowsize="4096" />
<global offwidth="800" offheight="800" />
</visual>
<worldbody>
<geom name="floor" size="20 20 .05" type="plane" material="grid" condim="3" />
<light directional="false" diffuse=".2 .2 .2" specular="0 0 0" pos="0 0 5" dir="0 0 -1" />
<flexcomp name="cube" type="gmsh" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4"
mass="10" scale="1 1 1" file="malformed_cube_41_ascii_missing_element_header.msh">
<edge equality="true" />
</flexcomp>
</worldbody>
</mujoco>
@@ -0,0 +1,66 @@
$MeshFormat
4.1 0 8
$EndMeshFormat
$Entities
0 0 0 1
1 -0.5 -0.5 0 0.5 0.5 1 0 0
$EndEntities
$Nodes
1 14 1 14
3 1 0 14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
0.5 -0.5 0
0.5 0.5 0
-0.5 0.5 0
-0.5 -0.5 1
0.5 -0.5 1
0.5 0.5 1
-0.5 0.5 1
0 0 0
0 -0.5 0.5
0.5 0 0.5
0 0.5 0.5
-0.5 0 0.5
0 0 1
$EndNodes
$Elements
1 24 1 24
3 1 4 24
1 10 9 12 11
2 10 12 13 14
3 9 10 12 13
4 10 12 14 11
5 9 10 1 2
6 7 11 12 3
7 4 1 9 13
8 13 12 4 8
9 1 10 13 5
10 13 8 5 14
11 12 8 14 7
12 14 5 10 6
13 14 6 11 7
14 9 4 12 3
15 3 11 9 2
16 11 6 10 2
17 6 10 14 11
18 1 10 9 13
19 12 4 9 13
20 5 10 13 14
21 8 13 12 14
22 12 14 11 7
23 9 12 11 3
24 10 9 11 2
$EndElements
@@ -0,0 +1,65 @@
$MeshFormat
4.1 0 8
$EndMeshFormat
$Entities
0 0 0 1
1 -0.5 -0.5 0 0.5 0.5 1 0 0
$EndEntities
$Nodes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-0.5 -0.5 0
0.5 -0.5 0
0.5 0.5 0
-0.5 0.5 0
-0.5 -0.5 1
0.5 -0.5 1
0.5 0.5 1
-0.5 0.5 1
0 0 0
0 -0.5 0.5
0.5 0 0.5
0 0.5 0.5
-0.5 0 0.5
0 0 1
$EndNodes
$Elements
1 24 1 24
3 1 4 24
1 10 9 12 11
2 10 12 13 14
3 9 10 12 13
4 10 12 14 11
5 9 10 1 2
6 7 11 12 3
7 4 1 9 13
8 13 12 4 8
9 1 10 13 5
10 13 8 5 14
11 12 8 14 7
12 14 5 10 6
13 14 6 11 7
14 9 4 12 3
15 3 11 9 2
16 11 6 10 2
17 6 10 14 11
18 1 10 9 13
19 12 4 9 13
20 5 10 13 14
21 8 13 12 14
22 12 14 11 7
23 9 12 11 3
24 10 9 11 2
$EndElements
@@ -19,8 +19,8 @@
<worldbody>
<geom name="floor" size="20 20 .05" type="plane" material="grid" condim="3" />
<light directional="false" diffuse=".2 .2 .2" specular="0 0 0" pos="0 0 5" dir="0 0 -1" />
<flexcomp name="shark" type="gmsh" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4" mass="10"
scale="1 1 1" file="shark_22_ascii_missing_num_nodes.msh">
<flexcomp name="cube" type="gmsh" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4"
mass="10" scale="1 1 1" file="malformed_cube_41_ascii_missing_node_header.msh">
<edge equality="true" />
</flexcomp>
</worldbody>
@@ -0,0 +1,66 @@
$MeshFormat
4.1 0 8
$EndMeshFormat
$Entities
0 0 0 1
1 -0.5 -0.5 0 0.5 0.5 1 0 0
$EndEntities
$Nodes
1 14 1 14
3 1 0 14
2
3
4
5
6
7
8
9
10
11
12
13
14
-0.5 -0.5 0
0.5 -0.5 0
0.5 0.5 0
-0.5 0.5 0
-0.5 -0.5 1
0.5 -0.5 1
0.5 0.5 1
-0.5 0.5 1
0 0 0
0 -0.5 0.5
0.5 0 0.5
0 0.5 0.5
-0.5 0 0.5
0 0 1
$EndNodes
$Elements
1 24 1 24
3 1 4 24
1 10 9 12 11
2 10 12 13 14
3 9 10 12 13
4 10 12 14 11
5 9 10 1 2
6 7 11 12 3
7 4 1 9 13
8 13 12 4 8
9 1 10 13 5
10 13 8 5 14
11 12 8 14 7
12 14 5 10 6
13 14 6 11 7
14 9 4 12 3
15 3 11 9 2
16 11 6 10 2
17 6 10 14 11
18 1 10 9 13
19 12 4 9 13
20 5 10 13 14
21 8 13 12 14
22 12 14 11 7
23 9 12 11 3
24 10 9 11 2
$EndElements
@@ -19,8 +19,8 @@
<worldbody>
<geom name="floor" size="20 20 .05" type="plane" material="grid" condim="3" />
<light directional="false" diffuse=".2 .2 .2" specular="0 0 0" pos="0 0 5" dir="0 0 -1" />
<flexcomp name="shark" type="gmsh" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4" mass="10"
scale="1 1 1" file="shark_22_ascii_missing_num_elements.msh">
<flexcomp name="cube" type="gmsh" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4"
mass="10" scale="1 1 1" file="malformed_cube_41_ascii_missing_node_index.msh">
<edge equality="true" />
</flexcomp>
</worldbody>
@@ -1,27 +0,0 @@
<mujoco model="gmsh">
<option timestep="0.01" integrator="implicitfast" solver="CG" />
<asset>
<texture type="skybox" builtin="gradient" rgb1=".3 .5 .7" rgb2="0 0 0" width="512" height="512" />
<texture name="grid" type="2d" builtin="checker" width="512" height="512" rgb1=".1 .2 .3"
rgb2=".2 .3 .4" />
<material name="grid" texture="grid" texrepeat="1 1" texuniform="true" reflectance=".2" />
</asset>
<visual>
<headlight diffuse="0.9 0.9 0.9" ambient="0.3 0.3 0.3" specular="0 0 0" />
<map force="0.1" zfar="30" />
<rgba haze="0.15 0.25 0.35 1" />
<quality shadowsize="4096" />
<global offwidth="800" offheight="800" />
</visual>
<worldbody>
<geom name="floor" size="20 20 .05" type="plane" material="grid" condim="3" />
<light directional="false" diffuse=".2 .2 .2" specular="0 0 0" pos="0 0 5" dir="0 0 -1" />
<flexcomp name="shark binary 2.2" type="gmsh" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4"
mass="10" scale="1 1 1" file="shark_41_ascii_missing_element_header.msh">
<edge equality="true" />
</flexcomp>
</worldbody>
</mujoco>
@@ -1,27 +0,0 @@
<mujoco model="gmsh">
<option timestep="0.01" integrator="implicitfast" solver="CG" />
<asset>
<texture type="skybox" builtin="gradient" rgb1=".3 .5 .7" rgb2="0 0 0" width="512" height="512" />
<texture name="grid" type="2d" builtin="checker" width="512" height="512" rgb1=".1 .2 .3"
rgb2=".2 .3 .4" />
<material name="grid" texture="grid" texrepeat="1 1" texuniform="true" reflectance=".2" />
</asset>
<visual>
<headlight diffuse="0.9 0.9 0.9" ambient="0.3 0.3 0.3" specular="0 0 0" />
<map force="0.1" zfar="30" />
<rgba haze="0.15 0.25 0.35 1" />
<quality shadowsize="4096" />
<global offwidth="800" offheight="800" />
</visual>
<worldbody>
<geom name="floor" size="20 20 .05" type="plane" material="grid" condim="3" />
<light directional="false" diffuse=".2 .2 .2" specular="0 0 0" pos="0 0 5" dir="0 0 -1" />
<flexcomp name="shark binary 2.2" type="gmsh" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4"
mass="10" scale="1 1 1" file="shark_41_ascii_missing_node_header.msh">
<edge equality="true" />
</flexcomp>
</worldbody>
</mujoco>
@@ -1,27 +0,0 @@
<mujoco model="gmsh">
<option timestep="0.01" integrator="implicitfast" solver="CG" />
<asset>
<texture type="skybox" builtin="gradient" rgb1=".3 .5 .7" rgb2="0 0 0" width="512" height="512" />
<texture name="grid" type="2d" builtin="checker" width="512" height="512" rgb1=".1 .2 .3"
rgb2=".2 .3 .4" />
<material name="grid" texture="grid" texrepeat="1 1" texuniform="true" reflectance=".2" />
</asset>
<visual>
<headlight diffuse="0.9 0.9 0.9" ambient="0.3 0.3 0.3" specular="0 0 0" />
<map force="0.1" zfar="30" />
<rgba haze="0.15 0.25 0.35 1" />
<quality shadowsize="4096" />
<global offwidth="800" offheight="800" />
</visual>
<worldbody>
<geom name="floor" size="20 20 .05" type="plane" material="grid" condim="3" />
<light directional="false" diffuse=".2 .2 .2" specular="0 0 0" pos="0 0 5" dir="0 0 -1" />
<flexcomp name="shark binary 2.2" type="gmsh" dim="3" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 4"
mass="10" scale="1 1 1" file="shark_41_ascii_missing_node_index.msh">
<edge equality="true" />
</flexcomp>
</worldbody>
</mujoco>
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
Binary file not shown.
+23 -23
View File
@@ -245,13 +245,13 @@ TEST_F(UserFlexTest, RigidFlex) {
TEST_F(UserFlexTest, LoadMSHBinaryGMSH_41_Success) {
const std::string xml_path =
GetTestDataFilePath("user/testdata/shark_41_binary_gmshApp.xml");
GetTestDataFilePath("user/testdata/cube_41_binary_vol_gmshApp.xml");
std::array<char, 1024> error;
mjModel* m = mj_loadXML(xml_path.c_str(), 0, error.data(), error.size());
ASSERT_THAT(m, NotNull()) << error.data();
mjData* d = mj_makeData(m);
EXPECT_EQ(m->nflexvert, 652);
EXPECT_EQ(m->nflexelem, 1654);
EXPECT_EQ(m->nflexvert, 14);
EXPECT_EQ(m->nflexelem, 24);
mj_step(m, d);
mj_deleteModel(m);
mj_deleteData(d);
@@ -259,13 +259,13 @@ TEST_F(UserFlexTest, LoadMSHBinaryGMSH_41_Success) {
TEST_F(UserFlexTest, LoadMSHBinaryGMSH_22_Success) {
const std::string xml_path =
GetTestDataFilePath("user/testdata/shark_22_binary_gmshApp.xml");
GetTestDataFilePath("user/testdata/cube_22_binary_vol_gmshApp.xml");
std::array<char, 1024> error;
mjModel* m = mj_loadXML(xml_path.c_str(), 0, error.data(), error.size());
ASSERT_THAT(m, NotNull()) << error.data();
mjData* d = mj_makeData(m);
EXPECT_EQ(m->nflexvert, 644);
EXPECT_EQ(m->nflexelem, 1635);
EXPECT_EQ(m->nflexvert, 14);
EXPECT_EQ(m->nflexelem, 24);
mj_step(m, d);
mj_deleteModel(m);
mj_deleteData(d);
@@ -328,8 +328,8 @@ TEST_F(UserFlexTest, LoadMSHBinaryFTETWILD_22_Success) {
mjModel* m = mj_loadXML(xml_path.c_str(), 0, error.data(), error.size());
ASSERT_THAT(m, NotNull()) << error.data();
mjData* d = mj_makeData(m);
EXPECT_EQ(m->nflexvert, 644);
EXPECT_EQ(m->nflexelem, 1635);
EXPECT_EQ(m->nflexvert, 429);
EXPECT_EQ(m->nflexelem, 1073);
mj_step(m, d);
mj_deleteModel(m);
mj_deleteData(d);
@@ -337,13 +337,13 @@ TEST_F(UserFlexTest, LoadMSHBinaryFTETWILD_22_Success) {
TEST_F(UserFlexTest, LoadMSHASCIIGMSH_41_Success) {
const std::string xml_path =
GetTestDataFilePath("user/testdata/shark_41_ascii_gmshApp.xml");
GetTestDataFilePath("user/testdata/cube_41_ascii_vol_gmshApp.xml");
std::array<char, 1024> error;
mjModel* m = mj_loadXML(xml_path.c_str(), 0, error.data(), error.size());
ASSERT_THAT(m, NotNull()) << error.data();
mjData* d = mj_makeData(m);
EXPECT_EQ(m->nflexvert, 652);
EXPECT_EQ(m->nflexelem, 1654);
EXPECT_EQ(m->nflexvert, 14);
EXPECT_EQ(m->nflexelem, 24);
mj_step(m, d);
mj_deleteModel(m);
mj_deleteData(d);
@@ -351,13 +351,13 @@ TEST_F(UserFlexTest, LoadMSHASCIIGMSH_41_Success) {
TEST_F(UserFlexTest, LoadMSHASCIIGMSH_22_Success) {
const std::string xml_path =
GetTestDataFilePath("user/testdata/shark_22_ascii_gmshApp.xml");
GetTestDataFilePath("user/testdata/cube_22_ascii_vol_gmshApp.xml");
std::array<char, 1024> error;
mjModel* m = mj_loadXML(xml_path.c_str(), 0, error.data(), error.size());
ASSERT_THAT(m, NotNull()) << error.data();
mjData* d = mj_makeData(m);
EXPECT_EQ(m->nflexvert, 652);
EXPECT_EQ(m->nflexelem, 1654);
EXPECT_EQ(m->nflexvert, 14);
EXPECT_EQ(m->nflexelem, 24);
mj_step(m, d);
mj_deleteModel(m);
mj_deleteData(d);
@@ -420,8 +420,8 @@ TEST_F(UserFlexTest, LoadMSHASCIIFTETWILD_22_Success) {
mjModel* m = mj_loadXML(xml_path.c_str(), 0, error.data(), error.size());
ASSERT_THAT(m, NotNull()) << error.data();
mjData* d = mj_makeData(m);
EXPECT_EQ(m->nflexvert, 652);
EXPECT_EQ(m->nflexelem, 1654);
EXPECT_EQ(m->nflexvert, 425);
EXPECT_EQ(m->nflexelem, 1070);
mj_step(m, d);
mj_deleteModel(m);
mj_deleteData(d);
@@ -430,7 +430,7 @@ TEST_F(UserFlexTest, LoadMSHASCIIFTETWILD_22_Success) {
TEST_F(UserFlexTest, LoadMSHASCII_41_MissingNodeHeader_Fail) {
const std::string xml_path =
GetTestDataFilePath(
"user/testdata/malformed_shark_41_ascii_missing_node_header.xml");
"user/testdata/malformed_cube_41_ascii_missing_node_header.xml");
std::array<char, 1024> error;
mjModel* m = mj_loadXML(xml_path.c_str(), 0, error.data(), error.size());
EXPECT_THAT(error.data(), HasSubstr(
@@ -441,7 +441,7 @@ TEST_F(UserFlexTest, LoadMSHASCII_41_MissingNodeHeader_Fail) {
TEST_F(UserFlexTest, LoadMSHASCII_41_MissingNodeIndex_Fail) {
const std::string xml_path =
GetTestDataFilePath(
"user/testdata/malformed_shark_41_ascii_missing_node_index.xml");
"user/testdata/malformed_cube_41_ascii_missing_node_index.xml");
std::array<char, 1024> error;
mjModel* m = mj_loadXML(xml_path.c_str(), 0, error.data(), error.size());
EXPECT_THAT(error.data(), HasSubstr(
@@ -452,7 +452,7 @@ TEST_F(UserFlexTest, LoadMSHASCII_41_MissingNodeIndex_Fail) {
TEST_F(UserFlexTest, LoadMSHASCII_41_MissingElementHeader_Fail) {
const std::string xml_path =
GetTestDataFilePath(
"user/testdata/malformed_shark_41_ascii_missing_element_header.xml");
"user/testdata/malformed_cube_41_ascii_missing_element_header.xml");
std::array<char, 1024> error;
mjModel* m = mj_loadXML(xml_path.c_str(), 0, error.data(), error.size());
EXPECT_THAT(error.data(), HasSubstr(
@@ -463,7 +463,7 @@ TEST_F(UserFlexTest, LoadMSHASCII_41_MissingElementHeader_Fail) {
TEST_F(UserFlexTest, LoadMSHASCII_41_MissingElement_Fail) {
const std::string xml_path =
GetTestDataFilePath(
"user/testdata/malformed_shark_41_ascii_missing_element.xml");
"user/testdata/malformed_cube_41_ascii_missing_element.xml");
std::array<char, 1024> error;
mjModel* m = mj_loadXML(xml_path.c_str(), 0, error.data(), error.size());
EXPECT_THAT(error.data(), HasSubstr(
@@ -474,7 +474,7 @@ TEST_F(UserFlexTest, LoadMSHASCII_41_MissingElement_Fail) {
TEST_F(UserFlexTest, LoadMSHASCII_22_MissingNumNodes_Fail) {
const std::string xml_path =
GetTestDataFilePath(
"user/testdata/malformed_shark_22_ascii_missing_num_nodes.xml");
"user/testdata/malformed_cube_22_ascii_missing_num_nodes.xml");
std::array<char, 1024> error;
mjModel* m = mj_loadXML(xml_path.c_str(), 0, error.data(), error.size());
// TODO(mohammadhamid): Replace with an assertion about the error message. For
@@ -486,7 +486,7 @@ TEST_F(UserFlexTest, LoadMSHASCII_22_MissingNumNodes_Fail) {
TEST_F(UserFlexTest, LoadMSHASCII_22_MissingNode_Fail) {
const std::string xml_path =
GetTestDataFilePath(
"user/testdata/malformed_shark_22_ascii_missing_node.xml");
"user/testdata/malformed_cube_22_ascii_missing_node.xml");
std::array<char, 1024> error;
mjModel* m = mj_loadXML(xml_path.c_str(), 0, error.data(), error.size());
EXPECT_THAT(error.data(), HasSubstr(
@@ -509,7 +509,7 @@ TEST_F(UserFlexTest, LoadMSHASCII_22_MissingNumElements_Fail) {
TEST_F(UserFlexTest, LoadMSHASCII_22_MissingElement_Fail) {
const std::string xml_path =
GetTestDataFilePath(
"user/testdata/malformed_shark_22_ascii_missing_element.xml");
"user/testdata/malformed_cube_22_ascii_missing_element.xml");
std::array<char, 1024> error;
mjModel* m = mj_loadXML(xml_path.c_str(), 0, error.data(), error.size());
EXPECT_THAT(error.data(), HasSubstr(