<?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.002711084701119684 0.028778843392339437 0.00023736545883391375" pos="-0.002136031598376109 0.05964787069067551 0.20023736545883392" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03210910557582985 0.04641705476569785 0.0015555793924178407" pos="0.2067395158430974 -0.028667271977751208 0.20155557939241786" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03368005311983399 0.040589227723209026 0.0036478017129531787" pos="0.17730035333336264 0.08164170432432 0.20364780171295319" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04023824983634149 0.045541660361908244 0.00453165232360275" pos="-0.10326706829749546 0.2831836964131527 0.20453165232360276" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0038256828192911557 0.0312037319781762 0.002526600332739411" pos="-0.1617143579042922 0.021088829147934196 0.20252660033273942" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004231778325304381 0.028131993721923442 0.004286880665181851" pos="-0.2154165524622595 -0.10478868795547694 0.20428688066518186" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03192504028153819 0.018605762655669347 0.002133514833023643" pos="-0.09692946110398784 -0.01039806263762344 0.20213351483302366" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01928660173263795 0.008068167839047891 0.001074182701373503" pos="-0.25245204598604243 -0.019405759368539888 0.2010741827013735" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.042424792790927965 0.005437003085874263 0.003327754937824324" pos="-0.04786610372789851 0.22282861295684225 0.20332775493782435" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.018802363745705236 0.035027726047865713 0.0020556499100265416" pos="0.02516906459268975 0.16496738486538676 0.20205564991002656" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04842499708902384 0.007609484930744136 0.002692575598258322" pos="-0.22063881456936163 -0.28169776791457274 0.20269257559825835" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6756079676217 0.376678557566" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="5382.60496035" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.7979716168124473"></joint>
            <site name="object0" pos="0.0 0.009392032378300108 0.04332144243399999" 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.000810623495615 0.000810623495615 0.000810623495615" file="mujoco_models/SEG-JellyFish.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/swirly_0067.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>
    