<?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.0072602042755402565 0.04991644011824472 0.0020183252604191147" pos="-0.1404035307280418 -0.23928185781642464 0.20201832526041913" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02719232675634155 0.009049507695725038 0.0008138095803822942" pos="0.1365048896373835 -0.2598835950779965 0.2008138095803823" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0359444381061202 0.004412617487501505 0.002032136498058413" pos="-0.22503689104852925 0.29079522418835185 0.20203213649805843" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.012576038572944797 0.018858648954367212 0.00113552281146523" pos="0.02633043361679238 0.2533610506071466 0.20113552281146524" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024650268542759545 0.03736452538084549 0.0018389541477317128" pos="-0.13056644901616668 -0.24084044094789944 0.20183895414773173" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04852504286269506 0.01954709791202392 0.004380703736718673" pos="0.07181786519273525 0.1069275069004294 0.20438070373671868" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.023406066754642144 0.017035037191903336 0.0024210811937889548" pos="0.15982812678933395 0.2472566562134894 0.20242108119378896" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.025269268804176195 0.02701227217452265 0.003689044968486026" pos="0.2756078373935526 0.09469347803014744 0.20368904496848603" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.042652366022030645 0.02080178745972313 0.0009794851039306612" pos="0.12282882749358842 -0.1529614691660672 0.20097948510393068" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.044405879684870427 0.0048574567273940725 0.0024320734508240147" pos="-0.038167025680058975 0.21741250648115923 0.20243207345082403" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.371459304531 0.66452330441525 0.39253081754799996" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="2682.24099563" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.6576080230441685"></joint>
            <site name="object0" pos="0.0035406954690000436 0.02047669558475007 0.02746918245200003" 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.000905896530315 0.000905896530315 0.000905896530315" file="mujoco_models/TD_Mushroom_cap.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/chequered_0213.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>
    