<?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.04846817976926766 0.023947459787700905 0.001271933291943933" pos="-0.08493992958971255 0.13540519205756102 0.20127193329194396" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03469860641004437 0.016235572996000674 0.0006659212349851385" pos="0.10566122030159497 0.1893045180141849 0.20066592123498514" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04454420554341882 0.023744406141276615 0.004280074281175354" pos="0.010173685262965138 -0.13666960186281205 0.20428007428117537" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02832763890616348 0.008143296465841566 0.0034548853710412736" pos="0.20484671733950538 -0.23794623443247337 0.20345488537104128" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02472677946755394 0.046129826868585085 0.0012603761941872586" pos="-0.279981366422698 0.07274379041649554 0.20126037619418727" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.005021804528615615 0.0011563397264165549 0.0034293945351377606" pos="-0.2539594056306328 0.08585763940546087 0.20342939453513778" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0351079387577401 0.02419554006886631 0.0024383517851414038" pos="-0.02134398732975662 -0.27889876224796073 0.2024383517851414" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03386877441362062 0.004007083294237284 0.0025929234520859633" pos="-0.039660763897983786 -0.16758697586963425 0.202592923452086" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03596295584230941 0.03008536166377939 0.0007255594096305233" pos="-0.2366436302221446 0.21389051700822354 0.20072555940963052" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04718129514654874 0.03355012713691899 0.001155279145509851" pos="-0.08530902747363456 0.16659147384526302 0.20115527914550987" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.027704537735903336 0.01756268743183664 0.00098024701632471" pos="0.15136843007408735 -0.014959461913505112 0.20098024701632472" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.5935748867169999 0.5432800824239999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1722.4557361" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.88703539436949"></joint>
            <site name="object0" pos="-0.21857488671699987 0.1417199175760001 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.003339293078085 0.003339293078085 0.003339293078085" file="mujoco_models/Trophy.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/lacelike_0059.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>
    