Skip to content

Commit 3af128b

Browse files
quaglacopybara-github
authored andcommitted
Refactor flex strain constraints to be per-cell.
Each mjEQ_FLEXSTRAIN equality now represents a single cell within a flex. This allows for more efficient sparse Jacobian computation by only considering the degrees of freedom of the nodes within each specific cell. This change gives a speedup of about 10x on a 3x3x3 model. PiperOrigin-RevId: 902164069 Change-Id: I3fefdaceedeac1e1232672f2b76e954f2d027b2f
1 parent 203f498 commit 3af128b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dm_control/mjcf/schema.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,6 +1947,8 @@
19471947
<attribute name="solref" type="array" array_type="float" array_size="2"/>
19481948
<attribute name="solimp" type="array" array_type="float" array_size="5"/>
19491949
<attribute name="flex" type="identifier"/>
1950+
<attribute name="cell" type="array" array_type="int" array_size="3"/>
1951+
19501952
</attributes>
19511953
</element>
19521954
</children>

0 commit comments

Comments
 (0)