<?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.014395612896204373 0.015877190226846926 0.0007908672858851581" pos="-0.14278237079096867 -0.19429170839981966 0.20079086728588516" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.040755415444133164 0.045010500079095773 0.0027012615591775853" pos="-0.0043841960862534 -0.15910439873469914 0.2027012615591776" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.016197347973079333 0.002023567219201336 0.004913967575322374" pos="0.10323221614229089 0.026348435568088857 0.20491396757532238" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.013071957930859482 0.04694138798181352 0.004682577927123443" pos="-0.27747558188483096 0.07459020519194659 0.20468257792712347" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.015810248136838637 0.028424674284817684 0.004711632096202278" pos="0.13804134282232328 0.19672179766248543 0.2047116320962023" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04813379559543068 0.028066241701994787 0.004554033352477407" pos="-0.029996188313243077 -0.10464752393553414 0.2045540333524774" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03279699355399956 0.03165628886165377 0.0009528947142179624" pos="-0.10585512671251524 -0.12753996071355336 0.20095289471421798" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04133373761091633 0.03529377038327461 0.004758732408835072" pos="0.08756074700639122 -0.20049500064131626 0.20475873240883508" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.011270743781634038 0.027399467331198916 0.0010508796917926067" pos="0.04333645303195599 -0.12957115413683196 0.2010508796917926" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02397823419299316 0.04020870506929474 0.004026166152015849" pos="0.015623706994043807 -0.04312316902429969 0.20402616615201585" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.44278478872099997" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="4002.23808892" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.526738652715324"></joint>
            <site name="object0" pos="0.0 0.01000000000000012 -0.022784788720999982" 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.0349439336402 0.0349439336402 0.0349439336402" file="mujoco_models/Low_poly_bowl_or_cup.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/dotted_0136.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>
    