<?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.02675073635868683 0.03629908618450044 0.004180473774438455" pos="-0.183271241018931 0.1513914561860315 0.20418047377443846" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.008837726827612205 0.03260141448281325 0.0010877857138492997" pos="0.17434970267757344 0.28554184809716704 0.2010877857138493" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.020680132991027767 0.021508739845180206 0.0023877171012278778" pos="0.1471334075209203 -0.28522584625684544 0.20238771710122788" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03413329111566982 0.023648397823870355 0.0002728454053409327" pos="-0.08743328368536957 -0.14960247821108852 0.20027284540534093" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04592269918070048 0.027800644377387922 0.0029942589743181557" pos="0.18037707752063892 -0.09964020817188768 0.20299425897431816" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.030303536944109363 0.04688852813812897 0.0009582159018185749" pos="0.050361509991971753 -0.2080250200644586 0.2009582159018186" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021564052127191445 0.015206366361554868 0.0044444037416987" pos="0.24097956400559734 -0.09962764311857378 0.2044444037416987" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04149071356717134 0.02737310144901687 0.004440834204467009" pos="-0.08967764671115933 -0.28583095260900765 0.20444083420446701" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02585507238626836 0.03297380538064088 0.00038670755458282446" pos="0.19043452939923255 0.07940872136393606 0.20038670755458285" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02034242801922854 0.02888770502789443 0.004975856340974403" pos="-0.15564606148926283 -0.1567189148088928 0.20497585634097443" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3721500301249998 0.67481740316215 0.41300011685349997" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="285.820535448" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.2058234271574686"></joint>
            <site name="object0" pos="0.002849969875000191 0.010182596837850055 0.006999883146500019" 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.001224853579445 0.001224853579445 0.001224853579445" file="mujoco_models/Dodecahedron.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/grid_0081.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>
    