<?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.04379739658829611 0.04960826592165391 0.0037855780773988373" pos="-0.24811607851124065 0.29488224776754807 0.20378557807739886" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0045654266747630285 0.010431899164126252 0.003993839104046978" pos="-0.16853221574304506 -0.03337903414968857 0.203993839104047" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.022210749655472484 0.012557835923650555 0.0034933128287831586" pos="-0.19014182767898524 0.013692608167852727 0.20349331282878316" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.039591649013516236 0.023046255406424767 0.004598721071585567" pos="0.049109065943526486 -0.22170172091086837 0.20459872107158558" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.041165224630367134 0.043082323033020474 0.0031449559376233167" pos="0.1700459271832176 0.14622956619641703 0.20314495593762333" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02565256699868948 0.028536399620272143 0.002013187452053259" pos="0.11652641661020052 -0.14612396247736678 0.20201318745205327" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.027253637645802263 0.023869899387229464 0.0006933136395702172" pos="0.009443952538820743 -0.08182189852417118 0.20069331363957021" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.017563772272368706 0.00569594970548125 0.004324831762445319" pos="0.13720849656260892 0.037234253667072226 0.20432483176244534" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.041714256246002446 0.026873074693893474 0.0014490640226470135" pos="0.1510104265663768 -0.06974276197341128 0.20144906402264703" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04632107639744743 0.01696471823052885 0.0014496509998467785" pos="-0.10942785453075787 -0.08372106699153828 0.2014496509998468" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.4450475983615" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1585.96335486" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.5926739574553794"></joint>
            <site name="object0" pos="0.0 0.01000000000000012 -0.0250475983615" 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.00320475983613 0.00320475983613 0.00320475983613" file="mujoco_models/dodecagonal_prism.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/crystalline_0122.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>
    