<?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.030980152643578035 0.02090578901234065 0.0044488591482827805" pos="0.039339383522161375 0.24150663155177038 0.20444885914828279" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04504264891041344 0.03816996583325906 0.0027854513104689123" pos="0.09253175696372912 -0.16674908609737318 0.20278545131046893" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04603724053217628 0.043127060138966326 0.003957002106510202" pos="-0.2847113862481144 -0.18328370905109864 0.20395700210651022" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.045918173330714775 0.04064364248826527 0.004246182149809771" pos="-0.05725829967944654 -0.14617516176886028 0.20424618214980977" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04464419300240595 0.019274810863923374 0.0015644658327336983" pos="-0.11948261209502478 0.22945943309339084 0.2015644658327337" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009669572628084162 0.04181490963720145 0.0024400818909795265" pos="-0.14331375391332393 0.0505387422954649 0.20244008189097953" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014670582816795546 0.026229545237242188 0.0031070115286264397" pos="0.049814295459396696 0.18974236147790396 0.20310701152862645" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.031319573302143563 0.011811335628304366 0.00154497634565972" pos="-0.0586933609003511 0.16169240187971085 0.20154497634565974" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.045304939770213624 0.0022020854194628003 0.004967748925748728" pos="-0.005122785557783227 -0.22095358916577176 0.20496774892574873" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.028706642754614504 0.023468134015766046 0.0003416755634257445" pos="0.046574575217288805 0.2589426978422535 0.20034167556342575" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.349138289917 0.6517244609251499 0.37420743487549996" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="3550.26065385" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.7305847006700967"></joint>
            <site name="object0" pos="0.02586171008300009 0.03327553907485015 0.04579256512450003" 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.002586171008315 0.002586171008315 0.002586171008315" file="mujoco_models/Simple_Filament_Guide.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/honeycombed_0044.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>
    