<?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.02433491916110944 0.043727913676311264 0.004907771496381769" pos="-0.2544004955167872 -0.2829259113371302 0.20490777149638179" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03333983281150824 0.009397471945325538 0.00010739622869125997" pos="0.13062893316015772 0.1826224755588179 0.20010739622869128" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0299145818738094 0.025039147462640486 0.0003172017343911308" pos="0.0013961865374047533 0.0753740113208256 0.20031720173439113" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04491466154421127 0.022453965713286592 0.0012311888037482071" pos="-0.2837540696225614 0.10959426081660983 0.2012311888037482" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04180247489369027 0.016003569343375715 0.0031233438673573866" pos="0.09580867357545869 -0.28600515097640833 0.2031233438673574" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.013245966221841779 0.03521505288348222 0.0049990886641683215" pos="-0.12030353305345967 0.2547341474443359 0.20499908866416833" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024609388791359977 0.00655944175842419 0.0025088156584898475" pos="-0.11153531691125851 0.10643943729566036 0.20250881565848985" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0019666071819696507 0.036520032224076154 0.003987943213120769" pos="-0.05510950238062742 0.14658231008477024 0.20398794321312078" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04227480678321134 0.02154488909785913 0.0033430884204263124" pos="0.05024509573878627 0.16672670812814805 0.2033430884204263" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.002551487829943172 0.03477444752708019 0.001396770598979228" pos="0.05742972146377423 0.19467153141650434 0.20139677059897923" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3890270292834999 0.6571903031699999 0.45431578877199996" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="61.0275799579" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.2541586063155483"></joint>
            <site name="object0" pos="-0.014027029283499859 0.02780969683000012 -0.03431578877199998" 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.001243959041295 0.001243959041295 0.001243959041295" file="mujoco_models/chair_sds2.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/scaly_0139.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>
    