<?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.019268653226795808 0.03998522880026675 0.0001887297773931407" pos="-0.1716316800960527 0.05752260122897912 0.20018872977739316" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.028660268057994504 0.013524542125606696 0.004725896503539465" pos="-0.27588863988341344 -0.056113903487156724 0.20472589650353948" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010554633946724262 0.03762905404808591 0.004914044390754781" pos="0.2617593208457016 -0.06555470000203995 0.20491404439075478" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02337092308812622 0.009655995603158309 0.0035384043456169367" pos="-0.09551464994399192 0.166445609395459 0.20353840434561696" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03953822664627418 0.021893876230672644 0.0035552904153772617" pos="0.059731545163334954 0.12543994569746253 0.20355529041537726" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03796693228993774 0.002947197692493379 0.0026499234628839805" pos="0.15321970838438792 0.005667243622660911 0.202649923462884" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021793495346097532 0.029145406527651907 0.0005195945289042665" pos="0.23504525348609 -0.2809282912776005 0.20051959452890428" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01596421046142936 0.0025557390179173486 0.0020807877283009345" pos="-0.18076628538637762 -0.27155288494661883 0.20208078772830096" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004305130152781247 0.02397102993368428 0.0037512867272725572" pos="-0.11805466701232092 -0.21672474443444775 0.20375128672727258" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3543583325955 0.6159433790065 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="6770.6078418" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.0862049099631386"></joint>
            <site name="object0" pos="0.02064166740450002 0.06905662099350007 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.00114675930024 0.00114675930024 0.00114675930024" file="mujoco_models/Keysafe.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/braided_0135.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>
    