<?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.027655362496414086 0.04081889702936846 0.0003099328474836068" pos="0.2960831024430925 -0.23174872978442973 0.2003099328474836" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04930500778577664 0.011780627153997109 0.0015573313453538938" pos="-0.10808755417719978 -0.018601723214853816 0.20155733134535392" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.030416928712615185 0.029248197493057657 0.0001615203077271591" pos="-0.11108614438171444 0.0033083537931558604 0.20016152030772716" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0036675740537285006 0.04630172317935351 0.00020088349081498838" pos="-0.07941104489661988 0.12747814192022605 0.200200883490815" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.020385642069628222 0.005988081951629516 0.003405700330751411" pos="0.22795896563364831 -0.2052751155805801 0.20340570033075142" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.00250771970057374 0.03756994068465556 0.001294616584729075" pos="0.1475224128149606 0.2511204399832195 0.20129461658472908" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0362631340995553 0.029974683645789528 0.0009241429755712927" pos="0.20257474341810006 0.1051104515060064 0.2009241429755713" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.013425378270392842 0.04589673434147807 0.004932783625063298" pos="-0.2980311951888233 -0.0302740943060697 0.20493278362506331" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014665457678259452 0.036681362210304394 0.000747882379087409" pos="0.035594065171198286 0.0852665344565009 0.20074788237908742" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.5362116170804998 0.5386986297574999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1464.02210744" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.8730758898408326"></joint>
            <site name="object0" pos="-0.1612116170804998 0.14630137024250012 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.004700047249745 0.004700047249745 0.004700047249745" file="mujoco_models/Cherry_MX_Cap.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/bubbly_0079.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>
    