<?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.01817802064558917 0.039373099565814675 0.0007288689573276641" pos="0.19376731450233464 0.022982534762793605 0.20072886895732767" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04741871638204926 0.02335347768799159 0.0016022237575301686" pos="0.24880489815499945 0.054558353280770355 0.20160222375753017" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007203492538317877 0.0283770309132798 0.0014207850913790295" pos="0.13923971487948866 0.035148719785860316 0.20142078509137903" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.006881494789376737 0.02248070576962352 0.00349336824041209" pos="-0.22279262421437704 0.059509300712979274 0.20349336824041211" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0021790662604814774 0.02612916658014499 0.00013284884386888132" pos="-0.08714176933883083 -0.07598225919354354 0.2001328488438689" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02284305783822231 0.04394757770194828 0.0008810247019121723" pos="0.04406873077841239 -0.12960163992024556 0.2008810247019122" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.045461458452731654 0.0034734107226541164 0.0008878144242152643" pos="0.1383231508006626 0.19704706189378762 0.20088781442421527" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0330033153866269 0.04872993355833085 0.0025106409238586833" pos="-0.09817684850076433 -0.26397476248349344 0.2025106409238587" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03268326647808722 0.02799234429801698 0.0012473242318740564" pos="0.15532006885609045 -0.2173418401957951 0.20124732423187408" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010637467630244032 0.010947258830441155 0.002943554794223909" pos="-0.27953485239797277 -0.039686301530821255 0.2029435547942239" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.353964095533 0.6922494416628999 0.41299831712749996" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="16861.1630479" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="0.663406350878528"></joint>
            <site name="object0" pos="0.0210359044670001 -0.007249441662899869 0.007001682872500026" 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.00084143617868 0.00084143617868 0.00084143617868" file="mujoco_models/Stackable_Square_Container.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/honeycombed_0161.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>
    