Skip to content

Commit a4b9b31

Browse files
quaglacopybara-github
authored andcommitted
Introduce trilinear flex parametrization.
These flexes use only 24 DOFs (3 per vertex of the bounding box), while colliding with the full high resolution mesh. On an 8x8x8 cube, the performance using DOFs at all vertices is ``` Simulation time : 18.74 s Steps per second : 533 Realtime factor : 0.53 x Time per step : 1874.4 µs Contacts per step : 114.88 Constraints per step : 3322.51 Degrees of freedom : 1536 ``` With the new implementation, it is the following: ``` Simulation time : 1.82 s Steps per second : 5507 Realtime factor : 5.51 x Time per step : 181.6 µs Contacts per step : 38.84 Constraints per step : 155.36 Degrees of freedom : 24 ``` PiperOrigin-RevId: 721008829 Change-Id: I5266c4166f1abff7e681646c73da5579e859bff2
1 parent 0aae21d commit a4b9b31

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

dm_control/mjcf/schema.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,6 +1148,7 @@
11481148
<attribute name="euler" type="array" array_type="float" array_size="3"/>
11491149
<attribute name="origin" type="array" array_type="float" array_size="3"/>
11501150
<attribute name="dim" type="int" required="true"/>
1151+
<attribute name="dof" type="string"/>
11511152
</attributes>
11521153
<children>
11531154
<element name="plugin" repeated="true" namespace="flexcomp">
@@ -1543,6 +1544,7 @@
15431544
<attribute name="euler" type="array" array_type="float" array_size="3"/>
15441545
<attribute name="origin" type="array" array_type="float" array_size="3"/>
15451546
<attribute name="dim" type="int" required="true"/>
1547+
<attribute name="dof" type="string"/>
15461548
</attributes>
15471549
<children>
15481550
<element name="plugin" repeated="true" namespace="flexcomp">
@@ -1740,6 +1742,7 @@
17401742
<attribute name="vertex" type="array" array_type="float" array_size="5"/>
17411743
<attribute name="element" type="float"/>
17421744
<attribute name="texcoord" type="float"/>
1745+
<attribute name="node" type="array" array_type="float" array_size="3"/>
17431746
</attributes>
17441747
<children>
17451748
<element name="edge" repeated="true">

0 commit comments

Comments
 (0)