<?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.036204441117950584 0.03339639888315543 0.0025898769495620888" pos="0.05993708468874781 0.20830563086016346 0.2025898769495621" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03241262222639122 0.002089597901023772 0.0007772308050559518" pos="0.006245586812795689 -0.015209571233293306 0.20077723080505597" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.046689616495661654 0.04315878217264449 0.002271276884784469" pos="0.23332748627262573 0.2839860154694212 0.20227127688478447" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04402545187343461 0.009525451185527951 0.003616443572711027" pos="-0.20370544591491202 0.05748050484607348 0.20361644357271103" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04284082733114584 0.020612903804483617 0.003493844970506618" pos="0.12691245318312167 0.07651599829023814 0.20349384497050663" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0016064409074684018 0.03707532603512963 0.000839093478519364" pos="-0.1139974981769735 -0.03779907769675772 0.2008390934785194" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02440507820770338 0.030538421594006018 0.003313534699230159" pos="-0.29748193160356157 -0.2430768930160953 0.20331353469923016" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04263141287344165 0.003788542095712759 0.0018089526438167989" pos="0.2216286151616314 0.1507444880608821 0.20180895264381682" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.003449160232764526 0.03063687668279614 0.004074467500290953" pos="-0.04612439072137581 -0.059422775718294324 0.20407446750029096" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.003834822730761312 0.04532370655524539 0.0017746373796382812" pos="0.12776752999051877 -0.09243748162686286 0.2017746373796383" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03775848112476241 0.038472633797125656 0.0034098285619767865" pos="0.06676029734931116 -0.021528870795100186 0.20340982856197679" 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="1397.44950342" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.1582370554113335"></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.0010961164502 0.0010961164502 0.0010961164502" file="mujoco_models/candle_holder.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/gauzy_0202.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>
    