<?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.019970447080721085 0.0381361547255232 0.0034943339589762375" pos="-0.013416040952726749 0.00517962948452122 0.20349433395897626" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.00542004758244067 0.032769649139026316 0.0032396999048970323" pos="0.1894992506624978 -0.2704985512633539 0.20323969990489704" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010200905928976694 0.033484963143014274 0.0028034898591428204" pos="-0.05107732659111058 -0.2838209340594103 0.20280348985914284" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0418669557608289 0.015216266823730649 0.0018874657649123054" pos="-0.02668145799894539 0.026956192093599174 0.20188746576491232" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.012806110418480853 0.02543685017127965 0.004634365726714544" pos="-0.17897740823271774 0.030338529157822536 0.20463436572671456" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.048682396760186174 0.024508573913133862 0.004535090890466258" pos="-0.27721182872548633 0.014350463220765719 0.20453509089046626" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0011408511007200302 0.014278394812793613 0.004591501029496652" pos="-0.050731782236751455 -0.022176920910804365 0.20459150102949666" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.020750615407232564 0.03723398760307371 0.002051053063718315" pos="0.006597511210885698 -0.26194367337162366 0.20205105306371832" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.035951486576281104 0.027181746439825398 0.004870484243907995" pos="0.22267622721979036 -0.0927326631790624 0.204870484243908" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.019250423679844756 0.03335363535340122 0.002346388063339535" pos="0.03276682696593575 0.28257967168133785 0.20234638806333954" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.005442226008055094 0.030144495918011136 0.0034201906347708475" pos="-0.16837755565184348 0.05165684042800395 0.20342019063477085" 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="541.514857679" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.344026658362264"></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.097546397221 0.097546397221 0.097546397221" file="mujoco_models/ball_holder.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/perforated_0016.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>
    