<?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.012067828669061458 0.005165315646893973 0.001627749079488897" pos="0.23169307145407042 0.07088922492427285 0.2016277490794889" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0176367883106408 0.029703975919812976 0.003782400229525163" pos="0.27015656156868567 0.2753723237093603 0.20378240022952518" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.035685480663958775 0.04245989545661082 0.002016148482656579" pos="0.1985989550466457 0.07299131278849813 0.2020161484826566" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02619733890877421 0.002548743547885492 0.0029142388855229935" pos="0.24952254152473513 0.17328550559452205 0.202914238885523" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04260471548812726 0.025962303308990922 0.0015189818741122537" pos="0.25317400293823195 0.033739969330403796 0.20151898187411227" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014346081364940363 0.04730153541312853 0.001011218696199055" pos="0.15933698863200413 -0.16550945667054598 0.20101121869619906" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04064101158125199 0.030808499207188887 0.0026785865417810317" pos="-0.010268733515647055 -0.24599406914980138 0.20267858654178103" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021561611331460562 0.013970583756639406 0.0049921211658546195" pos="0.12007270707966333 0.1378748226661486 0.20499212116585463" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03734429516184856 0.028542984583208107 0.0036529170310129733" pos="-0.193991477382767 0.14393778763344256 0.203652917031013" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0033889876541167204 0.021338662684334854 0.0028564047981050164" pos="-0.2042067968203541 -0.1610605428636582 0.20285640479810502" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3749823676719999 0.6750019107229 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="823.146145024" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="0.3907705440965522"></joint>
            <site name="object0" pos="1.7632328000116715e-05 0.009998089277100108 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.00516375818405 0.00516375818405 0.00516375818405" file="mujoco_models/hollow_cylinder_20mm.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/swirly_0141.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>
    