<?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.004376028376378416 0.03812101526344808 0.004163323712782115" pos="0.23757743987706986 -0.001514311693708914 0.20416332371278212" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0011954904917483532 0.005139065503967871 0.0023002095427612852" pos="0.25807881285144324 0.24890824906266423 0.2023002095427613" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.028630052515454713 0.004260042132879888 0.0021976461737474224" pos="-0.299535170318542 0.23246247250547142 0.20219764617374744" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010963488207060931 0.0441639937883087 0.0006135740439398272" pos="0.2715212056882413 0.11694525440995646 0.20061357404393984" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.017834243208891865 0.03965599656842418 0.004170618652768339" pos="0.12131569396959413 0.061699044467433684 0.20417061865276834" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.049893155202743476 0.030586588237397808 0.0016120742168546972" pos="-0.0009078541766405213 -0.2524049011203584 0.2016120742168547" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.027025566679062 0.005420258978940877 0.0037849324632132004" pos="-0.16615032610956496 -0.11786848256215995 0.20378493246321322" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03660370222222032 0.04762863484420385 0.0031804866554393774" pos="0.05599057428979759 0.20964756844938964 0.2031804866554394" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04357814988350711 0.026206578153644095 0.002908482175590802" pos="0.03814384731835796 -0.05548084620444013 0.20290848217559082" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.036629102255945074 0.011012570925187815 0.002490530900007426" pos="-0.28684453651968234 0.17823351671980286 0.20249053090000743" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6742263128000999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1559.43101145" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.801532751243213"></joint>
            <site name="object0" pos="0.0 0.010773687199900128 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.00382001440534 0.00382001440534 0.00382001440534" file="mujoco_models/Hendecagonal_prism.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/matted_0051.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>
    