<?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.0031855226855844847 0.027947555548211416 0.0025017244466808675" pos="0.016580593023508228 -0.19534536469734953 0.20250172444668088" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03280782247923423 0.021227866488765523 0.0036123400409474715" pos="0.21982283430091915 -0.09315833324622139 0.20361234004094747" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004596602671091636 0.02212463789407284 0.002556792102231275" pos="-0.1005144847945697 0.11320640342648819 0.2025567921022313" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024056643915417345 0.009574651002645932 0.0015681568402717563" pos="0.050050849710565726 -0.2230691611651054 0.20156815684027177" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.026023292754557347 0.004070302226710263 0.003495418999821618" pos="0.12179143981231894 -0.2692312497427611 0.20349541899982163" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02598763037553178 0.040150893739359296 0.003721882968134782" pos="0.10252196136100067 -0.06239115333600176 0.2037218829681348" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01636361141974014 0.04760193792685707 0.0018049963017998613" pos="-0.24236625392455502 0.17511584933170538 0.20180499630179988" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04554348712862812 0.01889668688552649 0.0001777985483763142" pos="0.14797316534902516 0.09426898371743336 0.20017779854837633" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009649782720101079 0.017084315283113445 0.0024665239260267444" pos="-0.07019505766333972 -0.03373099119848377 0.20246652392602676" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0458804545905891 0.03688717998076658 0.002118422012688418" pos="0.03975097060032168 0.2784006183874898 0.20211842201268843" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04918347099387909 0.02856638948705212 0.0025782904077325908" pos="0.2275992114055369 -0.16405650897765026 0.2025782904077326" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.029716632796345906 0.03026247666434515 0.004570810032641506" pos="0.11954642318104441 -0.07022120188611836 0.20457081003264152" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03072164476215401 0.023851069207435162 0.002392483568854645" pos="0.14018727215802573 0.01965868772792817 0.20239248356885467" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04200582036196316 0.02273720876562992 0.0030889416856149966" pos="-0.12106421454840957 0.10418497584469821 0.203088941685615" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.45906286031 0.590919812604 0.41299930488099995" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="366.51929844" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.1699513927988954"></joint>
            <site name="object0" pos="-0.08406286030999999 0.0940801873960001 0.007000695119000033" 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.000467111439444 0.000467111439444 0.000467111439444" file="mujoco_models/lspike2.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/lacelike_0100.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>
    