Add weld constraint to test/testdata/model.xml

PiperOrigin-RevId: 467187914
Change-Id: I87c4788d069ad7a9fbbd1fe38276c38f56e974e0
This commit is contained in:
Yuval Tassa
2022-08-12 05:27:35 -07:00
committed by Copybara-Service
parent 5dd7bf8613
commit ed1ca199a7
+17 -1
View File
@@ -2,6 +2,7 @@
<option iterations="10" tolerance="0" gravity="-1 0 -10" jacobian="dense"> <option iterations="10" tolerance="0" gravity="-1 0 -10" jacobian="dense">
<flag fwdinv="enable" energy="enable"/> <flag fwdinv="enable" energy="enable"/>
</option> </option>
<asset> <asset>
<mesh name="icosahedron" scale=".05 .05 .05" <mesh name="icosahedron" scale=".05 .05 .05"
vertex="0 1 1.618 vertex="0 1 1.618
@@ -18,6 +19,7 @@
-1.618 0 -1"/> -1.618 0 -1"/>
<hfield name="hfield" nrow="3" ncol="3" size=".2 .2 .1 .03"/> <hfield name="hfield" nrow="3" ncol="3" size=".2 .2 .1 .03"/>
</asset> </asset>
<default> <default>
<site rgba=".5 .5 .5 .5"/> <site rgba=".5 .5 .5 .5"/>
<joint armature="1" damping="10"/> <joint armature="1" damping="10"/>
@@ -32,6 +34,7 @@
<joint damping=".1" armature=".1"/> <joint damping=".1" armature=".1"/>
</default> </default>
</default> </default>
<worldbody> <worldbody>
<light pos="0 0 3"/> <light pos="0 0 3"/>
<geom type="plane" size="4 4 .1"/> <geom type="plane" size="4 4 .1"/>
@@ -84,7 +87,11 @@
<joint type="hinge" axis="0 1 0"/> <joint type="hinge" axis="0 1 0"/>
<geom type="mesh" mesh="icosahedron" size=".1" rgba="0 0 1 1"/> <geom type="mesh" mesh="icosahedron" size=".1" rgba="0 0 1 1"/>
</body> </body>
<geom name="wrapping" type="cylinder" size=".04" fromto="-.6 .1 .7 -.4 .7 .7"/> <body name="cylinder" pos="-.5 .3 .7">
<freejoint/>
<geom name="wrapping" type="cylinder" size=".04" fromto="-.1 -.2 0 .1 .4 0"/>
<site name="cylinder"/>
</body>
<site name="sidesite" pos="-.5 .4 1"/> <site name="sidesite" pos="-.5 .4 1"/>
<body pos="-.3 .6 .8"> <body pos="-.3 .6 .8">
<freejoint/> <freejoint/>
@@ -97,6 +104,11 @@
<site name="anchor2" pos=".05 .05 .05"/> <site name="anchor2" pos=".05 .05 .05"/>
</body> </body>
</worldbody> </worldbody>
<equality>
<weld body1="cylinder" body2="world"/>
</equality>
<tendon> <tendon>
<spatial name="spatial" limited="true" range="0 .7" rgba="1 0 1 1"> <spatial name="spatial" limited="true" range="0 .7" rgba="1 0 1 1">
<site site="anchor0"/> <site site="anchor0"/>
@@ -109,6 +121,7 @@
<joint joint="hipy_1" coef="1"/> <joint joint="hipy_1" coef="1"/>
</fixed> </fixed>
</tendon> </tendon>
<actuator> <actuator>
<motor tendon="fixed" gear="100"/> <motor tendon="fixed" gear="100"/>
<motor tendon="spatial" gear="10"/> <motor tendon="spatial" gear="10"/>
@@ -120,6 +133,7 @@
<general site="wheel_0" gear="0 0 0 0 10 0" dyntype="filter" dynprm="1"/> <general site="wheel_0" gear="0 0 0 0 10 0" dyntype="filter" dynprm="1"/>
<general joint="wheel_1" biastype="affine" dyntype="integrator" dynprm="1" biasprm="0 -1"/> <general joint="wheel_1" biastype="affine" dyntype="integrator" dynprm="1" biasprm="0 -1"/>
</actuator> </actuator>
<sensor> <sensor>
<framepos objtype="site" objname="wheel_0" reftype="site" refname="wheel_2"/> <framepos objtype="site" objname="wheel_0" reftype="site" refname="wheel_2"/>
<rangefinder site="rf"/> <rangefinder site="rf"/>
@@ -127,6 +141,8 @@
<touch site="wheel_1"/> <touch site="wheel_1"/>
<force site="knee"/> <force site="knee"/>
<torque site="knee"/> <torque site="knee"/>
<force site="cylinder"/>
<torque site="cylinder"/>
<jointlimitfrc joint="slider"/> <jointlimitfrc joint="slider"/>
<accelerometer site="head"/> <accelerometer site="head"/>
<subtreeangmom body="head"/> <subtreeangmom body="head"/>