<?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.008152242732789316 0.04802103099066087 0.0013420967962647693" pos="-0.16767348441495136 -0.25067392971280505 0.20134209679626477" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03171786717726244 0.01970681034628226 0.0007200333911586197" pos="0.09979437563702587 0.12225494152889582 0.20072003339115863" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007132101799145199 0.041349696168383035 0.0040422743595741875" pos="0.2694974599346139 -0.23131649680534794 0.2040422743595742" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04243742696889609 0.004649788248637208 0.004424278892046401" pos="0.048077580532757624 0.268135285970393 0.20442427889204642" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009822649069791776 0.038829600567120086 0.003083462795297117" pos="0.10233182349659536 -0.06374624404402521 0.20308346279529713" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009793029370489717 0.04984525934261956 0.004172477426761646" pos="-0.12522766613465608 0.0035582409159550243 0.20417247742676164" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.035433500318351824 0.012165545306164146 0.0015729350339613883" pos="0.24494035035310674 -0.05561958566821046 0.2015729350339614" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.020848608096411328 0.04911122992352859 0.0008222270742658551" pos="-0.23415406597459365 0.0818907929799309 0.20082222707426586" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04133540473733643 0.023485322036570024 0.002040756398161703" pos="0.17982664537254184 0.06388255451990682 0.2020407563981617" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.4390959125174998 0.66809539651075 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="3792.71924395" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.163944669254476"></joint>
            <site name="object0" pos="-0.0640959125174998 0.016904603489250047 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.00412338222541 0.00412338222541 0.00412338222541" file="mujoco_models/hubble_model_kit_3.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/braided_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>
    