Added support for GMSH22 surface loading
PiperOrigin-RevId: 629734063 Change-Id: I6a250b81de4e7c8f7520795bfe74a81d719dfb50
This commit is contained in:
committed by
Copybara-Service
parent
57b1dbac65
commit
131b1745db
@@ -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 2 2 0 1 9 4 3
|
||||
2 2 2 0 1 9 3 2
|
||||
3 2 2 0 1 9 1 4
|
||||
4 2 2 0 1 9 2 1
|
||||
5 2 2 0 1 2 10 1
|
||||
6 2 2 0 1 1 10 5
|
||||
7 2 2 0 1 6 10 2
|
||||
8 2 2 0 1 5 10 6
|
||||
9 2 2 0 1 3 11 2
|
||||
10 2 2 0 1 2 11 6
|
||||
11 2 2 0 1 7 11 3
|
||||
12 2 2 0 1 6 11 7
|
||||
13 2 2 0 1 4 12 3
|
||||
14 2 2 0 1 3 12 7
|
||||
15 2 2 0 1 8 12 4
|
||||
16 2 2 0 1 7 12 8
|
||||
17 2 2 0 1 1 13 4
|
||||
18 2 2 0 1 5 13 1
|
||||
19 2 2 0 1 4 13 8
|
||||
20 2 2 0 1 8 13 5
|
||||
21 2 2 0 1 5 6 14
|
||||
22 2 2 0 1 8 5 14
|
||||
23 2 2 0 1 6 7 14
|
||||
24 2 2 0 1 7 8 14
|
||||
$EndElements
|
||||
@@ -0,0 +1,26 @@
|
||||
<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="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="cube" type="gmsh" dim="2" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 0"
|
||||
mass="10" scale="1 1 1" file="cube_22_ascii_surf_gmshApp.msh">
|
||||
<edge equality="true"/>
|
||||
</flexcomp>
|
||||
</worldbody>
|
||||
</mujoco>
|
||||
Binary file not shown.
@@ -0,0 +1,26 @@
|
||||
<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="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="cube" type="gmsh" dim="2" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 0"
|
||||
mass="10" scale="1 1 1" file="cube_22_binary_surf_gmshApp.msh">
|
||||
<edge equality="true"/>
|
||||
</flexcomp>
|
||||
</worldbody>
|
||||
</mujoco>
|
||||
@@ -0,0 +1,67 @@
|
||||
$MeshFormat
|
||||
4.1 0 8
|
||||
$EndMeshFormat
|
||||
$Entities
|
||||
0 0 1 0
|
||||
1 -0.5 -0.5 0 0.5 0.5 1 0 0
|
||||
$EndEntities
|
||||
$Nodes
|
||||
1 14 1 14
|
||||
2 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
|
||||
2 1 2 24
|
||||
1 9 4 3
|
||||
2 9 3 2
|
||||
3 9 1 4
|
||||
4 9 2 1
|
||||
5 2 10 1
|
||||
6 1 10 5
|
||||
7 6 10 2
|
||||
8 5 10 6
|
||||
9 3 11 2
|
||||
10 2 11 6
|
||||
11 7 11 3
|
||||
12 6 11 7
|
||||
13 4 12 3
|
||||
14 3 12 7
|
||||
15 8 12 4
|
||||
16 7 12 8
|
||||
17 1 13 4
|
||||
18 5 13 1
|
||||
19 4 13 8
|
||||
20 8 13 5
|
||||
21 5 6 14
|
||||
22 8 5 14
|
||||
23 6 7 14
|
||||
24 7 8 14
|
||||
$EndElements
|
||||
@@ -0,0 +1,26 @@
|
||||
<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="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="cube" type="gmsh" dim="2" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 0"
|
||||
mass="10" scale="1 1 1" file="cube_41_ascii_surf_gmshApp.msh">
|
||||
<edge equality="true"/>
|
||||
</flexcomp>
|
||||
</worldbody>
|
||||
</mujoco>
|
||||
Binary file not shown.
@@ -0,0 +1,26 @@
|
||||
<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="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="cube" type="gmsh" dim="2" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 0"
|
||||
mass="10" scale="1 1 1" file="cube_41_binary_surf_gmshApp.msh">
|
||||
<edge equality="true"/>
|
||||
</flexcomp>
|
||||
</worldbody>
|
||||
</mujoco>
|
||||
@@ -19,7 +19,7 @@
|
||||
<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"
|
||||
<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>
|
||||
|
||||
@@ -8,7 +8,6 @@ $EndEntities
|
||||
$Nodes
|
||||
1 652 1 652
|
||||
3 0 0 652
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
|
||||
Reference in New Issue
Block a user