<?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.02739670442469075 0.022101921161150916 0.00409297188068059" pos="-0.1818691853621599 -0.13699118512095312 0.2040929718806806" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.032346625142849 0.02011284382779146 0.0015850395171082905" pos="-0.1472304389390881 -0.0085615280022735 0.2015850395171083" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.039001306742747474 0.04046097194286087 0.003973791533358791" pos="0.2313871504044151 -0.2695549016163471 0.2039737915333588" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04912862613559056 0.021896613097641262 0.0010456123289343197" pos="0.2820136700205789 0.19510939372567898 0.20104561232893434" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04655645406680709 0.026634532561934397 0.003763935063115526" pos="0.011678422664570087 0.023670068286873347 0.20376393506311555" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.047623547255944775 0.037179492198462796 0.0028772112535527137" pos="-0.06435884134071607 -0.20140341683135327 0.20287721125355274" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.00667078835419544 0.015683641131294477 0.0034947412914668897" pos="-0.18506842874057422 -0.22112271804557632 0.2034947412914669" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004810111471683855 0.04246621962196783 0.0012818301266263074" pos="-0.17948972154842807 -0.06548767926445692 0.20128183012662632" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03184482382380065 0.02972672810450534 0.004625923253712221" pos="0.10918327822892837 0.03718293005855683 0.20462592325371223" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03586831019402168 0.03352245091641587 0.0038606437642170134" pos="0.04345578770898467 0.18437447703292992 0.20386064376421703" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04510280794183187 0.03512736464131377 0.0018523373044052223" pos="-0.13201305863828516 0.08231139912714391 0.20185233730440524" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.031940027775448646 0.0021716176287298284 0.0037608360091762" pos="-0.16687530790334973 -0.2673059027157382 0.20376083600917622" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3750043251619999 0.6749999999999999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="117.426234428" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.674440625820481"></joint>
            <site name="object0" pos="-4.3251619998851965e-06 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.0113879753665 0.0113879753665 0.0113879753665" file="mujoco_models/Thumb_Screw.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/zigzagged_0008.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>
    