<?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.021409428143480996 0.029347885980839147 0.0035782842992997947" pos="0.033644260322967856 -0.20053637261195822 0.2035782842992998" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0270077702305229 0.036702062120947246 0.001712346134792167" pos="0.2304644699476523 0.008403692021457632 0.20171234613479216" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.001279322906634431 0.02564687451136484 0.004023387272829148" pos="0.14679644508176498 -0.23914314431921097 0.20402338727282915" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04223273545615327 0.045995003552428956 0.0016369194082464216" pos="-0.08949639196104739 -0.20029716031172745 0.20163691940824643" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.023243315652013416 0.024890936947370466 0.0005481192689077843" pos="-0.037829096436724774 0.1828651573578603 0.20054811926890778" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02764828543212401 0.04415012195816802 0.0007317929524277595" pos="0.22595077938291291 -0.29707730731410353 0.20073179295242777" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.013992589333231706 0.013977871470811695 0.0005166235755733542" pos="0.1723412727192939 0.22146938766630225 0.20051662357557337" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024494776507128755 0.02560461275994042 0.004436543808770136" pos="-0.005646955191715319 -0.18493371604048847 0.20443654380877016" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.036074893157297366 0.029088190981218568 0.00318898211696417" pos="-0.027453657276826027 0.22626243106540883 0.20318898211696418" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007727740960761953 0.02289641410198974 0.0033592538795646377" pos="0.03716865654253365 -0.0950984628798329 0.20335925387956466" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1063.88187621" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.0430455507875975"></joint>
            <site name="object0" pos="0.0 0.01000000000000012 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.0015514678812 0.0015514678812 0.0015514678812" file="mujoco_models/candle_holder.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/wrinkled_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>
    