<?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.007305631129886995 0.02019418918166289 0.0034628928021653593" pos="-0.23951499199900902 -0.22321871468586785 0.20346289280216537" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.048947535401959515 0.03392570963103607 0.002581742217092945" pos="-0.05199294404564575 0.045944209403850134 0.20258174221709296" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021553031871301812 0.005363709134495848 0.0004958997086978796" pos="-0.17720013241096227 0.18581139269761132 0.20049589970869788" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004541257368087488 0.01585911779709181 0.0012141084150923867" pos="0.05650582481865346 0.105421415406041 0.2012141084150924" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01863888116363148 0.03449217677765632 0.0025001578656227963" pos="0.26719630137581313 0.001893741637198243 0.2025001578656228" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02576083378976824 0.002453896194431272 0.0036833644700707854" pos="-0.1845300966696276 0.039622628352827816 0.2036833644700708" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03554440036939531 0.032290437305142305 0.0004488914447803289" pos="0.11000668271563907 0.26560992807801326 0.20044889144478034" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.023320610279328826 0.004219754406222175 0.004406797747597078" pos="-0.04125723821619842 -0.2688163997575724 0.2044067977475971" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.045901682026934766 0.0017874801093582613 0.0023947657872877104" pos="-0.10755468606592536 -0.16292115584363137 0.2023947657872877" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.011151802029320854 0.01101989350220434 0.0011070170489779645" pos="0.2550020080068512 0.21212178264199327 0.201107017048978" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.022359905483701734 0.02844315149328182 0.0030630396990370726" pos="-0.23810855957366653 -0.06174902329975657 0.20306303969903708" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.5372097311775 0.537854743184 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="640.785202388" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.107371899632378"></joint>
            <site name="object0" pos="-0.16220973117749993 0.1471452568160001 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.00472914678676 0.00472914678676 0.00472914678676" file="mujoco_models/Cherry_MX_Cap.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/gauzy_0180.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>
    