<?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.03307799420551223 0.03735879701279911 0.0036878283119048333" pos="-0.0073726025859667255 0.25954623234671964 0.20368782831190485" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024822540584897836 0.04900526713709323 0.0008519845267917496" pos="0.1939285711459381 0.03978712581331012 0.20085198452679176" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.033256765398039304 0.009597625905876182 0.002033696771817201" pos="-0.054206345256806066 -0.06023205648750765 0.2020336967718172" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.035628084932374446 0.00496431459612074 0.0031963034357478824" pos="0.016826313496443923 -0.17363585271505447 0.2031963034357479" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009434559841867165 0.006512194094592656 0.001263186159078139" pos="-0.17252586570864845 -0.13500564003532847 0.20126318615907815" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0028279004197146575 0.032730758494251694 0.004992166854817665" pos="-0.0018210272038135522 -0.043833030656980965 0.20499216685481766" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.015061676021754927 0.021547577502615916 0.002320486740336141" pos="-0.19961609353546247 0.2402652435428017 0.20232048674033615" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.016203690448719228 0.002920229342986411 0.0005076738173013212" pos="0.005190663709195187 -0.0241831697429557 0.20050767381730134" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.034363684525355695 0.019856417780391388 0.0034765475586496005" pos="0.2433905457759598 0.01959174819684184 0.2034765475586496" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="530.448564132" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.766220192247915"></joint>
            <site name="object0" pos="0.0 0.01000000000000012 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.0053452762126 0.0053452762126 0.0053452762126" file="mujoco_models/hexagonal_prism.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/striped_0088.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>
    