<?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.035152843411066406 0.01980965790260777 0.004343628450175187" pos="-0.22594164776517278 0.23652742174399183 0.2043436284501752" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03178136139817396 0.03156136480703543 0.0007484033137814749" pos="0.22016500049393378 0.1820331067269822 0.2007484033137815" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02820704758154007 0.03934028157062333 0.0015878306631392806" pos="0.15633533588961895 -0.2848218187589945 0.2015878306631393" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.032346065908346315 0.04252140641138586 0.0009616446014193388" pos="-0.10721555422010734 0.15817134644155223 0.20096164460141935" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.034553097389572685 0.04921512440610029 0.0010599755810454358" pos="0.012686519852159628 0.06191907412369002 0.20105997558104544" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.032259127464116535 0.027361829118283176 0.0005909563362789959" pos="-0.09538510360280619 0.028392439815607906 0.20059095633627902" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04959076637949259 0.005142731018684788 0.003410447092427748" pos="0.20799171747234918 0.16996000105394332 0.20341044709242775" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3753919485539998 0.67520777746735 0.4130906428365" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="797.127464584" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.2388056920362756"></joint>
            <site name="object0" pos="-0.0003919485539998213 0.009792222532650108 0.006909357163499996" 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.00110524576207 0.00110524576207 0.00110524576207" file="mujoco_models/LowPolySchildkroete.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/braided_0165.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>
    