c6c3ec3149
The `<attach>` element now supports a "frame" attribute, allowing users to specify either a "body" or a "frame" to attach to, but not both. The XML parser has been updated to handle this new attribute and the mutual exclusivity constraint. PiperOrigin-RevId: 941245904 Change-Id: I4c0edeed5f3a9e456aed96c373b1647fe79841d9
19 lines
482 B
XML
19 lines
482 B
XML
<mujoco model="child">
|
|
<worldbody>
|
|
<body name="body">
|
|
<geom name="geom" size="1" pos="0 0 -2" rgba="1 0 0 1"/>
|
|
</body>
|
|
|
|
<frame name="frame">
|
|
<body name="body2" pos="-1 0 0">
|
|
<freejoint/>
|
|
<geom name="geom2" type="box" size="1 1 1" rgba="0 1 0 1"/>
|
|
</body>
|
|
<body name="body3" pos="1 0 0">
|
|
<freejoint/>
|
|
<geom name="geom3" type="box" size="1 1 1" rgba="0 1 0 1"/>
|
|
</body>
|
|
</frame>
|
|
</worldbody>
|
|
</mujoco>
|