b3ccf67ebf
PiperOrigin-RevId: 588304729 Change-Id: I58075383e6eed64ae00cea305a568eba6465b0b0
54 lines
1.6 KiB
XML
54 lines
1.6 KiB
XML
<!-- For validating constraint dynamics:
|
|
|
|
* connect, weld, joint constraints
|
|
* collision and joint limits for ball and 1d joints
|
|
* solref, solimp
|
|
-->
|
|
<mujoco>
|
|
<option timestep="0.02"/>
|
|
|
|
<default>
|
|
<default class="box">
|
|
<geom type="box" size=".2" fromto="0 0 0 0 -2 0" rgba=".4 .7 .6 .3" contype="0"/>
|
|
</default>
|
|
</default>
|
|
|
|
<worldbody>
|
|
<geom pos="0 0 -1" type="plane" size="10 10 .01"/>
|
|
|
|
<body name="anchor1" pos="-3 0 0"/>
|
|
<body name="beam1" pos="-3 0 0">
|
|
<joint name="joint1" type="ball" range="0 45" solreflimit="0.03 0.9" solimplimit="0.89 0.9 0.01 2.1"/>
|
|
<geom class="box"/>
|
|
</body>
|
|
|
|
<body name="anchor2" pos="-1 0 0"/>
|
|
<body name="beam2" pos="-1 0 0">
|
|
<freejoint/>
|
|
<geom class="box"/>
|
|
</body>
|
|
|
|
<body name="beam3" pos="1 0 0">
|
|
<joint name="joint3" axis="1 0 0" type="hinge" range="-20 20"/>
|
|
<geom class="box"/>
|
|
</body>
|
|
|
|
<body name="beam4" pos="3 0 0">
|
|
<joint name="joint4" axis="1 0 0" type="hinge" damping="1.0"/> <!-- tests no joint range -->
|
|
<geom class="box"/>
|
|
</body>
|
|
</worldbody>
|
|
|
|
<equality>
|
|
<connect name="connect" body1="anchor1" body2="beam1" anchor="1 0 -1" />
|
|
<weld name="weld" body1="anchor2" body2="beam2" relpose="0 0 0 1 -.3 0 0" torquescale="0.002" anchor="0 -2 0"/>
|
|
<joint name="joint" joint1="joint3" joint2="joint4" polycoef="0.5 -1 0.1 0.15 0.2" />
|
|
</equality>
|
|
|
|
<actuator>
|
|
<position ctrlrange="-20 20" gear="500" joint="joint1" name="act1"/>
|
|
<motor gear="50000" joint="joint3" name="act2"/>
|
|
<motor gear="75000" joint="joint4" name="act3"/>
|
|
</actuator>
|
|
</mujoco>
|