<?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.00310240332972535 0.03534192682293915 0.004575093270338856" pos="0.0147462404871756 -0.08746510690364231 0.20457509327033888" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.006893589903994012 0.03799015410274085 0.004436607070937851" pos="-0.23984895355449085 0.15539073285140514 0.20443660707093786" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.001835963826695778 0.04838569098578376 0.003113784301111971" pos="0.031463435394979866 -0.12243009984664333 0.203113784301112" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04653529190691939 0.014029375739502761 0.004157918404761805" pos="0.2910652076022792 0.17003798730888348 0.20415791840476183" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.026430506098935158 0.004237638928731925 0.0024148275669382577" pos="-0.037046431816977865 -0.17832237528780287 0.20241482756693827" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02175579419900092 0.018530136319936597 0.0009020528796430775" pos="-0.035175514000508334 -0.14232002620530657 0.20090205287964308" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.026581058613430956 0.002722842926093515 0.004540533956957692" pos="0.18981858331191365 0.03154879950630274 0.2045405339569577" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04273862055510492 0.04815735861672923 0.0006415592408580367" pos="0.07849908504588227 0.29879640056139517 0.20064155924085805" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04940656929734278 0.030562826622246488 0.0007273022652090017" pos="0.04991569859431694 -0.29876121865534694 0.20072730226520902" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01074665539867612 0.04785003481843804 0.001719158805753935" pos="0.08303406346616915 -0.13148430322065438 0.20171915880575395" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04744327246846789 0.036699377767524854 0.0017152906721489218" pos="0.17505685270822252 -0.23510068531419742 0.20171529067214894" 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="1086.86865458" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="0.6090367182372027"></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.00141561956277 0.00141561956277 0.00141561956277" file="mujoco_models/candle_holder.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/lined_0036.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>
    