<?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.04553099930570571 0.04721542494898591 0.004768358842662084" pos="-0.22887758914819745 0.20006159728765877 0.2047683588426621" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.002006475306054545 0.04365079180661801 0.0006545540284787312" pos="-0.0008598681736722291 0.23145046219502324 0.20065455402847873" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02070522112343637 0.041750021173410555 0.004207510105458137" pos="0.0052254728691051855 -0.05152448537844484 0.20420751010545815" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.040659931551806534 0.02333243544121096 0.002906010599272772" pos="-0.1277449316165543 -0.12983646785586844 0.2029060105992728" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.032617913633191754 0.03641206382167889 0.0030822031346861" pos="0.21981364944397702 0.2116503173537106 0.2030822031346861" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014031531789561028 0.049194240408338745 0.004217023716507884" pos="-0.028234212816691306 0.05217376169534216 0.2042170237165079" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.015340372411789083 0.012030485414972345 0.004694661458290234" pos="-0.17884209589557265 -0.23103815206831552 0.20469466145829024" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04155087998140024 0.028721364500305647 0.004861249688026412" pos="-0.22649149275456326 -0.17069536741867888 0.20486124968802644" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04425989788275628 0.02483629615011403 0.0047073936974968734" pos="-0.1893993898127893 0.11418714067072772 0.20470739369749688" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.019962573652184037 0.04650918139581089 0.002345884358797099" pos="0.19186476806678177 0.22055960140171632 0.2023458843587971" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02018018968706342 0.011121915552510443 0.003922634305411338" pos="0.062012794606274624 0.22973541761907784 0.20392263430541135" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.073224947749 0.6877205886315999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="2560.05097724" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.4560110947309717"></joint>
            <site name="object0" pos="0.3017750522510001 -0.0027205886315998518 0.007000000000000062" 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.003316619231285 0.003316619231285 0.003316619231285" file="mujoco_models/wacom_intuos_draw_pen_holder.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/banded_0022.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>
    