<?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.018135897051674815 0.0036076025789334608 0.0019574339045324253" pos="-0.23150919256613373 0.037087747081377576 0.20195743390453244" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.032438092985387426 0.0493674852971581 0.0010561794450712559" pos="-0.17567871071852165 0.2684517111538591 0.20105617944507126" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.043367401084384104 0.031186648422423725 0.004222895460076024" pos="-0.17418471316710693 0.22441729371806157 0.20422289546007605" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04349806797405739 0.01315750017552307 0.0025910292398734105" pos="0.2578645583346026 0.10748999770049111 0.20259102923987343" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.033365436160716286 0.028428465427653933 0.001417274666996926" pos="0.28704922290675533 -0.03149421262669028 0.20141727466699694" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01626105473109523 0.03670045477440708 0.003077753584976291" pos="-0.09465521507723243 -0.11772504548577759 0.2030777535849763" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.011510827572964087 0.004845835400272714 0.0031659834419443676" pos="0.0034161828862531163 -0.1590909535482923 0.2031659834419444" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.003701101753584771 0.0019261523449244213 0.0037186300553590746" pos="-0.18704808650689803 -0.140013828366296 0.2037186300553591" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3754379866889999 0.6752321829332499 0.41310128971099996" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="3170.43808475" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.8080617518655941"></joint>
            <site name="object0" pos="-0.0004379866889998585 0.009767817066750117 0.006898710289000021" 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.001235067528115 0.001235067528115 0.001235067528115" file="mujoco_models/LowPolySchildkroete.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/matted_0076.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>
    