<?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.016905815060787182 0.04883676057969513 0.0026856864348322185" pos="-0.09741533033136143 -0.1639755542773972 0.20268568643483223" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04119902832773411 0.008429015660150412 0.0016808646720564424" pos="0.0454880848594873 -0.0839203656929676 0.20168086467205645" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.018963963804216846 0.046228537353807095 0.003806408152884208" pos="-0.02867380048075735 0.103590724171919 0.20380640815288423" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04085372062639908 0.038743919495322604 0.003639848250735497" pos="0.11793278814118979 0.09543331159826168 0.2036398482507355" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03819732624583056 0.015282771000045409 0.0022282593965157107" pos="-0.15565878110912115 0.07122388382776174 0.20222825939651573" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03833321168394241 0.02109013913322751 0.0012048205235553086" pos="-0.20533804722086624 -0.044220299480834946 0.20120482052355532" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.037872845014569424 0.03003130170043457 0.0018772448460334704" pos="0.15298018319628548 -0.15101129823500925 0.20187724484603348" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04835808263470532 0.034325350517870015 0.0040190731811068645" pos="-0.09877984701569328 0.07166418271448127 0.20401907318110687" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024874533147610973 0.04700993575629902 0.0031077546217798792" pos="0.19660233405927569 0.026635695971798823 0.20310775462177988" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04342399488920484 0.025210943351510876 0.0013014118027826708" pos="-0.22842226502691432 0.0876089800035762 0.2013014118027827" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03386509517204485 0.04087198284334152 0.0004650759276642549" pos="-0.08108588050181001 0.25100310486963323 0.20046507592766427" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.43477827482949993" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1016.30275506" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.2982044151144267"></joint>
            <site name="object0" pos="0.0 0.01000000000000012 -0.014778274829499949" 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.000958382060275 0.000958382060275 0.000958382060275" file="mujoco_models/Tree_3_pot_HD_base.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/spiralled_0115.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>
    