Skip to content

Commit cab6d38

Browse files
quaglacopybara-github
authored andcommitted
Fix 'deformable/flex' types in the pymjcf schema.
PiperOrigin-RevId: 750983539 Change-Id: Ie7ba76fe6cbd0052562209f673ff85081e5b1da4
1 parent 04970f6 commit cab6d38

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

dm_control/mjcf/schema.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,17 +1680,17 @@
16801680
<element name="flex" repeated="true" namespace="deformable">
16811681
<attributes>
16821682
<attribute name="name" type="identifier"/>
1683-
<attribute name="group" type="reference" reference_namespace="default"/>
1684-
<attribute name="dim" type="reference" required="true" reference_namespace="geom"/>
1685-
<attribute name="radius" type="reference" required="true" reference_namespace="geom"/>
1686-
<attribute name="material" type="int"/>
1683+
<attribute name="group" type="reference"/>
1684+
<attribute name="dim" type="int" required="true"/>
1685+
<attribute name="radius" type="float" required="true"/>
1686+
<attribute name="material" type="reference"/>
16871687
<attribute name="rgba" type="array" array_type="float" array_size="4"/>
16881688
<attribute name="flatskin" type="array" array_type="float" array_size="2"/>
1689-
<attribute name="body" type="array" array_type="float" array_size="2"/>
1689+
<attribute name="body" type="string"/>
16901690
<attribute name="vertex" type="array" array_type="float" array_size="5"/>
1691-
<attribute name="element" type="float"/>
1692-
<attribute name="texcoord" type="float"/>
1693-
<attribute name="elemtexcoord" type="float"/>
1691+
<attribute name="element" type="array" array_type="int"/>
1692+
<attribute name="texcoord" type="array" array_type="float"/>
1693+
<attribute name="elemtexcoord" type="array" array_type="float"/>
16941694
<attribute name="node" type="array" array_type="float" array_size="3"/>
16951695
</attributes>
16961696
<children>
@@ -1834,7 +1834,7 @@
18341834
<attribute name="active" type="keyword" valid_values="false true"/>
18351835
<attribute name="solref" type="array" array_type="float" array_size="2"/>
18361836
<attribute name="solimp" type="array" array_type="float" array_size="5"/>
1837-
<attribute name="flex" type="string"/>
1837+
<attribute name="flex" type="identifier"/>
18381838
</attributes>
18391839
</element>
18401840
</children>

0 commit comments

Comments
 (0)