<?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.009911064554297123 0.01107950373430159 0.002051179289296209" pos="-0.01416705969714116 -0.10181991528633622 0.20205117928929622" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02626785212338201 0.044730062259667004 0.0031868074666501632" pos="-0.07828250993876973 0.2162658481148781 0.2031868074666502" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03509042949778386 0.030092468565606316 0.002630939011284817" pos="-0.2472977701033235 0.055761082546268825 0.20263093901128482" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02051470462222326 0.02796612316725707 0.0007079186021887745" pos="0.17170653380701528 0.007173627859502429 0.20070791860218878" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04171559731689238 0.01113380072137847 0.0046966123886814865" pos="0.0469108160083071 -0.2545885765873816 0.2046966123886815" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01637216585604282 0.04915156046928169 0.003105337184993845" pos="-0.048151768923865745 0.24941484920986762 0.20310533718499385" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.018702946294639415 0.0376101422685706 0.0008166988982307942" pos="0.11829581749640888 -0.005136151764362329 0.2008166988982308" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021806832833387985 0.01234884985753213 0.004938533672088668" pos="-0.22582838880764883 -0.17790486019962534 0.20493853367208867" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01949315499581998 0.007424898332619118 0.004683089923595617" pos="0.24622883443531268 -0.03708433180871773 0.20468308992359563" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02512763407331528 0.0040424392767750865 0.004212927044219838" pos="0.1682925227836748 -0.06402663288124671 0.20421292704421984" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024377275957801075 0.03330872804142195 0.002381337280386207" pos="-0.13608576356984392 -0.12150873415903096 0.2023813372803862" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.4345816464965 0.5614815577575 0.41300374327149997" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="175.673869169" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.0013101986486619"></joint>
            <site name="object0" pos="-0.059581646496499996 0.12351844224250008 0.0069962567285000166" 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.00374327116806 0.00374327116806 0.00374327116806" file="mujoco_models/hubble_model_kit_5.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/meshed_0111.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>
    