<?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.029420710226005533 0.014265996571750018 0.004510826072689708" pos="0.15260221796902895 0.17847645676555063 0.20451082607268972" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.018133977347981663 0.006485677824102649 0.0010984657836869579" pos="-0.2341068652776754 0.2914288525323316 0.20109846578368698" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03465776370129912 0.03295928545171835 0.0006666276987091263" pos="-0.2488194778792714 -0.21352610672521988 0.20066662769870913" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.033341199589936074 0.030886078362155598 0.003858628811596912" pos="0.0911630239844628 0.24950393224749662 0.20385862881159691" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01655044036172002 0.028214472746087026 0.003487618158430091" pos="-0.291265293862673 -0.2256089599195189 0.2034876181584301" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.028360426586841958 0.04666638149061879 0.0018741391927255015" pos="-0.2628480806068741 0.2763603311774105 0.2018741391927255" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.016871793750684396 0.04365763345595076 0.0042075255143397125" pos="0.16690790361042374 0.2825823824245412 0.2042075255143397" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04735674491741515 0.024497128010499605 0.0016260739199737229" pos="0.20704485314016435 -0.2271416834877512 0.20162607391997373" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3532789428979999 0.6928112668234999 0.41299826231549996" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="8888.75150459" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.106745995156068"></joint>
            <site name="object0" pos="0.02172105710200012 -0.007811266823499863 0.00700173768450002" 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.000868842284075 0.000868842284075 0.000868842284075" file="mujoco_models/Stackable_Square_Container.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/scaly_0207.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>
    