<?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.03963495096419763 0.014394088090453665 0.0044469445628138975" pos="-0.20067263232224672 0.09957595121643414 0.2044469445628139" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.005126351970945944 0.04872077287471961 0.0035331033887386594" pos="0.2050894436430511 0.040001603617820736 0.20353310338873867" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02436326683251415 0.03147223717832389 0.0026908334073272953" pos="-0.018369386912908237 0.15567015087458563 0.2026908334073273" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.00973184679202414 0.009387430359602766 0.00221602898818356" pos="-0.1075512503730324 -0.25552528925218554 0.20221602898818358" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04237905412851799 0.03880853752802314 0.002765215349034625" pos="0.2875947223586213 -0.2564399600714368 0.20276521534903463" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.038566795750365875 0.014052149188845744 0.0019061347077235194" pos="-0.16843236887815946 0.17342273487711912 0.20190613470772353" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.008067764999056735 0.04216081818902862 0.0033417304763261857" pos="-0.26458605283853115 0.18658903896009205 0.2033417304763262" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03176003009198599 0.04534413365933874 0.0037687393014023273" pos="0.03667255645786488 0.2019283083715186 0.20376873930140235" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.319067142821 0.7779612641504999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="527.82152988" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.2661399044494246"></joint>
            <site name="object0" pos="0.055932857179000095 -0.09296126415049988 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.0029209283351 0.0029209283351 0.0029209283351" file="mujoco_models/hubble_model_kit_6.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/swirly_0062.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>
    