<?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.037673929336894944 0.02554702961863836 0.003029944864957564" pos="0.13790763450992277 -0.21209544214842713 0.20302994486495757" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.015454877578086175 0.030865648912355735 0.0035387860972317404" pos="0.13230252003608145 -0.27317940403926183 0.20353878609723175" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.026304015894646766 0.045464421463322684 0.0033590035118721234" pos="0.26770359513048897 0.19268931318645816 0.20335900351187214" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04389742372519965 0.0015793597428867307 0.0016748877978461061" pos="-0.16292303739834674 -0.11546222722506291 0.20167488779784612" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.048378029614913866 0.03442006496688839 0.0035507275382611492" pos="0.09281880489118455 -0.172277657748894 0.20355072753826117" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.022722249755921253 0.026606884979734353 0.001920139312551013" pos="0.19858348274762794 0.24746598342409326 0.201920139312551" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.046878923801197465 0.03767573522585749 0.004382075305683425" pos="0.03063741705069939 -0.169129906207969 0.20438207530568345" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.013053981519669439 0.044876188993723455 0.004981843653197067" pos="0.058640813043437934 0.12300988819621556 0.20498184365319708" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007708447824978893 0.005608512602609971 0.0023835606388169558" pos="-0.055460647988904155 0.0901521366103496 0.20238356063881696" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6771328496079999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="375.028026969" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.854354361510905"></joint>
            <site name="object0" pos="0.0 0.007867150392000144 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.004758521010695 0.004758521010695 0.004758521010695" file="mujoco_models/nonagonal_pyramid.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/veined_0091.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>
    