<?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.04735729983919727 0.01219919626225793 0.002868963406614128" pos="-0.2293433217171617 -0.13759967775269838 0.20286896340661414" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014529376020929685 0.03571484688342417 0.0006332625014898553" pos="0.15419069644118077 -0.11787228850308937 0.20063326250148986" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03694005068425635 0.018961494655298332 0.00218936518773233" pos="-0.2245015440577248 -0.2358948542584658 0.20218936518773234" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02755025018201621 0.032216437518441964 0.0005514402846063733" pos="-0.2163406537269615 -0.2805343493859195 0.2005514402846064" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.008958026195230812 0.01190629852281774 0.0034844451677198537" pos="-0.2608712116700245 0.11244390548203065 0.20348444516771985" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.020865995209431144 0.008004732442866846 0.004913412949079744" pos="0.0025614132497676634 -0.12348943348214342 0.20491341294907975" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0037197534004997676 0.016401760560570182 0.0031010355333312067" pos="-0.15253625286747444 0.04154487057594691 0.20310103553333123" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014635628193382051 0.003178266943360827 0.0021245146833209585" pos="-0.0860278273738885 -0.1524659042580159 0.20212451468332096" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02691961974640923 0.02009151839178802 0.004754732792210303" pos="0.07273747404915448 -0.08510751424277754 0.20475473279221032" 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="692.420608325" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.336460726487412"></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.0881958478495 0.0881958478495 0.0881958478495" file="mujoco_models/ball_holder.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/flecked_0115.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>
    