<?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.007351333377321245 0.0012345818768174364 0.002813453761159775" pos="-0.23166353711318194 0.13321471856020783 0.20281345376115978" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03520770240963808 0.00964031246575997 0.004714536502001032" pos="0.13262604505949377 -0.12121784150584203 0.20471453650200105" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.035752454433588744 0.03686458360639527 0.0017769090231297068" pos="-0.07464686252312447 -0.08453609540801993 0.20177690902312972" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03121430373405163 0.04512009718046879 0.0009486468575200794" pos="0.225119765901791 -0.2834081060967945 0.2009486468575201" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0333565912029329 0.021307504786295017 0.003977279605939219" pos="0.1327188677585418 -0.011935315712889638 0.20397727960593923" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03254933779940724 0.02558688340429732 0.004076440506047228" pos="-0.0143496084190608 0.013893593995245479 0.20407644050604723" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.013275508734441749 0.030647107823713146 0.0015842335624821917" pos="0.046370408725789236 -0.19819313065555808 0.2015842335624822" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.00881398552471678 0.021434457318407686 0.00219141562404165" pos="-0.13913444105247655 -0.221041889779986 0.20219141562404166" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.002921316421480956 0.002236359537102991 0.0014305964210317309" pos="-0.02288793470283773 0.13574596878367623 0.20143059642103175" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024268713334986442 0.045298490152328806 0.00027257704241949465" pos="-0.1916036270756194 -0.0968913043379144 0.20027257704241952" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="756.540299359" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.749369010151747"></joint>
            <site name="object0" pos="0.0 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.00133264953921 0.00133264953921 0.00133264953921" file="mujoco_models/candle_holder.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/polka-dotted_0109.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>
    