<?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.0287218926336756 0.043004527574538494 0.0004570285564103619" pos="-0.06472061488834571 0.19953580315280334 0.20045702855641037" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.038958011578565606 0.011470919292219217 0.0013299459255891968" pos="0.07889880964805618 -0.15652030386679353 0.2013299459255892" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.017813674070423637 0.03926828742956244 0.003121531296300725" pos="-0.23596663541251184 -0.06894149252627663 0.20312153129630073" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010700171859348323 0.02772805799967036 0.004749526596369589" pos="-0.0005599601882435579 0.2008908371319798 0.2047495265963696" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03429120231237213 0.0235833070547451 0.004579599455595968" pos="0.28367855357296107 0.26814293991078425 0.20457959945559598" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04404741747347316 0.03728353146871332 0.004593771673537764" pos="-0.18360879093365423 0.22326279303871194 0.20459377167353776" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02553289961633644 0.00812103293583526 0.002516923409778081" pos="-0.27670851091187976 0.2438081961439202 0.2025169234097781" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3380857675484998 0.67614193677015 0.41337966972349993" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="9474.54325976" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.048837506527307"></joint>
            <site name="object0" pos="0.03691423245150016 0.008858063229850055 0.006620330276500053" 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.001506563324195 0.001506563324195 0.001506563324195" file="mujoco_models/adptador_grifo.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/stained_0062.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>
    