<?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.037640614841139744 0.03569444000394253 0.0019613585034897966" pos="0.2130594640278743 -0.13686309196172916 0.2019613585034898" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04928533539023904 0.005753338214689436 0.0044632436978562715" pos="-0.10199761204695018 -0.23786184268614463 0.2044632436978563" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.048504788732907665 0.01433045203684798 0.004706442957912494" pos="0.18478883777518856 0.06060612414346406 0.20470644295791252" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.029523734808438205 0.011504502971688348 0.004301855115320276" pos="0.21852346604401013 -0.18176773227718218 0.20430185511532029" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02603230084077421 0.021593244526308515 0.0007174295158425233" pos="-0.11167966816923869 -0.24691481971966575 0.20071742951584254" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02515322450373144 0.022325696205136514 0.004765657170609884" pos="-0.07635255519422293 0.036736589575429524 0.2047656571706099" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.044020096860173295 0.04326736468833693 0.0012657091984384125" pos="0.032939828895594214 0.1650110671329369 0.20126570919843842" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.019111889332804975 0.03876104869104485 0.002056198153429888" pos="0.031187343945971335 0.09176103017474252 0.2020561981534299" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.4173439918164998 0.6321987473235 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1167.74188346" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.750175627321988"></joint>
            <site name="object0" pos="-0.04234399181649984 0.05280125267650004 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.000555017274725 0.000555017274725 0.000555017274725" file="mujoco_models/Stepped_Pencil_Holder.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/freckled_0132.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>
    