<?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.03565237498858421 0.0035337765121155667 0.0032437844608418083" pos="-0.20573032065678418 -0.11882024622807477 0.20324378446084182" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04651187186759083 0.0035593456701172622 0.004322470401492664" pos="0.030736533661066767 -0.281206084816111 0.20432247040149268" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03794583001204385 0.04301760159457943 0.0023420026873142413" pos="0.1751035152560218 0.2462824981227943 0.20234200268731425" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0288432556913914 0.04591786449873536 0.002143177317219549" pos="0.187119087595074 0.16839959965726625 0.20214317731721956" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03622756374815324 0.021160856156164882 0.0023943118652019796" pos="-0.1743634071428074 -0.13314819553381743 0.202394311865202" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.034430747570842725 0.01694649762941908 0.0036490518964952113" pos="0.0746462702780486 -0.08612183217336758 0.2036490518964952" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009213296513604755 0.016667901194481593 0.0018896258146335575" pos="0.08746930846263473 -0.2629067214821396 0.20188962581463357" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04343963538334781 0.03163971003456 0.0003605701412530587" pos="-0.14912648275252102 -0.20963622637637996 0.20036057014125308" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02951018775401747 0.028881807348850687 0.001884614159251128" pos="0.15586617523874935 -0.26293670274031944 0.20188461415925113" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04154111907097126 0.04453787809608725 0.0010107927194412715" pos="0.2642666059350845 0.13941910091884496 0.20101079271944128" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.044778843618938205 0.03978261088665195 0.00043276899136771447" pos="-0.1518639155516325 0.21053195649083084 0.20043276899136772" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3525532844305 0.6525532844304499 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="550.455359562" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.614998184998878"></joint>
            <site name="object0" pos="0.022446715569500064 0.032446715569550144 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.003534915625365 0.003534915625365 0.003534915625365" file="mujoco_models/Cube_Stand.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/cobwebbed_0073.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>
    