<?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.017407324912606326 0.03216908409903675 0.0032019661726565406" pos="0.13855998408753017 0.22390346298219282 0.20320196617265654" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.027779227451115267 0.01731216095350079 0.0017723384197457673" pos="-0.20915930152308776 -0.2533685634703981 0.2017723384197458" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02712384607454357 0.04108251195913184 0.001570143069156356" pos="0.06872961533267496 -0.14034654923534276 0.20157014306915635" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.005741435568078759 0.04329108832560902 0.0026144900326125382" pos="-0.20195485555780496 -0.018968413730532874 0.20261449003261256" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.029628637702891297 0.04895988827692324 0.0007306243659356668" pos="-0.17879787877902253 0.2532133133742835 0.20073062436593567" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02748935021193553 0.049564297336679136 0.003339466541904753" pos="0.09509106225234265 0.22779588022601532 0.20333946654190477" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.018993587830533832 0.023791723889635182 0.0014078509476358736" pos="-0.18110529376190881 0.021198318038570807 0.20140785094763589" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03363686572498963 0.028524514018061168 0.0018264670103348144" pos="0.20465630638178284 -0.20979184643774737 0.20182646701033483" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.4389790138674998 0.66810798918315 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="5869.88368182" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.2711154067409063"></joint>
            <site name="object0" pos="-0.06397901386749982 0.0168920108168501 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.004115861967125 0.004115861967125 0.004115861967125" file="mujoco_models/hubble_model_kit_3.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/cobwebbed_0051.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>
    