<?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.03349364351753634 0.0289704140503014 0.003749875560641425" pos="0.21839582524875084 0.2185526610962008 0.20374987556064145" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024717342679160113 0.03986068695666669 0.0016274312461438544" pos="-0.2480679509726665 -0.11946406828170489 0.20162743124614388" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04307367949544154 0.046176216799134785 0.0015253426294557179" pos="-0.26672230034467115 -0.10245354548334762 0.20152534262945573" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03867194764834782 0.009892155810200424 0.0034321875397664956" pos="-0.09785835866260095 -0.04720933969049873 0.2034321875397665" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.028521894131272086 0.00396590064250254 0.004096395216373256" pos="0.09374291915507921 -0.2008459189060542 0.20409639521637327" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0018397357071541277 0.03990256506332109 0.0025579793205013743" pos="-0.2759633701316389 -0.20287649811351116 0.20255797932050137" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.030870116568916847 0.021825507505620272 0.004322242373713209" pos="0.27132187542103664 -0.12703994089776868 0.20432224237371321" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0015286569174108298 0.025208756251755143 0.00043442005992646855" pos="-0.14050440363756117 0.17608466611981577 0.20043442005992648" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.036762610668462155 0.03631164277913553 0.0002318906585298588" pos="-0.024206576452269757 -0.19414910743812624 0.20023189065852987" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.71972520110435 0.4265874028669999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="33404.1678619" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.7272475973044483"></joint>
            <site name="object0" pos="0.0 -0.034725201104349956 -0.006587402866999936" 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.00056614178613 0.00056614178613 0.00056614178613" file="mujoco_models/Sunglasses.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/dotted_0123.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>
    