Skip to content

Commit 154e039

Browse files
nimrod-gileadicopybara-github
authored andcommitted
Don't infer limited attributes automatically by default.
This is an amendment to 4bfc2c0311233017293748e558a114a510a21f91. Add an autolimits compiler option. When true, *limited will be inferred from the presence of the *range attributes. When false, models where limited is not specified, and range is will fail to compile. PiperOrigin-RevId: 472438650 Change-Id: Ia76247064e54f9f876061d8455f84cb939e7d73e
1 parent 4e6426a commit 154e039

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

dm_control/mjcf/schema.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<children>
66
<element name="compiler">
77
<attributes>
8+
<attribute name="autolimits" type="keyword" valid_values="false true"/>
89
<attribute name="boundmass" type="float"/>
910
<attribute name="boundinertia" type="float"/>
1011
<attribute name="settotalmass" type="float"/>

dm_control/suite/utils/randomizers_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_single_joint_of_each_type(self):
5050
</body>
5151
<body>
5252
<geom type="box" size="1 1 1"/>
53-
<joint name="ball" type="ball"/>
53+
<joint name="ball" type="ball" limited="false"/>
5454
</body>
5555
<body>
5656
<geom type="box" size="1 1 1"/>

0 commit comments

Comments
 (0)