<?xml version="1.0" encoding="utf-8"?>
<mujoco>
    <compiler angle="radian" coordinate="local" meshdir="../stls/fetch" texturedir="../textures"></compiler>
    <option timestep="0.002">
        <flag warmstart="enable"></flag>
    </option>

    <include file="shared.xml"></include>
    
    <worldbody>
        <geom name="floor0" pos="1.42 0.75 0" size="1.0 0.7 1" type="plane" condim="3" material="floor_mat"></geom>
        <body name="floor0" pos="1.42 0.75 0">
            <site name="target0" pos="0 0 0.5" size="0.02 0.02 0.02" rgba="1 0 0 1" type="sphere"></site>
        </body>

        <include file="robot.xml"></include>
        
        <body pos="1.65 0.75 0.2" name="table0">
            <geom size="0.5 0.45 0.2" type="box" mass="20000" material="table_mat"></geom><geom size="0.015727401074146566 0.049535064268567436 0.00039025420876921614" pos="-0.2887207499881139 0.24463143528524672 0.20039025420876921" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.003976059830126568 0.0037173916740062176 0.0037835796528622916" pos="-0.22076056435852484 0.25169170686193315 0.2037835796528623" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024868523711629672 0.021689719616060744 0.0025710498248313314" pos="-0.21377436320160703 -0.2244440333946669 0.20257104982483135" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01563483638573509 0.026359433691673536 0.004746802314081915" pos="-0.20525301143947203 -0.15128871241287453 0.20474680231408193" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03333701899835719 0.012653913390551118 0.003975043897654241" pos="-0.053695438946027435 0.11435482201801656 0.20397504389765425" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.026966847825559845 0.04034634076805722 0.0045535995737610154" pos="-0.0636363564387798 0.02487468262537379 0.204553599573761" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.042797338802647224 0.007110019813045909 0.004313396208847312" pos="-0.033743408469040614 0.24668236073423505 0.20431339620884734" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.046400751908851026 0.03895723714844133 0.0004824192162664349" pos="0.017378140416271892 0.24889261104960964 0.20048241921626644" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.211497408531 0.6204991361769999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1596.84549331" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.802669240755921"></joint>
            <site name="object0" pos="0.16350259146900004 0.06450086382300013 0.007000000000000062" size="0.002 0.002 0.002" rgba="1 0 0 0" type="sphere"></site>
        </body>

        <body name="hook" pos="1.0 0.025 0.025">
            <joint name="hook:joint" type="free" damping="0.01"></joint>
            <geom size="0.4 0.015 0.015" type="box" condim="3" name="hook_base" material="block_mat" mass="2"></geom>
            <geom size="0.015 0.1 0.015" pos="0.4 0.085 0." type="box" condim="3" name="hook_head" material="block_mat" mass="2"></geom>
            <site name="hook" pos="-0.25 0 0" size="0.002 0.002 0.002" rgba="1 0 0 1" type="sphere"></site>
        </body>

        <light directional="true" ambient="0.2 0.2 0.2" diffuse="0.8 0.8 0.8" specular="0.3 0.3 0.3" castshadow="false" pos="0 0 4" dir="0 0 -1" name="light0"></light>
    </worldbody>

    <asset>
        <mesh scale="0.00054500863823 0.00054500863823 0.00054500863823" file="mujoco_models/vaso_5facce_v2_noforo.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/interlaced_0182.png" name="object"/>
        <material specular="1" texture="object" rgba="0.9 0.9 0.9 1" shininess="0.3" name="object"/>
    </asset>
    
    <actuator>
        <position ctrllimited="true" ctrlrange="0 0.2" joint="robot0:l_gripper_finger_joint" kp="30000" name="robot0:l_gripper_finger_joint" user="1"></position>
        <position ctrllimited="true" ctrlrange="0 0.2" joint="robot0:r_gripper_finger_joint" kp="30000" name="robot0:r_gripper_finger_joint" user="1"></position>
    </actuator>
</mujoco>
    