<?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.027578990559748974 0.025644875555429672 0.00044594097236368293" pos="-0.04948815888003294 -0.199100365041741 0.2004459409723637" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02426386048344448 0.04484902600230915 0.0029527378027263316" pos="-0.20793347075112864 0.16256802604772658 0.20295273780272635" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.027408071953658856 0.022135488049059134 0.001928840815947249" pos="-0.27025932827307014 -0.10886718493788339 0.20192884081594725" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.023006069254089098 0.016513757654521538 0.002955218149707453" pos="0.0012879318560862218 -0.2280766103109036 0.20295521814970746" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.008705490236382844 0.043338975555009526 0.0049918236319072325" pos="-0.12262571567341718 -0.11433552462621957 0.20499182363190724" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03654085595475753 0.042768244791461976 0.0005862930573082861" pos="-0.25023646730411836 0.2928637355801879 0.2005862930573083" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.032694352388177306 0.03905175461753252 0.003421104502823293" pos="0.134461716928526 -0.1410825779596817 0.2034211045028233" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021940932629672016 0.04405331006495309 0.0011037759077290766" pos="0.062227022624997685 -0.04821376834854507 0.2011037759077291" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.046285324374846656 0.028719952792628015 0.0010774333880443946" pos="-0.2912699159090471 -0.277185759974218 0.2010774333880444" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0431096607346445 0.039791168861310816 0.0005425655823531329" pos="0.035991057861336884 -0.25779935640862006 0.20054256558235314" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04569927844421322 0.01075758220362608 0.002233593294200925" pos="-0.014163459622390795 -0.026549235761541168 0.20223359329420093" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3503489669759998 0.6952138470795549 0.41299802791749995" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="12097.6338642" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="0.4957667007785117"></joint>
            <site name="object0" pos="0.02465103302400018 -0.01021384707955486 0.00700197208250003" 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.000986041320955 0.000986041320955 0.000986041320955" file="mujoco_models/Stackable_Square_Container.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/scaly_0208.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>
    