<?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.03750805230556274 0.04810561598667828 0.0012275185030180067" pos="-0.26743679497216594 0.2074212556262282 0.201227518503018" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.012427532178264401 0.004796102751822077 0.0041332462517551325" pos="-0.2295795888577729 -0.18125952086229086 0.20413324625175513" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.022932395049592377 0.009232091265860325 0.0009046896815377218" pos="-0.25260491801162427 0.17031439328150794 0.20090468968153774" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.00872792303422194 0.024536444832927558 0.0017687718929349566" pos="0.2969665900083331 -0.06387831430630392 0.20176877189293496" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04806401215678726 0.026101978304711018 0.004186405836609668" pos="0.22242189964373343 -0.18728701867555358 0.20418640583660969" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02958629869787334 0.04436603972043284 0.0037078122361951884" pos="0.1482029811935776 -0.0038149825989040043 0.2037078122361952" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.020953316345039434 0.0050418687995937754 0.004401113678891945" pos="-0.13420528088918435 0.05991348593962553 0.20440111367889197" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.018401315817860427 0.04238594506565039 0.0034925461898528466" pos="0.11811598926545802 0.14525458306014505 0.20349254618985285" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.7183392447310499 0.4261663528295" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="25525.5611914" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="0.5761191183904406"></joint>
            <site name="object0" pos="0.0 -0.03333924473104988 -0.00616635282950001" 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.00054859803457 0.00054859803457 0.00054859803457" file="mujoco_models/Sunglasses.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/lined_0125.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>
    