Skip to content

Commit 94629d2

Browse files
quaglacopybara-github
authored andcommitted
Move mesh inertia specification from global <compiler> to <asset/mesh>.
Three options: - Convex: Use convex hull - Exact: Use exact geometry (requires watertight mesh) - Legacy: Legacy approximation (deprecated) Fixes #2152 PiperOrigin-RevId: 688949900 Change-Id: I5f0e22e082af4fe554bcf2e544ccd4a81a71e15c
1 parent 1e1fbb1 commit 94629d2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

dm_control/mjcf/schema.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
<attribute name="fusestatic" type="keyword" valid_values="false true"/>
2525
<attribute name="inertiafromgeom" type="keyword" valid_values="false true auto"/>
2626
<attribute name="inertiagrouprange" type="array" array_type="int" array_size="2"/>
27-
<attribute name="exactmeshinertia" type="keyword" valid_values="false true"/>
2827
<attribute name="alignfree" type="keyword" valid_values="false true"/>
2928
</attributes>
3029
<children>
@@ -235,6 +234,7 @@
235234
<attributes>
236235
<attribute name="scale" type="array" array_type="float" array_size="3"/>
237236
<attribute name="maxhullvert" type="int"/>
237+
<attribute name="exactmeshinertia" type="keyword" valid_values="legacy convex exact"/>
238238
</attributes>
239239
</element>
240240
<element name="material">
@@ -553,6 +553,7 @@
553553
<attributes>
554554
<attribute name="scale" type="array" array_type="float" array_size="3"/>
555555
<attribute name="maxhullvert" type="int"/>
556+
<attribute name="exactmeshinertia" type="keyword" valid_values="legacy convex exact"/>
556557
</attributes>
557558
</element>
558559
<element name="material">
@@ -986,6 +987,7 @@
986987
<attribute name="refpos" type="array" array_type="float" array_size="3"/>
987988
<attribute name="refquat" type="array" array_type="float" array_size="4"/>
988989
<attribute name="maxhullvert" type="int"/>
990+
<attribute name="exactmeshinertia" type="keyword" valid_values="legacy convex exact"/>
989991
</attributes>
990992
<children>
991993
<element name="plugin" repeated="true" namespace="mesh">

0 commit comments

Comments
 (0)