<?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.036125460934262624 0.0428347237617704 0.003498871486539165" pos="0.21857982298759066 0.11241642224059661 0.20349887148653917" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04214466960266258 0.011023539406015286 0.003080998710840973" pos="-0.19996615466820505 -0.06732303753434896 0.20308099871084098" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01778746352736025 0.024163686683962248 0.004912252039086349" pos="-0.06446894706419076 0.0031494381606488875 0.20491225203908636" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021053145790502315 0.04275449952041872 0.0031738525718226075" pos="0.19063431323021734 -0.02703018197036139 0.2031738525718226" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0329098588023521 0.027099042762882705 0.004954460778192476" pos="0.1770943206008515 -0.2473223151977511 0.2049544607781925" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.033292188457717684 0.03247512691338724 0.001687479810886202" pos="0.21812475467236908 -0.023020971715770333 0.20168747981088622" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.029435652697660925 0.03860698435830082 0.0014774870196422553" pos="-0.07829312686365389 -0.2755294775571786 0.20147748701964227" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.033863283183624686 0.02906297746659091 0.0001175154003041088" pos="-0.265034767464518 0.20834734660415083 0.20011751540030412" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04130619243429562 0.002429198844642217 0.001457822885187191" pos="-0.019429469862587423 0.28139066461610357 0.2014578228851872" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03231820339881457 0.03924565735635858 0.0012653774291575967" pos="-0.03278435721626899 0.29183314419599365 0.20126537742915762" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007911802562467346 0.049803909042780765 0.0047644416444436" pos="0.2472707934469553 -0.21227003690669255 0.2047644416444436" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.028874784784102124 0.01711522284200582 0.00016988569776634895" pos="0.0037637306074209675 0.178329884900218 0.20016988569776636" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.037281347615449587 0.03802986939899845 0.004774906387415625" pos="-0.18504512120882166 -0.22725763408366217 0.20477490638741563" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.041390776331434447 0.048732258459865396 0.0026935467514335103" pos="0.20883277487796376 -0.05667471546441835 0.20269354675143353" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.332964613692 0.7523787847 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="514.116065711" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.7503598085482777"></joint>
            <site name="object0" pos="0.04203538630800008 -0.06737878469999992 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.00219517394849 0.00219517394849 0.00219517394849" file="mujoco_models/hubble_model_kit_6.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/bumpy_0198.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>
    