<?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.028969432452623733 0.018405033396852098 0.0028331217766997523" pos="0.24756107812815847 -0.10228151263914886 0.20283312177669977" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.046686713154940856 0.038664935217207284 0.003660745825375625" pos="0.1834533482520444 0.026358131399682683 0.20366074582537563" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.011079596367016182 0.04949481290034338 0.0014880307365636432" pos="-0.13006698420571836 0.016566229208464733 0.20148803073656366" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02114931315631142 0.005255091986405731 0.0023467016615288483" pos="-0.09622569295220831 0.2488059748094889 0.20234670166152885" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04481333851807065 0.030676005436098212 0.0035923044431777807" pos="0.05285152394858911 -0.16138768782865676 0.2035923044431778" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03806734596246204 0.014309947212578923 0.0018915834852575957" pos="0.20574311301344544 -0.08097120350742165 0.2018915834852576" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.003359290654041445 0.002165305618991333 0.0036830640106782597" pos="-0.2728430440890243 0.29742782902758863 0.20368306401067826" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04964712948653201 0.021560054267344787 0.0013131421283318163" pos="0.1845577079287013 0.13816172602199595 0.20131314212833182" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04706208627515269 0.011644891535504916 0.004743895561196947" pos="0.05914936109963914 0.03167035043110178 0.20474389556119696" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6695302033567999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="699.888492035" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.3270601720362243"></joint>
            <site name="object0" pos="0.0 0.01546979664320014 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.005728045298 0.005728045298 0.005728045298" file="mujoco_models/pentagonal_prism.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/grid_0036.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>
    