<?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.009271589537615244 0.043041614682573844 0.0027183076349244924" pos="-0.11019377071398831 0.19279349312403044 0.20271830763492452" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04510545130394403 0.04795092522397997 0.00031729140071315437" pos="-0.10378056318322773 -0.19775226350858277 0.20031729140071317" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.022439384472447282 0.04240441823272885 0.0012279673172188625" pos="-0.007948471804570478 0.2352641797997032 0.20122796731721887" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.029539573871341738 0.016581668476425622 0.0021969409507040824" pos="0.21605617560022522 0.09074705547315276 0.2021969409507041" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.029050195343568036 0.013785949184037326 0.004797731348126065" pos="0.28367685493597433 0.05099915469835692 0.20479773134812607" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04078750527331427 0.012791261737410319 0.0032906322457989306" pos="-0.2217275415339358 0.23240528027107005 0.20329063224579894" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03792042788343089 0.007699177394027625 0.0006179724093828625" pos="-0.2370723240559678 0.0602768446114042 0.20061797240938287" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03508256915490989 0.008504747986703708 0.0012082614191657934" pos="0.2385559545233203 -0.26991891866742 0.2012082614191658" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3906219888815 0.6551652309806 0.4590136483495" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="529.294115193" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="0.8275931745204554"></joint>
            <site name="object0" pos="-0.015621988881499904 0.029834769019400076 -0.039013648349499996" 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.00138540484373 0.00138540484373 0.00138540484373" file="mujoco_models/chair_sds2.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/gauzy_0140.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>
    