<?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.01491432438617972 0.048144717628947696 0.0021678826772236156" pos="0.2153592555168657 0.06164595067536288 0.20216788267722363" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0180287508800507 0.019529937491386002 0.004219442632843079" pos="-0.18034502727166646 -0.025542792466545117 0.20421944263284308" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.00418238102621085 0.013640309404655132 0.0007683930064458126" pos="-0.09436591131280578 0.12938007831078469 0.20076839300644583" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.019466895642976583 0.023489395794970985 0.0024205932136608967" pos="0.06254822204422511 -0.20267733878665783 0.2024205932136609" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.005054341201181809 0.04739866359079068 0.0015125456565785922" pos="0.15698383908082192 0.020347439444882487 0.2015125456565786" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03453875641400529 0.0032547018351401563 0.003436847728722051" pos="0.20631430291952185 0.1579044224560852 0.20343684772872206" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.027806213238350277 0.0028168350632645973 0.0025177355545426268" pos="-0.13736002054274316 0.03707425842249207 0.20251773555454264" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.029354175621133877 0.020393397816386258 0.003790468411750608" pos="-0.09067573039386509 -0.16222776355527577 0.2037904684117506" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03172644707023542 0.0056177233379752336 0.0016293051071962104" pos="-0.05961367313308347 -0.25461665781777615 0.20162930510719623" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3240050250309998 0.66974383785965 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="7592.3206649" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.191623871105335"></joint>
            <site name="object0" pos="0.050994974969000184 0.015256162140350082 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.00304793365838 0.00304793365838 0.00304793365838" file="mujoco_models/hubble_model_kit_2.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/gauzy_0083.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>
    