<?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.036435943535729515 0.047976276014524505 0.0008916434512378516" pos="0.20388519906914843 -0.16612082725834484 0.20089164345123786" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02131144313222462 0.0013786883463490713 0.001031119615657977" pos="0.004273370286247136 0.043023929434674035 0.20103111961565798" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.008395384722738758 0.027722677974721128 0.0032907671561715536" pos="0.039768978068533856 -0.0790576816209746 0.20329076715617156" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03511150326358283 0.03349303951689493 0.0023309893959051627" pos="-0.09000700342825427 0.21548041440867366 0.2023309893959052" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.003832012300110391 0.031385048742508796 0.00010191247154944647" pos="0.27259492566897764 0.1475906338541808 0.20010191247154946" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.011401730310483745 0.044061552482236886 0.0018359233508459304" pos="-0.04714620675334402 -0.08626087838337732 0.20183592335084594" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0433625806822125 0.04483259044320845 0.002253935567780667" pos="-0.24095876996675378 -0.23184891253236956 0.20225393556778068" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0484218259487939 0.026624319767904886 0.003073000840161042" pos="-0.13979024479563643 0.04055467315352579 0.20307300084016106" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01982151095750964 0.0459243785180838 0.002806658449181" pos="-0.1523284553146956 0.11093567295532236 0.202806658449181" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.4462078558229998 0.5393306228724999 0.41300447369849996" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="319.805834719" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.3763038222386683"></joint>
            <site name="object0" pos="-0.07120785582299982 0.14566937712750017 0.006995526301500021" 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.00447369835032 0.00447369835032 0.00447369835032" file="mujoco_models/hubble_model_kit_5.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/matted_0133.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>
    