Skip to content

Commit 8cc69fc

Browse files
quaglacopybara-github
authored andcommitted
Add flex to dm_control schema.
PiperOrigin-RevId: 582323853 Change-Id: I4cdf497b33fe12848cc97734d04f0a5e3844fbdc
1 parent cb2edaf commit 8cc69fc

1 file changed

Lines changed: 224 additions & 4 deletions

File tree

dm_control/mjcf/schema.xml

Lines changed: 224 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,83 @@
10721072
<attribute name="specular" type="array" array_type="float" array_size="3"/>
10731073
</attributes>
10741074
</element>
1075+
<element name="flexcomp" repeated="true">
1076+
<attributes>
1077+
<attribute name="name" type="identifier"/>
1078+
<attribute name="type" type="keyword" valid_values="grid box cylinder ellipsoid mesh gmsh direct"/>
1079+
<attribute name="count" type="array" array_type="int" array_size="3"/>
1080+
<attribute name="spacing" type="array" array_type="int" array_size="3"/>
1081+
<attribute name="scale" type="array" array_type="int" array_size="3"/>
1082+
<attribute name="radius" type="float"/>
1083+
<attribute name="rigid" type="int"/>
1084+
<attribute name="mass" type="float"/>
1085+
<attribute name="inertiabox" type="float"/>
1086+
<attribute name="file" type="string"/>
1087+
<attribute name="point" type="string"/>
1088+
<attribute name="element" type="string"/>
1089+
<attribute name="texcoord" type="string"/>
1090+
<attribute name="material" type="string"/>
1091+
<attribute name="rgba" type="array" array_type="float" array_size="2"/>
1092+
<attribute name="flatskin" type="int"/>
1093+
<attribute name="pos" type="array" array_type="int" array_size="3"/>
1094+
<attribute name="quat" type="array" array_type="int" array_size="4"/>
1095+
<attribute name="axisangle" type="array" array_type="float" array_size="4"/>
1096+
<attribute name="xyaxis" type="array" array_type="float" array_size="6"/>
1097+
<attribute name="zaxis" type="array" array_type="float" array_size="3"/>
1098+
<attribute name="euler" type="array" array_type="float" array_size="3"/>
1099+
</attributes>
1100+
<children>
1101+
<element name="plugin" repeated="true" namespace="flexcomp">
1102+
<attributes>
1103+
<attribute name="name" type="string"/>
1104+
<attribute name="plugin" type="string"/>
1105+
<attribute name="instance" type="reference" reference_namespace="plugin"/>
1106+
</attributes>
1107+
<children>
1108+
<element name="config" repeated="true">
1109+
<attributes>
1110+
<attribute name="key" type="string"/>
1111+
<attribute name="value" type="string"/>
1112+
</attributes>
1113+
</element>
1114+
</children>
1115+
</element>
1116+
<element name="edge" repeated="true">
1117+
<attributes>
1118+
<attribute name="equality" type="int"/>
1119+
<attribute name="solref" type="array" array_type="float" array_size="2"/>
1120+
<attribute name="solimp" type="array" array_type="float" array_size="5"/>
1121+
<attribute name="stiffness" type="float"/>
1122+
<attribute name="damping" type="float"/>
1123+
</attributes>
1124+
</element>
1125+
<element name="contact" repeated="true">
1126+
<attributes>
1127+
<attribute name="contype" type="int"/>
1128+
<attribute name="conaffinity" type="int"/>
1129+
<attribute name="condim" type="int"/>
1130+
<attribute name="priority" type="int"/>
1131+
<attribute name="friction" type="array" array_type="float" array_size="3"/>
1132+
<attribute name="solmix" type="float"/>
1133+
<attribute name="solref" type="array" array_type="float" array_size="2"/>
1134+
<attribute name="solimp" type="array" array_type="float" array_size="5"/>
1135+
<attribute name="margin" type="float"/>
1136+
<attribute name="gap" type="float"/>
1137+
<attribute name="internal" type="int"/>
1138+
<attribute name="selfcollide" type="int"/>
1139+
<attribute name="activelayers" type="int"/>
1140+
</attributes>
1141+
</element>
1142+
<element name="pin" repeated="true">
1143+
<attributes>
1144+
<attribute name="id" type="string"/>
1145+
<attribute name="range" type="string"/>
1146+
<attribute name="grid" type="string"/>
1147+
<attribute name="gridrange" type="string"/>
1148+
</attributes>
1149+
</element>
1150+
</children>
1151+
</element>
10751152
<element name="composite" repeated="true">
10761153
<attributes>
10771154
<attribute name="prefix" type="identifier"/>
@@ -1380,6 +1457,83 @@
13801457
<attribute name="specular" type="array" array_type="float" array_size="3"/>
13811458
</attributes>
13821459
</element>
1460+
<element name="flexcomp" repeated="true">
1461+
<attributes>
1462+
<attribute name="name" type="identifier"/>
1463+
<attribute name="type" type="keyword" valid_values="grid box cylinder ellipsoid mesh gmsh direct"/>
1464+
<attribute name="count" type="array" array_type="int" array_size="3"/>
1465+
<attribute name="spacing" type="array" array_type="int" array_size="3"/>
1466+
<attribute name="scale" type="array" array_type="int" array_size="3"/>
1467+
<attribute name="radius" type="float"/>
1468+
<attribute name="rigid" type="int"/>
1469+
<attribute name="mass" type="float"/>
1470+
<attribute name="inertiabox" type="float"/>
1471+
<attribute name="file" type="string"/>
1472+
<attribute name="point" type="string"/>
1473+
<attribute name="element" type="string"/>
1474+
<attribute name="texcoord" type="string"/>
1475+
<attribute name="material" type="string"/>
1476+
<attribute name="rgba" type="array" array_type="float" array_size="2"/>
1477+
<attribute name="flatskin" type="int"/>
1478+
<attribute name="pos" type="array" array_type="int" array_size="3"/>
1479+
<attribute name="quat" type="array" array_type="int" array_size="4"/>
1480+
<attribute name="axisangle" type="array" array_type="float" array_size="4"/>
1481+
<attribute name="xyaxis" type="array" array_type="float" array_size="6"/>
1482+
<attribute name="zaxis" type="array" array_type="float" array_size="3"/>
1483+
<attribute name="euler" type="array" array_type="float" array_size="3"/>
1484+
</attributes>
1485+
<children>
1486+
<element name="plugin" repeated="true" namespace="flexcomp">
1487+
<attributes>
1488+
<attribute name="name" type="string"/>
1489+
<attribute name="plugin" type="string"/>
1490+
<attribute name="instance" type="reference" reference_namespace="plugin"/>
1491+
</attributes>
1492+
<children>
1493+
<element name="config" repeated="true">
1494+
<attributes>
1495+
<attribute name="key" type="string"/>
1496+
<attribute name="value" type="string"/>
1497+
</attributes>
1498+
</element>
1499+
</children>
1500+
</element>
1501+
<element name="edge" repeated="true">
1502+
<attributes>
1503+
<attribute name="equality" type="int"/>
1504+
<attribute name="solref" type="array" array_type="float" array_size="2"/>
1505+
<attribute name="solimp" type="array" array_type="float" array_size="5"/>
1506+
<attribute name="stiffness" type="float"/>
1507+
<attribute name="damping" type="float"/>
1508+
</attributes>
1509+
</element>
1510+
<element name="contact" repeated="true">
1511+
<attributes>
1512+
<attribute name="contype" type="int"/>
1513+
<attribute name="conaffinity" type="int"/>
1514+
<attribute name="condim" type="int"/>
1515+
<attribute name="priority" type="int"/>
1516+
<attribute name="friction" type="array" array_type="float" array_size="3"/>
1517+
<attribute name="solmix" type="float"/>
1518+
<attribute name="solref" type="array" array_type="float" array_size="2"/>
1519+
<attribute name="solimp" type="array" array_type="float" array_size="5"/>
1520+
<attribute name="margin" type="float"/>
1521+
<attribute name="gap" type="float"/>
1522+
<attribute name="internal" type="int"/>
1523+
<attribute name="selfcollide" type="int"/>
1524+
<attribute name="activelayers" type="int"/>
1525+
</attributes>
1526+
</element>
1527+
<element name="pin" repeated="true">
1528+
<attributes>
1529+
<attribute name="id" type="string"/>
1530+
<attribute name="range" type="string"/>
1531+
<attribute name="grid" type="string"/>
1532+
<attribute name="gridrange" type="string"/>
1533+
</attributes>
1534+
</element>
1535+
</children>
1536+
</element>
13831537
<element name="composite" repeated="true">
13841538
<attributes>
13851539
<attribute name="prefix" type="identifier"/>
@@ -1504,6 +1658,74 @@
15041658
</element>
15051659
</children>
15061660
</element>
1661+
<element name="deformable">
1662+
<children>
1663+
<element name="flex" repeated="true" namespace="deformable">
1664+
<attributes>
1665+
<attribute name="name" type="identifier"/>
1666+
<attribute name="group" type="reference" reference_namespace="default"/>
1667+
<attribute name="dim" type="reference" required="true" reference_namespace="geom"/>
1668+
<attribute name="radius" type="reference" required="true" reference_namespace="geom"/>
1669+
<attribute name="material" type="int"/>
1670+
<attribute name="rgba" type="array" array_type="float" array_size="5"/>
1671+
<attribute name="flatskin" type="array" array_type="float" array_size="2"/>
1672+
<attribute name="body" type="array" array_type="float" array_size="2"/>
1673+
<attribute name="vertex" type="array" array_type="float" array_size="5"/>
1674+
<attribute name="element" type="float"/>
1675+
<attribute name="texcoord" type="float"/>
1676+
</attributes>
1677+
<children>
1678+
<element name="edge" repeated="true">
1679+
<attributes>
1680+
<attribute name="stiffness" type="float"/>
1681+
<attribute name="damping" type="float"/>
1682+
</attributes>
1683+
</element>
1684+
<element name="contact" repeated="true">
1685+
<attributes>
1686+
<attribute name="contype" type="int"/>
1687+
<attribute name="conaffinity" type="int"/>
1688+
<attribute name="condim" type="int"/>
1689+
<attribute name="priority" type="int"/>
1690+
<attribute name="friction" type="array" array_type="float" array_size="3"/>
1691+
<attribute name="solmix" type="float"/>
1692+
<attribute name="solref" type="array" array_type="float" array_size="2"/>
1693+
<attribute name="solimp" type="array" array_type="float" array_size="5"/>
1694+
<attribute name="margin" type="float"/>
1695+
<attribute name="gap" type="float"/>
1696+
<attribute name="internal" type="int"/>
1697+
<attribute name="selfcollide" type="int"/>
1698+
<attribute name="activelayers" type="int"/>
1699+
</attributes>
1700+
</element>
1701+
</children>
1702+
</element>
1703+
<element name="skin" repeated="true" namespace="deformable">
1704+
<attributes>
1705+
<attribute name="name" type="identifier"/>
1706+
<attribute name="file" type="file" path_namespace="mesh"/>
1707+
<attribute name="vertex" type="array" array_type="float"/>
1708+
<attribute name="texcoord" type="array" array_type="float"/>
1709+
<attribute name="face" type="array" array_type="int"/>
1710+
<attribute name="inflate" type="float"/>
1711+
<attribute name="material" type="reference"/>
1712+
<attribute name="rgba" type="array" array_type="float" array_size="4"/>
1713+
<attribute name="group" type="int"/>
1714+
</attributes>
1715+
<children>
1716+
<element name="bone" repeated="true">
1717+
<attributes>
1718+
<attribute name="body" type="reference" required="true"/>
1719+
<attribute name="bindpos" type="array" array_type="float" array_size="3" required="true"/>
1720+
<attribute name="bindquat" type="array" array_type="float" array_size="4" required="true"/>
1721+
<attribute name="vertid" type="array" array_type="int" required="true"/>
1722+
<attribute name="vertweight" type="array" array_type="float" required="true"/>
1723+
</attributes>
1724+
</element>
1725+
</children>
1726+
</element>
1727+
</children>
1728+
</element>
15071729
<element name="contact">
15081730
<children>
15091731
<element name="pair" repeated="true" namespace="contact">
@@ -1582,16 +1804,14 @@
15821804
<attribute name="polycoef" type="array" array_type="float" array_size="5"/>
15831805
</attributes>
15841806
</element>
1585-
<element name="distance" repeated="true" namespace="equality">
1807+
<element name="flex" repeated="true" namespace="equality">
15861808
<attributes>
15871809
<attribute name="name" type="identifier"/>
15881810
<attribute name="class" type="reference" reference_namespace="default"/>
15891811
<attribute name="active" type="keyword" valid_values="false true"/>
15901812
<attribute name="solref" type="array" array_type="float" array_size="2"/>
15911813
<attribute name="solimp" type="array" array_type="float" array_size="5"/>
1592-
<attribute name="geom1" type="reference" required="true" reference_namespace="geom"/>
1593-
<attribute name="geom2" type="reference" required="true" reference_namespace="geom"/>
1594-
<attribute name="distance" type="float"/>
1814+
<attribute name="flex" type="string"/>
15951815
</attributes>
15961816
</element>
15971817
</children>

0 commit comments

Comments
 (0)