<?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.028369711719705665 0.0010401956286880483 0.004507937622946202" pos="0.08277468430586993 0.2519789651093483 0.20450793762294622" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03961467088567489 0.005479669459847856 0.004966916101623314" pos="-0.15774235718330956 -0.04723299879002901 0.20496691610162332" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04221305426815105 0.012736211676619324 0.004782351647681411" pos="0.08518181673411884 0.26375486633140327 0.2047823516476814" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009684806430032458 0.032062164140894606 0.0006277072108306556" pos="-0.15649921933402203 0.173253654114282 0.20062770721083067" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04843783739558168 0.007069213259220679 0.002730878005274875" pos="-0.2738202532947912 -0.008277824219209529 0.2027308780052749" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.016219948600124538 0.03362823347492639 0.0012487456322737163" pos="0.160210268179533 0.2164107408596841 0.20124874563227374" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.025026559785001307 0.04620109885949076 0.004441179595874847" pos="0.08716080884327693 0.09994338496951455 0.20444117959587485" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014092920708500517 0.03568707297294985 0.000312930779323875" pos="0.2442302502144001 0.22678275664528574 0.20031293077932388" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0042467424906560015 0.03534649676430147 0.004381557673327195" pos="0.04842625634608427 0.18951292635505695 0.20438155767332722" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0367898284703792 0.02833106228980992 0.0009840127838433418" pos="-0.02323816010927232 -0.2303724277897302 0.20098401278384334" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009782080247687286 0.04144056906516869 0.0037786253231907757" pos="0.13986810153881168 0.15313021378581387 0.2037786253231908" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.46111095009399994" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1603.62198058" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.4034480925430235"></joint>
            <site name="object0" pos="0.0 0.01000000000000012 -0.041110950093999954" 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.056444444283 0.056444444283 0.056444444283" file="mujoco_models/Low_poly_bowl_or_cup.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/bubbly_0128.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>
    