<?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.027888822947277077 0.0478816637618805 0.00031526031486865045" pos="-0.24518181672917913 0.21032777587799106 0.20031526031486865" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.030686935882223064 0.022532805830381725 0.0009546188392224655" pos="0.2502071103914542 0.23994889271068515 0.20095461883922247" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010314426341967171 0.022751640221518512 0.0045264765402427245" pos="-0.2350065157335851 0.10912295193646016 0.20452647654024272" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0413162603977636 0.005443562961855201 0.0020938152282495436" pos="-0.07493212646289737 0.05189708392022674 0.20209381522824957" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.011007633565489037 0.024574853608797943 0.0030331920673461027" pos="0.29249271400681215 -0.16252446897840175 0.2030331920673461" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01559702902561673 0.011819048538225494 0.003569878869401535" pos="0.09958468704623075 0.16245239996169591 0.20356987886940153" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01568490621631209 0.033118141424929824 0.0023735581958042916" pos="0.14023157746698917 0.2219748090880121 0.2023735581958043" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04222896600491879 0.018987374194227198 0.0019618490506578116" pos="-0.10832545165966237 -0.17904696322620245 0.2019618490506578" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004352705928828295 0.03552854199155514 0.0042319095247073495" pos="0.17816858567724925 -0.11133236035120708 0.20423190952470735" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.43582702942849993" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1540.75355" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.162272287333394"></joint>
            <site name="object0" pos="0.0 0.01000000000000012 -0.01582702942849995" 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.001004533906605 0.001004533906605 0.001004533906605" file="mujoco_models/Tree_3_pot_HD_base.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/potholed_0099.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>
    