Skip to content

Commit

Permalink
Mark "count" attribute on "composite" as non-required.
Browse files Browse the repository at this point in the history
For cable composites, either vertex or count should be specified.

Fixes google-deepmind#439.

PiperOrigin-RevId: 592525932
Change-Id: I3da34784547df8a8c6064b47b6b8f03d5ce3b9b0
  • Loading branch information
nimrod-gileadi authored and copybara-github committed Dec 20, 2023
1 parent 5fe49a4 commit 7a938bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dm_control/mjcf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@
<attributes>
<attribute name="prefix" type="identifier"/>
<attribute name="type" type="keyword" valid_values="particle grid cable rope loop cloth box cylinder ellipsoid" required="true"/>
<attribute name="count" type="array" array_type="int" array_size="3" required="true"/>
<attribute name="count" type="array" array_type="int" array_size="3"/>
<attribute name="spacing" type="float" required="false"/>
<attribute name="offset" type="array" array_type="float" array_size="3"/>
<attribute name="flatinertia" type="float"/>
Expand Down Expand Up @@ -1542,7 +1542,7 @@
<attributes>
<attribute name="prefix" type="identifier"/>
<attribute name="type" type="keyword" valid_values="particle grid cable rope loop cloth box cylinder ellipsoid" required="true"/>
<attribute name="count" type="array" array_type="int" array_size="3" required="true"/>
<attribute name="count" type="array" array_type="int" array_size="3"/>
<attribute name="spacing" type="float" required="false"/>
<attribute name="offset" type="array" array_type="float" array_size="3"/>
<attribute name="flatinertia" type="float"/>
Expand Down

0 comments on commit 7a938bd

Please sign in to comment.