<?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.014684164147442794 0.043936765953890684 0.0001152853400466829" pos="0.008776198306845506 -0.16859937742052536 0.2001152853400467" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.045809593845200815 0.04551911218635172 0.0023400349733028363" pos="-0.1269142862531788 0.05902712566731555 0.20234003497330286" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004946813164234633 0.049914559544119275 0.003868496883210971" pos="0.2675051703002506 -0.2804035872754393 0.203868496883211" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.019889568300559612 0.04137310257192859 0.0032876920038760887" pos="0.206263468080153 0.07887095270799854 0.20328769200387609" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.008924648640496427 0.012716955694469404 0.0026773553069598683" pos="-0.13185148958527412 0.12669953417803315 0.20267735530695988" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0011189527841138605 0.04678952603757456 0.003657959547310719" pos="-0.03323235512952594 0.10092093462646118 0.20365795954731072" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03827454082522259 0.010858571965946716 0.004748542688258097" pos="-0.13398553391274468 -0.18434197249943926 0.2047485426882581" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03769601132495946 0.025263414935804168 0.004697658022627634" pos="0.15155582276971646 -0.2675142839727278 0.20469765802262765" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04227853726238325 0.007674603952322652 0.0027735235860989857" pos="-0.04573826329061881 0.2926362876572067 0.20277352358609899" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04129448758082082 0.03775577077812961 0.000735030815960658" pos="0.0013172999629321724 0.24065946870036042 0.20073503081596067" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.001564428447425588 0.012254836593575343 0.004715095737579818" pos="0.21473865871978853 -0.10622960879464252 0.20471509573757982" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.016080406003675943 0.03218455870811601 0.0021708017423883344" pos="0.2781855463338501 0.269806488841523 0.20217080174238836" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04141904936054231 0.027473565799611327 0.002561214511463825" pos="-0.005705809750933266 -0.01050349572101289 0.20256121451146383" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03595601846954252 0.02341243134184274 0.0017845430832047467" pos="-0.10884632625980267 -0.06267967623010925 0.20178454308320476" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3566781819634999 0.6225805591425 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="15396.4838035" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.560728302062283"></joint>
            <site name="object0" pos="0.018321818036500126 0.062419440857500064 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.00101787877981 0.00101787877981 0.00101787877981" file="mujoco_models/Keysafe.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/braided_0158.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>
    