<?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.010752070741811753 0.015956319791172725 0.0005612048864925823" pos="0.0630782531264128 0.1298938976119972 0.2005612048864926" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0421034242699121 0.03817941831565379 0.0025044901597499926" pos="0.11758793610481877 -0.005039648167098343 0.20250449015975" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.026952910226412777 0.03618366168979161 0.0021469692077187743" pos="0.008931694968749848 0.2840956843111236 0.2021469692077188" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.022083415130190773 0.026307265621401565 0.002283333213242018" pos="-0.18235198357894378 0.047001379403635246 0.20228333321324202" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.036878368911473544 0.003922516409126002 0.0014529680741435752" pos="-0.15940267487381188 0.17585618272780784 0.2014529680741436" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03944866020557596 0.032946812654880725 0.00014455313255713634" pos="0.23902665673608287 -0.14009602420169864 0.20014455313255713" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.027481882074093973 0.014252853150223042 0.003199783579919484" pos="-0.24430423136954815 -0.23405336967471999 0.2031997835799195" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.012406022796584822 0.04275879460208965 0.002667344925764872" pos="0.006278231283212199 -0.03358019567732112 0.20266734492576488" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03926002378248063 0.04152832255115157 0.0012407516315738546" pos="-0.05551165015543952 0.25912605058539856 0.20124075163157387" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0019886349820260217 0.0033892530747111497 0.004030964247400402" pos="0.045154898429237034 0.045925635116072505 0.20403096424740041" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.008123883269581689 0.018565251053743542 0.004323515104460772" pos="-0.20028660505466106 -0.15217949271630524 0.20432351510446078" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.361270042752 0.6827131639091 0.41300000005299997" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1549.84421834" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.13036208477838"></joint>
            <site name="object0" pos="0.01372995724800008 0.0022868360909000796 0.006999999947000013" 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.00252435406057 0.00252435406057 0.00252435406057" file="mujoco_models/heXS34oh3pk.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/bumpy_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>
    