<?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.006784535535955562 0.04890120672172901 0.0015116523924502058" pos="-0.16047024163384904 0.22048081455288698 0.20151165239245022" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03768778102214982 0.025171440526795437 0.004402589126596367" pos="-0.022026219413010084 -0.28413499291164435 0.20440258912659637" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03636930560415324 0.013919869764156361 0.0016841880699891097" pos="0.2578706144542288 0.07314698665785907 0.2016841880699891" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03842673838749164 0.02714546029807038 0.0029933757047141294" pos="0.16003536617021652 0.26777104612447494 0.20299337570471415" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03578397301069664 0.0023787979004831726 0.001849271672740143" pos="0.16416566120177634 -0.2799763176593041 0.20184927167274017" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0441179638370535 0.03395560729006109 0.0012620230203873861" pos="-0.038163596134821565 -0.28255769333424025 0.2012620230203874" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004455461029470758 0.027963202998797797 0.0012119930790018703" pos="-0.19262437234787871 0.26784631979687473 0.2012119930790019" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03299408047466053 0.0031209940948620455 0.0015517037244805812" pos="-0.19022825148096306 0.2749252967665932 0.20155170372448059" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.016005835189231175 0.030826785589181387 0.0026471047088812644" pos="0.24426645953565035 -0.2969907171679444 0.20264710470888128" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01697347808076843 0.009544695722165208 0.0039306732138102325" pos="-0.06656390398153417 0.20219321438949217 0.20393067321381025" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6708726682883499 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="137.228723008" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.572684619755796"></joint>
            <site name="object0" pos="0.0 0.014127331711650148 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.004322197797525 0.004322197797525 0.004322197797525" file="mujoco_models/pentagonal_prism.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/lined_0153.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>
    