Skip to content

Commit 321717b

Browse files
DeepMindcopybara-github
authored andcommitted
Modify mjcf schema to work better with MuJoCo plugins.
PiperOrigin-RevId: 500735801 Change-Id: Ie0802690104a80c42a021cbc5c7c3d0df3da25f6
1 parent 093524a commit 321717b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

dm_control/mjcf/schema.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -790,10 +790,10 @@
790790
<children>
791791
<element name="required" repeated="true" namespace="plugin">
792792
<attributes>
793-
<attribute name="plugin" type="identifier" required="true"/>
793+
<attribute name="plugin" type="string" required="true"/>
794794
</attributes>
795795
<children>
796-
<element name="instance" repeated="true" namespace="plugin_instance">
796+
<element name="instance" repeated="true" namespace="plugin">
797797
<attributes>
798798
<attribute name="name" type="identifier" required="true"/>
799799
</attributes>
@@ -1762,8 +1762,8 @@
17621762
<attributes>
17631763
<attribute name="name" type="identifier"/>
17641764
<attribute name="class" type="reference" reference_namespace="default"/>
1765-
<attribute name="plugin" type="reference" reference_namespace="plugin"/>
1766-
<attribute name="instance" type="reference" reference_namespace="plugin_instance"/>
1765+
<attribute name="plugin" type="string" reference_namespace="plugin"/>
1766+
<attribute name="instance" type="reference" reference_namespace="plugin"/>
17671767
<attribute name="group" type="int"/>
17681768
<attribute name="ctrllimited" type="keyword" valid_values="false true auto"/>
17691769
<attribute name="forcelimited" type="keyword" valid_values="false true auto"/>
@@ -2148,10 +2148,10 @@
21482148
<attributes>
21492149
<attribute name="name" type="identifier"/>
21502150
<attribute name="plugin" type="reference" reference_namespace="plugin"/>
2151-
<attribute name="instance" type="reference" reference_namespace="plugin_instance"/>
2151+
<attribute name="instance" type="reference" reference_namespace="plugin"/>
21522152
<attribute name="cutoff" type="float"/>
2153-
<attribute name="objtype" type="keyword" required="true" valid_values="body joint geom site camera light mesh skin hfield texture material equality tendon actuator sensor numeric text tuple contact keyframe"/>
2154-
<attribute name="objname" type="reference" required="true" reference_namespace="attrib:objtype"/>
2153+
<attribute name="objtype" type="keyword" valid_values="body joint geom site camera light mesh skin hfield texture material equality tendon actuator sensor numeric text tuple contact keyframe"/>
2154+
<attribute name="objname" type="reference" reference_namespace="attrib:objtype"/>
21552155
<attribute name="user" type="array" array_type="float"/>
21562156
</attributes>
21572157
<children>

0 commit comments

Comments
 (0)