<?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.013678783069048912 0.010709815497033787 0.0012943837873247677" pos="0.19041126993956337 0.161127382605817 0.20129438378732478" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021928233614347342 0.001675313326604543 0.00488110166292934" pos="-0.220481413505782 0.21085360595534358 0.20488110166292936" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03930443124490687 0.04696571330385688 0.0038896528415179148" pos="-0.10117704550378284 -0.16085157395149832 0.20388965284151792" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01950685019991433 0.010951271355317056 0.0036259162639502586" pos="0.1959111794964663 0.08786333543834884 0.20362591626395027" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010118543834146003 0.0028318508404036402 0.0029439662075991255" pos="-0.02239613695223186 -0.18017764308058057 0.20294396620759914" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.019036111208794265 0.02753184652483871 0.0032012938501552396" pos="-0.01401373347430901 0.28283569304124473 0.20320129385015526" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0032650936230719453 0.03325218773831803 0.004556833718760346" pos="-0.158061473332065 -0.17177568715851738 0.20455683371876035" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03834940756664653 0.024832315911156564 0.004961669782819622" pos="0.05347417229502732 0.2540651600927956 0.20496166978281963" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0015983154635076733 0.008572441403309553 0.003453653319282789" pos="-0.050120178061532406 0.20157874165738815 0.2034536533192828" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02201600653526939 0.035936838121394296 0.002874184083463945" pos="-0.2280578596028263 0.1307707240242194 0.20287418408346394" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03561221826603721 0.006670189409447521 0.0028533661432578717" pos="-0.09860998947076896 -0.02469013077253468 0.20285336614325788" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021715175958508023 0.006133945808210242 0.0008743126328272709" pos="-0.24791483031380987 -0.18453179183798285 0.2008743126328273" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.042769774938389536 0.0022016098138837124 0.0022149245264055945" pos="0.18056183322185443 -0.23984507728356594 0.2022149245264056" 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="9807.44664511" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.185888812513968"></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.001139684165055 0.001139684165055 0.001139684165055" file="mujoco_models/Bishop.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/scaly_0193.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>
    