<?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.0021724868791931605 0.04208275841581184 0.0034730751302853116" pos="-0.290203765408029 -0.08034522834722824 0.2034730751302853" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04577639628014564 0.03297009710577601 0.001971379615762457" pos="0.2438539617554653 0.07561949845738075 0.20197137961576248" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.027613342029783328 0.01855010910054521 0.0008173317629204132" pos="-0.24013949808787727 -0.056033239979493915 0.20081733176292044" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.012493399682052646 0.006617325614611144 0.0021978700732815386" pos="0.1324440087667949 0.10043541621973728 0.20219787007328155" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03364214533752262 0.007595727922028856 0.0018571726207287623" pos="-0.1496349325938975 0.1945556640650139 0.20185717262072878" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.027938783447725577 0.011343596112885285 0.0006010549648903299" pos="0.2552649472540089 -0.07739405847603331 0.20060105496489034" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.013947134525311815 0.04739867393469976 0.004710876157647669" pos="0.10682279207848344 -0.22867854354350525 0.2047108761576477" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.012087984649878175 0.015684662927365547 0.0008590993348108947" pos="0.2872536160314904 0.21279574804044693 0.20085909933481091" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.036582277290845226 0.03375410685495239 0.001377418817163649" pos="0.11001437457052221 -0.029590983675712557 0.20137741881716367" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04364680930621937 0.0089191387454245 0.004911730905758423" pos="-0.11382736166567478 -0.06156654195365768 0.20491173090575843" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.048517099636855604 0.029541921887079964 0.001776106104244202" pos="0.005891999255228542 0.2107158547841585 0.2017761061042442" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.45626774523149993" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="174.302146411" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.662303374991313"></joint>
            <site name="object0" pos="0.0 0.01000000000000012 -0.03626774523149995" 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.004326774523175 0.004326774523175 0.004326774523175" file="mujoco_models/dodecagonal_prism.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/matted_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>
    