<?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.03583586648775182 0.0415152758575622 0.004633168340991964" pos="0.18887829527977135 0.2773665448974269 0.204633168340992" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04754321053817033 0.016727127428567783 0.0020223045904785796" pos="0.04512347665963862 0.11432771778309048 0.2020223045904786" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02377057786913671 0.03960068239767919 0.0031968333829706223" pos="0.05752216738542015 -0.21276292860507645 0.20319683338297062" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009394407105768183 0.016351074224018037 0.004816127519869776" pos="-0.2542737911946811 0.2761507426297129 0.20481612751986977" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024378254339384797 0.02236210140654668 0.004249711333129192" pos="0.19888568880662322 -0.21960959470083735 0.2042497113331292" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04077547559497085 0.02602446476258608 0.0016833227647015277" pos="-0.23497246250694745 0.05533664306974412 0.20168332276470155" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.039236243784053715 0.04439805126595039 0.004860933603750633" pos="-0.22608688733275492 -0.061929599782964334 0.20486093360375066" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.00338514652378772 0.03215145518635869 0.004449581087257397" pos="0.11235784132878601 -0.06677451840975412 0.20444958108725741" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.038236268943454256 0.04983403421786687 0.00010549799291528428" pos="0.19683348619857183 -0.10423702987851527 0.2001054979929153" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03760625704958451 0.012615002150016149 0.0010889199828384682" pos="0.18575888201795876 0.16043290118569353 0.20108891998283848" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0407498040525604 0.03810966669457284 0.0005697240248549883" pos="0.22972704951664552 -0.0734294706155435 0.200569724024855" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.011763561141803984 0.028810781098757274 0.0017947373060375686" pos="0.1259218646138232 0.11677116718732466 0.20179473730603759" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="238.067037373" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.0337369363012112"></joint>
            <site name="object0" pos="0.0 0.01000000000000012 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.005315145417 0.005315145417 0.005315145417" file="mujoco_models/hexagonal_prism.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/swirly_0058.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>
    