<?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.02689353469287019 0.010547666967647647 0.004089534443643595" pos="-0.21125039157129588 0.017348406480750755 0.2040895344436436" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0030809906876163315 0.01908986626086224 0.0033921785394732556" pos="-0.2167748951360794 0.01492799527704125 0.20339217853947328" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.027403119273446255 0.04555840051074967 0.0023864839311296096" pos="-0.2529894694504139 -0.2124376236521251 0.20238648393112962" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014504823366366045 0.040148746860384416 0.0013500308099801792" pos="0.06565757506872111 -0.2529709861788367 0.20135003080998018" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010905125559736255 0.031337998464855354 0.0005808798937651261" pos="0.1293255541052809 -0.030539878456948888 0.20058087989376513" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01469918731790626 0.04382111236096808 0.003398474919899905" pos="-0.261489370587529 0.10211858273531427 0.20339847491989993" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010720582592961308 0.04609268671562092 0.0008532867483799302" pos="0.07001373378248948 -0.1545560975058089 0.20085328674837993" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04716615762021271 0.01689889258082678 0.002989219159112596" pos="-0.2222943742282843 -0.012376766544883178 0.2029892191591126" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03083297817134337 0.038764113266013984 0.0028296307197564234" pos="0.12215931124759821 0.21544890283785106 0.20282963071975643" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.015629280499990766 0.017668179762595878 0.0002449118706668882" pos="0.0325570877192517 0.28291855700792773 0.2002449118706669" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03706903226574247 0.04963669050436739 0.002326325174150867" pos="0.1484841470895999 -0.20327503664269736 0.2023263251741509" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021678316760063984 0.032537079763155174 0.002306529084410761" pos="-0.28216668952684354 -0.10989443429582416 0.20230652908441077" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="0.9936283440814999 0.6910757886197499 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1252.35065557" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.9792356280875667"></joint>
            <site name="object0" pos="0.3813716559185001 -0.006075788619749889 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.00419141529047 0.00419141529047 0.00419141529047" file="mujoco_models/wacom_intuos_draw_pen_holder.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/chequered_0186.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>
    