<?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.011362133489659986 0.03271643846268915 0.0024307976490714183" pos="0.049023848339125486 -0.25918743291282786 0.20243079764907143" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.034768989674140716 0.020845451843148434 0.0022115533121219635" pos="0.23058406533553072 0.13354320420182947 0.20221155331212198" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0010538615611907496 0.04003398052566723 0.0034300786368773703" pos="0.14819827810273417 0.09894252313641361 0.20343007863687737" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.023201720504195847 0.02006610620288112 0.0029705210187150376" pos="-0.056109544998728555 0.02028453769510874 0.20297052101871504" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01093424406755178 0.03401535326584394 0.0011110124014119761" pos="0.16536738569559328 0.19345994858943788 0.201111012401412" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03743591403176958 0.025614174114672265 0.0015463130424374625" pos="-0.06487872405484052 -0.24630561610433255 0.20154631304243747" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.038840197807799785 0.028913608470038356 0.004350841403836291" pos="0.13211827468773185 0.2246546162304886 0.2043508414038363" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0040064748307836445 0.03899069735424888 0.0019106110545865863" pos="-0.057722676643591875 -0.01761089280456435 0.2019106110545866" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04933015671649142 0.03932022454614732 0.0029406120907470427" pos="-0.024970280570339953 0.024110062584832725 0.20294061209074704" 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="5288.66065959" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.90841016121675"></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.0007466687934 0.0007466687934 0.0007466687934" file="mujoco_models/ash_tray_with_design.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/marbled_0111.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>
    