<?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.012495756155553529 0.015240815069398672 0.0035238015952509553" pos="0.16108998867615637 0.05242425038311488 0.20352380159525096" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04326969605986892 0.036044682419038666 0.0023669558351242298" pos="0.059959122542543764 -0.03474784304672712 0.20236695583512423" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.047578991324901905 0.025190194237477485 0.00038486739546581" pos="-0.27941192458712744 -0.0454079273091092 0.20038486739546582" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004715100063681326 0.04420416300329609 0.0046958928392963565" pos="-0.22512797962745298 0.013952707480898552 0.20469589283929637" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01744723123258373 0.04387658478889613 0.000292533418582861" pos="0.279179681140621 0.2149648305214849 0.20029253341858289" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.005315938454162598 0.042741856276471826 0.0034666797638503396" pos="-0.149166076733836 0.05731646110244887 0.20346667976385036" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01257694756490113 0.01274160679729025 0.0036404385772135523" pos="-0.1623609502609966 -0.04626372956828989 0.20364043857721356" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.049790464285020666 0.048725426037022804 0.0033367470192484715" pos="0.0818576388712488 -0.16758862492861756 0.20333674701924848" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007493436825897173 0.004158115366711963 0.0017020048156255968" pos="-0.09537494546311584 -0.003959093185827212 0.2017020048156256" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.67578042568345 0.36637549974249994" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="2309.19452309" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.5084022849679015"></joint>
            <site name="object0" pos="0.0 0.009219574316550072 0.05362450025750004" 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.00104056757793 0.00104056757793 0.00104056757793" file="mujoco_models/SEG-JellyFish.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/pleated_0063.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>
    