<?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.015109234398349065 0.01791244142157717 0.0036135566769432974" pos="0.14697849237291793 -0.05433733633694615 0.2036135566769433" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007740489473774493 0.0480380395476783 0.0036521633518992076" pos="-0.062203654810231546 -0.09486099096705622 0.20365216335189923" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04160555047175966 0.0248177662466058 0.002168259408424492" pos="0.10329902925783918 0.2681494057703802 0.2021682594084245" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.028119362780591677 0.04182193748308424 0.0037738224368972003" pos="0.08739948519941415 0.24045741553876182 0.2037738224368972" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03948116148872103 0.007822256714616132 0.0013058226344962215" pos="-0.0034934302379890925 -0.016902573455516434 0.20130582263449623" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.013464200578604674 0.015922369818987415 0.003137966983060259" pos="0.20801046709500143 0.2953526495313738 0.20313796698306028" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04330661500150817 0.006040089259284215 0.0040368712414469085" pos="0.28380018941412294 -0.018002945633000644 0.20403687124144693" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007587168138682213 0.005737135503499443 0.0028604161580378915" pos="0.04443451137935134 0.08160998907533229 0.2028604161580379" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.028379555013246318 0.030190043942608276 0.002114276937202625" pos="-0.046579255628541316 0.25057880352081835 0.20211427693720263" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.00203647632721061 0.035293799786537045 0.0005523899361876784" pos="0.2461371969032437 -0.21005435375691836 0.20055238993618768" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.017639636667714547 0.006418274107978914 0.002194891723554002" pos="0.07136448491252617 -0.21199024011876164 0.202194891723554" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0054247930975339755 0.02253670510616581 0.004871807201814464" pos="0.013687874490291185 0.13230442816146093 0.20487180720181447" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01114501515312255 0.004204805864259651 0.0008037107909357861" pos="0.22085904031123743 -0.26066559753009516 0.20080371079093579" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03314441853956553 0.031198508717163946 0.0005878168575040999" pos="-0.1768638842451658 -0.12474994958880589 0.2005878168575041" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.67500002765235 0.41311575269699996" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="274.297565397" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.4950456213188406"></joint>
            <site name="object0" pos="0.0 0.009999972347650044 0.006884247303000024" 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.00362444756252 0.00362444756252 0.00362444756252" file="mujoco_models/circ-sq-tri.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/cobwebbed_0065.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>
    