<?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.03286610368920862 0.043728155757090055 0.004095041125547584" pos="0.17313053548346236 0.05334391849719117 0.2040950411255476" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.006225000745712637 0.03469967847502277 0.0015813753279272109" pos="0.1700368502431267 -0.0799879297119799 0.20158137532792722" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007585895712052608 0.030660112118833398 0.004425746544956176" pos="-0.19448512950944163 -0.12334445008444453 0.20442574654495618" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.013957265160288817 0.039331581054293636 0.0008456786416753251" pos="-0.03576621500013588 -0.07403830101178685 0.20084567864167532" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0386972138583577 0.02253121287041258 0.001319636506725741" pos="-0.25163013705878895 -0.008508359749004157 0.20131963650672574" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01320182813314847 0.03458983348831839 0.0012764073625451116" pos="0.022194726301489998 0.08194178971248922 0.20127640736254512" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04513320931827379 0.045363860545573655 0.003375642535113351" pos="-0.17194442182325706 -0.2638650232974634 0.20337564253511337" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03785865503418039 0.018639008742106968 0.0006913194334055207" pos="0.2011391432936091 0.02223901983104104 0.20069131943340554" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0475016029103596 0.029364844257335144 0.004761273361907696" pos="0.029118464385124276 -0.19680719554863063 0.20476127336190772" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04823452721072124 0.005400221401943999 0.0009950054495758537" pos="0.2975417307259555 0.1671580939193097 0.20099500544957585" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0422005140276727 0.02410280816454198 0.0019555302878987452" pos="-0.1370896770445868 -0.267699591651029 0.20195553028789875" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3855741812515 0.69002566087985 0.41300133218049995" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="524.880531028" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.8339515383222045"></joint>
            <site name="object0" pos="-0.010574181251499892 -0.0050256608798499025 0.006998667819500037" 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.00133218031512 0.00133218031512 0.00133218031512" file="mujoco_models/stormtrooper_pencil_holder.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/stained_0060.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>
    