Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mjcf schema #380

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions dm_control/mjcf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
</element>
<element name="size">
<attributes>
<attribute name="memory" type="string"/>
<attribute name="njmax" type="int" conflict_allowed="true" conflict_behavior="max"/>
<attribute name="nconmax" type="int" conflict_allowed="true" conflict_behavior="max"/>
<attribute name="nstack" type="int"/>
Expand Down Expand Up @@ -2167,10 +2168,10 @@
<attribute name="noise" type="float"/>
<attribute name="cutoff" type="float"/>
<attribute name="user" type="array" array_type="float"/>
<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"/>
<attribute name="objname" type="reference" required="true" reference_namespace="attrib:objtype"/>
<attribute name="datatype" type="keyword" required="true" valid_values="real positive axis quaternion"/>
<attribute name="needstage" type="keyword" required="true" valid_values="pos vel acc"/>
<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"/>
<attribute name="objname" type="reference" reference_namespace="attrib:objtype"/>
<attribute name="datatype" type="keyword" valid_values="real positive axis quaternion"/>
<attribute name="needstage" type="keyword" valid_values="pos vel acc"/>
<attribute name="dim" type="int" required="true"/>
</attributes>
</element>
Expand Down
4 changes: 4 additions & 0 deletions dm_control/mjcf/test_assets/test_model.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<mujoco model="test">
<size memory="1K"/>
<compiler texturedir="textures"/>
<asset>
<texture name="texture" type="cube" file="deepmind.png"/>
Expand Down Expand Up @@ -42,4 +43,7 @@
<velocity name="b_0_0" joint="b_0_0"/>
<velocity name="b_1_0" joint="b_1_0"/>
</actuator>
<sensor>
<user name="dummy" dim="1" user="0 1 0 1" />
</sensor>
</mujoco>