<?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.03418548068249121 0.03567909309577699 0.0020178016842011324" pos="-0.028331610566190102 -0.10698970520237341 0.20201780168420114" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02328825859118224 0.03595374429493013 0.004034883990774097" pos="-0.10298132017089817 0.13388143454217777 0.2040348839907741" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03728015864794513 0.028332392238614112 0.003608289587732705" pos="-0.024779961947202278 -0.19766980912927645 0.20360828958773272" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0010183826205013634 0.018297354634093876 0.004368196958160234" pos="0.26202018163831425 -0.049564165331235754 0.20436819695816025" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.017761782958914285 0.01535315169066043 0.00033308222332383876" pos="0.054532531797026496 -0.03331381167759223 0.20033308222332386" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.049185764684373974 0.029213259870175437 0.000650863274190108" pos="-0.128891176460603 -0.016097445179700298 0.20065086327419013" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.012105847506810069 0.03865360262709711 0.0018730822005948893" pos="-0.10642399893433893 0.0802955081136385 0.2018730822005949" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03909639889310778 0.00322509338612701 0.0009264420061956684" pos="0.2892283708008723 -0.026659858561588923 0.20092644200619567" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.035506260120525726 0.008722930454085152 0.001645368871013121" pos="0.20235437530691597 -0.0018209641336545679 0.20164536887101314" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01236488314096328 0.018339007425925282 0.001823654589984313" pos="0.2909624115106138 0.29479691339456143 0.20182365458998433" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01166350621142491 0.022347983090589652 0.001423705786545801" pos="-0.1771955615916608 -0.14420712402554117 0.2014237057865458" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.006117228544181159 0.023933292109069533 0.0031508168331167304" pos="-0.21439652627698452 0.1162180627820279 0.20315081683311675" 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="777.813406504" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.5324561375595511"></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.06727956776 0.06727956776 0.06727956776" file="mujoco_models/ball_holder.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/fibrous_0102.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>
    