<?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.016078948585750527 0.03476680371165063 0.002118540229655262" pos="0.21418625187082735 0.2341062825532833 0.20211854022965528" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03644281916387077 0.0472433932222251 0.0030954994713520414" pos="0.14079642945370074 0.09199172873270939 0.20309549947135205" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02574046986328197 0.04199997384422235 0.0019443374357298144" pos="0.16384255487011729 0.03327644119751244 0.20194433743572981" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.011518539051688433 0.04754903365479117 0.0037614259529749647" pos="0.19997109490443804 0.08956109810675061 0.20376142595297497" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.022939842064747074 0.023506071409009677 0.0033394293908638032" pos="0.06651334314236507 -0.2772583911036583 0.2033394293908638" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.038820310185238384 0.033835790096562464 0.0019117941323361755" pos="0.21874107345458654 -0.22404510528244648 0.20191179413233618" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03754239596172871 0.01147459507931467 0.003165198866924669" pos="0.0890482275738782 0.2164916317844499 0.2031651988669247" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04294107770547417 0.033671067085660235 0.0035965428208391314" pos="0.08336055637231865 -0.07665604232030124 0.20359654282083914" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.001727523854404753 0.03277567057298272 0.002605344506574106" pos="-0.08114217034577795 -0.19786010736106863 0.2026053445065741" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014722559160899429 0.00940742614171023 0.0018965289210484903" pos="0.10914431361578286 -0.230596055464762 0.2018965289210485" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01668893693900705 0.014879009787633589 0.0005889574354335752" pos="0.016845307229010287 0.023966285743553972 0.2005889574354336" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6845797779923 0.451319111969" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="4125.00570987" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.7393033489395973"></joint>
            <site name="object0" pos="0.0 0.00042022200770008844 -0.031319111969" 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.003831911196915 0.003831911196915 0.003831911196915" file="mujoco_models/triangular_prism.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/cracked_0166.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>
    