<?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.0416289663669822 0.02302521232624345 0.003909583528240048" pos="0.16078561785072482 0.26715219608157065 0.20390958352824007" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.045862859615962766 0.032908336577925884 0.0031051861121505786" pos="0.21083249496143647 0.13786628309344212 0.2031051861121506" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02226849312606636 0.014136778326794205 0.0018285793218139508" pos="-0.12192821395224732 -0.04312891021987397 0.20182857932181397" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04931393629010108 0.0455282182728926 0.0015249714807468897" pos="-0.17223485453166545 -0.27638653377923217 0.2015249714807469" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04892161701721011 0.029545644653758665 0.0048325565024659655" pos="-0.030395390769271502 -0.21435873061959998 0.20483255650246598" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04962735098467887 0.0072119587464342496 0.0004556783566068698" pos="-0.21930455932148823 0.14545382203398216 0.20045567835660688" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007486117040857841 0.02898667045100785 0.0012870806333934992" pos="-0.07277327076283316 -0.0890441289844063 0.2012870806333935" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.023758085343252158 0.014789353384016272 0.0043658096824610694" pos="0.288757227692696 0.009821190895620557 0.20436580968246107" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3623491896725 0.6731956215938 0.4130010337319999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="10035.5051412" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.6351180187342593"></joint>
            <site name="object0" pos="0.01265081032750004 0.011804378406200078 0.006998966268000062" 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.001033731772235 0.001033731772235 0.001033731772235" file="mujoco_models/quilava_with_frills.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/studded_0123.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>
    