<?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.044940304910628025 0.04700655222083924 0.0032758049411296462" pos="-0.07710847125082565 -0.10032204653539695 0.20327580494112965" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.005171954988603339 0.04118057943033982 0.004372468090896414" pos="0.09166272461112035 0.01603524633693887 0.20437246809089643" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04687181455593967 0.03787498135810281 0.0018919376148592145" pos="0.07750860265762466 -0.11644905546484594 0.2018919376148592" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.003932421480328149 0.0464006839366274 0.004444496886052122" pos="0.29667726133166267 0.13249415784437812 0.20444449688605212" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.015418744529346301 0.03426152460602638 0.0017149757095903779" pos="0.22965557727219005 -0.04388848213588542 0.20171497570959038" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.046228807505016734 0.007394383125186688 0.004822509817721545" pos="-0.050602972695142995 0.19986742791476275 0.20482250981772154" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.018672312439252024 0.04562442817069748 0.0028328247070997623" pos="-0.15540308714363332 0.18501561467372846 0.20283282470709976" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04802901043772149 0.042280354613714724 0.003257019337478188" pos="0.11031298779418808 0.15496725679642742 0.2032570193374782" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009306874849720401 0.03148623711024819 0.002608174530398679" pos="-0.22311643325649766 -0.08619245604285566 0.2026081745303987" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03961043594762242 0.011409256399987865 0.004869598810070931" pos="-0.1538059008240471 -0.21575515931579134 0.20486959881007094" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03768092625649035 0.0159027798909799 0.002099184044322275" pos="-0.23321577213759045 -0.0808188937377281 0.20209918404432228" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04435891333682172 0.013378428369880145 0.004735175441728102" pos="0.10187851426987982 0.18860581965676315 0.20473517544172812" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375757832898 0.7030405746443049 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="797.663062539" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="0.6816013816601236"></joint>
            <site name="object0" pos="-0.0007578328980000215 -0.018040574644304863 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.00151566579609 0.00151566579609 0.00151566579609" file="mujoco_models/apple_watch_stand_1.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/pitted_0005.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>
    