Skip to content

Commit

Permalink
dm_control: Import of refs/pull/492/head
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 668504806
Change-Id: Iaa8e3b94fe2c8b379b67b0f2ed1b29764a937554
  • Loading branch information
kevinzakka authored and copybara-github committed Aug 28, 2024
1 parent e3d9427 commit 33789b0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
30 changes: 15 additions & 15 deletions dm_control/mjcf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2625,35 +2625,35 @@
<attribute name="name" type="identifier"/>
<attribute name="noise" type="float"/>
<attribute name="user" type="array" array_type="float"/>
<attribute name="cutoff" type="float"/>
<attribute name="geom1" type="reference" required="true" reference_namespace="geom"/>
<attribute name="geom2" type="reference" required="true" reference_namespace="geom"/>
<attribute name="body1" type="reference" required="true" reference_namespace="body"/>
<attribute name="body2" type="reference" required="true" reference_namespace="body"/>
<attribute name="cutoff" type="float" required="true"/>
<attribute name="geom1" type="reference" reference_namespace="geom"/>
<attribute name="geom2" type="reference" reference_namespace="geom"/>
<attribute name="body1" type="reference" reference_namespace="body"/>
<attribute name="body2" type="reference" reference_namespace="body"/>
</attributes>
</element>
<element name="normal" repeated="true" namespace="sensor">
<attributes>
<attribute name="name" type="identifier"/>
<attribute name="noise" type="float"/>
<attribute name="user" type="array" array_type="float"/>
<attribute name="cutoff" type="float"/>
<attribute name="geom1" type="reference" required="true" reference_namespace="geom"/>
<attribute name="geom2" type="reference" required="true" reference_namespace="geom"/>
<attribute name="body1" type="reference" required="true" reference_namespace="body"/>
<attribute name="body2" type="reference" required="true" reference_namespace="body"/>
<attribute name="cutoff" type="float" required="true"/>
<attribute name="geom1" type="reference" reference_namespace="geom"/>
<attribute name="geom2" type="reference" reference_namespace="geom"/>
<attribute name="body1" type="reference" reference_namespace="body"/>
<attribute name="body2" type="reference" reference_namespace="body"/>
</attributes>
</element>
<element name="distance" repeated="true" namespace="sensor">
<attributes>
<attribute name="name" type="identifier"/>
<attribute name="noise" type="float"/>
<attribute name="user" type="array" array_type="float"/>
<attribute name="cutoff" type="float"/>
<attribute name="geom1" type="reference" required="true" reference_namespace="geom"/>
<attribute name="geom2" type="reference" required="true" reference_namespace="geom"/>
<attribute name="body1" type="reference" required="true" reference_namespace="body"/>
<attribute name="body2" type="reference" required="true" reference_namespace="body"/>
<attribute name="cutoff" type="float" required="true"/>
<attribute name="geom1" type="reference" reference_namespace="geom"/>
<attribute name="geom2" type="reference" reference_namespace="geom"/>
<attribute name="body1" type="reference" reference_namespace="body"/>
<attribute name="body2" type="reference" reference_namespace="body"/>
</attributes>
</element>
</children>
Expand Down
2 changes: 2 additions & 0 deletions dm_control/mjcf/test_assets/robot_arm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@
<torque name="wristtorque" site='wristsite'/>
<force name="baseforce" site='basesite'/>
<torque name="basetorque" site='basesite'/>
<distance body1="b_finger_3" body2="b_finger_2" cutoff="0.1"/>
<distance geom1="finger_knuckle_3" geom2="finger_knuckle_2" cutoff="0.1"/>
</sensor>

<actuator>
Expand Down

0 comments on commit 33789b0

Please sign in to comment.