<?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.02169241173373783 0.035120265011588075 0.0015442301823774182" pos="0.2806686203696404 0.19183087818237293 0.20154423018237744" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024593623261229224 0.039821630070080105 0.003672956865348601" pos="0.29521971284538745 0.05821899222992505 0.20367295686534861" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0022876412264557673 0.010306965374831348 0.0034036574062854237" pos="-0.04660504527374898 -0.22862902929641377 0.20340365740628544" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02057528336038412 0.023632957190682966 0.001023807139617969" pos="-0.13525566903072908 -0.26891829325227184 0.20102380713961798" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.029196727930305564 0.0295752490360647 0.001376846186219418" pos="-0.28152411972385716 0.1400354900418962 0.20137684618621943" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0063970689693454074 0.015369109291524678 0.0020011728264821196" pos="-0.09703233579949919 -0.2924298724731836 0.20200117282648214" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.015304228808936483 0.03713251889508802 0.0007948166444994586" pos="0.2868762047561609 0.2578413440692177 0.20079481664449947" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0073055488588580795 0.0342495330440251 0.001828264574410169" pos="-0.16525721036634716 0.02869449387923312 0.2018282645744102" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03803078307817862 0.025231730649631696 0.000689122385319814" pos="-0.04664617483245581 0.0901488678342946 0.20068912238531983" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.4023052932834998 0.6924460115129 0.4130007087355" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="165.464771903" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.3988276991503006"></joint>
            <site name="object0" pos="-0.027305293283499843 -0.007446011512899919 0.006999291264499996" 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.00130954706912 0.00130954706912 0.00130954706912" file="mujoco_models/Octahedron.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/freckled_0135.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>
    