<?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.0457611348814504 0.015291595375173248 0.0022846080444980455" pos="0.19372759725319105 0.06885403772883697 0.20228460804449805" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.017228305098818664 0.04484018253551513 0.00013626068640509707" pos="0.210653749637342 -0.1503240435822001 0.2001362606864051" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04920765924396395 0.0029960601633869034 0.0008200638561345206" pos="-0.13755672659351517 -0.22090519397676261 0.20082006385613455" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.015776143728046796 0.029603618031466418 0.0007265544740455567" pos="0.12252388419110949 -0.035917640828271924 0.20072655447404555" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03379420143745265 0.020616711768276726 0.0027570011998602367" pos="-0.19808401218986965 0.1917329298534362 0.20275700119986026" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03639328764975493 0.011993507173001974 0.0012389915159178129" pos="-0.16257455665565126 -0.20989225963264307 0.20123899151591781" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.028095703766095718 0.010362038065378283 0.002267983517515216" pos="-0.2068413788465151 0.04674040433160476 0.20226798351751524" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004127377129466097 0.04123730851298623 0.0017777446345589574" pos="-0.23990920407324184 -0.0008368553706009085 0.20177774463455897" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04509460303482729 0.026585981204533583 0.003129512471773356" pos="0.1431316209988157 -0.28050609193203124 0.20312951247177335" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.041118150014648844 0.003608630881694104 0.0006063701695521779" pos="-0.24095682100841406 0.2758662130065705 0.20060637016955218" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3519155455104999 0.6939292526812 0.4129981532435" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1103.48504883" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.847136364981655"></joint>
            <site name="object0" pos="0.02308445448950014 -0.008929252681199928 0.0070018467565000075" 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.00092337817957 0.00092337817957 0.00092337817957" file="mujoco_models/Stackable_Square_Container.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/dotted_0156.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>
    