<?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.029867715182508112 0.03562270496077749 0.0020971142508723496" pos="-0.05718763662915499 -0.03232848865158677 0.20209711425087237" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04400728393901015 0.03923407977688369 0.003804430698087294" pos="-0.14887617915354276 -0.26975848095201177 0.2038044306980873" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0020642868472007456 0.033812260142289156 0.0049522184967383445" pos="0.14748655863116888 -0.09211946475051172 0.20495221849673836" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004297049760835378 0.024330809745960715 0.0032403307107939515" pos="-0.02493061796924395 0.18643839126664036 0.20324033071079398" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010316925363358154 0.044480056897635574 0.003446839106664153" pos="0.28604614258858235 -0.11648708247315484 0.20344683910666417" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03937305091512707 0.017213079460546725 0.002662429553239037" pos="-0.1276820428124743 -0.23803399714800888 0.20266242955323904" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007022131871290394 0.01894367172828423 0.00017348142709695466" pos="0.2618985186442014 0.01486073229118845 0.20017348142709696" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.019623280086451537 0.0471039381929113 0.0036951807670798113" pos="-0.11298534837727206 0.056418788077641724 0.20369518076707982" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.028208468980503054 0.021055117249260465 0.0001283447151698275" pos="0.2168274525508907 0.03421507489055137 0.20012834471516983" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.006501465336232905 0.012297019279610317 0.0017322491073579881" pos="-0.10555615160804371 -0.15074932620312467 0.20173224910735799" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3302628989479999 0.6703888504315999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="39881.7311585" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.8113004949152187"></joint>
            <site name="object0" pos="0.04473710105200013 0.01461114956840015 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.00267390495157 0.00267390495157 0.00267390495157" file="mujoco_models/hubble_model_kit_2.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/bumpy_0159.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>
    