<?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.04136887871456236 0.01134608285999578 0.001883959025404218" pos="-0.1528563429183174 -0.23502559963843517 0.20188395902540424" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.020317194140171104 0.04403619512652325 0.00174282892197356" pos="0.272608660575484 0.19727555568860627 0.20174282892197357" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03932699911519159 0.0280450181001649 0.0036802185173812176" pos="0.18611605364072098 -0.16324194611516676 0.20368021851738122" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03542471574392252 0.029156499615288954 0.002595504745928306" pos="0.027107181335995656 -0.22135607173694122 0.20259550474592833" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.006233950158017205 0.03498961519235784 0.000683974507002654" pos="0.10089180546544851 0.08098966381140932 0.20068397450700268" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.008198616788321317 0.017340632755477203 0.0029503460857172007" pos="-0.22736721311564617 0.07463570164039673 0.20295034608571721" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02967111671038006 0.033117063249463466 0.004513419233172987" pos="-0.10974513681613796 0.2796840371846632 0.204513419233173" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02777897100597956 0.027775571040832652 0.0010285550029561048" pos="-0.0796978389852622 -0.09736630971365914 0.2010285550029561" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03560480745889471 0.036140346778945474 0.002267800852884257" pos="0.030357972542355394 -0.08240432805891384 0.20226780085288426" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004625586641031448 0.014972687900982551 0.0018429999113961423" pos="-0.2544974356574206 -0.09311225709210616 0.20184299991139615" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="571.993989916" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="0.8582322062514116"></joint>
            <site name="object0" pos="0.0 0.01000000000000012 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.078584151266 0.078584151266 0.078584151266" file="mujoco_models/ball_holder.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/bubbly_0061.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>
    