<?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.028219267822840052 0.029539956800189452 0.0012895456127527552" pos="-0.16236261780589542 -0.17827341876067532 0.20128954561275278" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02735545185624361 0.030828328472142785 0.0030840118531088585" pos="-0.19067346853635878 -0.2301153216453175 0.20308401185310887" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.028395860218751116 0.04128646756870375 0.0010485016381783833" pos="0.15325710703569573 -0.03315227868259052 0.2010485016381784" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004473205053305351 0.008734107641419308 0.0006650828427902016" pos="-0.03908169076940782 0.12107370984088661 0.20066508284279022" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.00989947467681851 0.007694802447835846 0.003125222680239818" pos="0.15315944185252306 -0.08453997750784514 0.20312522268023983" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04777219932035043 0.003615558729584318 0.0038041036719053843" pos="0.20861059872150517 -0.08400168144968281 0.2038041036719054" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04231308083934907 0.032157288396202646 0.0024097006174119513" pos="-0.15199857521684365 0.2270283999894735 0.20240970061741195" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02417145903798833 0.037462215356361274 0.0035203068085578157" pos="0.0531471319155965 0.270478498258052 0.20352030680855782" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01814176146594451 0.01337823028400939 0.0024311378502772946" pos="-0.09561127903077596 0.2258512862335575 0.2024311378502773" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.006738281538909877 0.011185089277351904 0.0013856714765740463" pos="0.046330860531873075 0.012593721015587644 0.20138567147657405" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009900141940545532 0.023833575290681308 0.0016698577012983903" pos="0.28643420066086184 -0.11556680177755357 0.2016698577012984" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6836488796947999 0.44759551877899995" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="6410.51309144" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.571718592415965"></joint>
            <site name="object0" pos="0.0 0.0013511203052001264 -0.02759551877899996" 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.003459551877915 0.003459551877915 0.003459551877915" file="mujoco_models/triangular_prism.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/stained_0059.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>
    