<?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.003467004686583884 0.01127817086392769 0.0039626364074074605" pos="-0.13678315187753481 0.13346861519563957 0.20396263640740747" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04890433927770821 0.032205280949256 0.0005793806006100308" pos="-0.22139521956701574 0.2960973792849589 0.20057938060061004" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02902733513623822 0.006854362967450745 0.0009420233853608231" pos="0.06361790284574459 0.047319406613893444 0.20094202338536082" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01103657245224808 0.0036085069240263017 0.002219022268727704" pos="-0.23120619732439313 0.22579142610511554 0.2022190222687277" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01509972842633112 0.03169938885432282 0.0015146913458628734" pos="-0.15531860355417396 -0.21866247633223584 0.2015146913458629" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.016842611063875572 0.03492494849263697 0.004591024246974111" pos="0.12938737161948372 -0.24512459312592658 0.20459102424697412" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03779051099330184 0.005869966175266001 0.003793925452997233" pos="-0.002767095964408217 -0.011269173410832667 0.20379392545299724" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0493289644766778 0.04181200596987033 0.004272967963489479" pos="-0.06890885276930708 -0.21329776903564424 0.20427296796348948" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.023640361483466 0.011636668544982954 0.004044682893269754" pos="-0.23019759994537553 0.07984018597365433 0.20404468289326977" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.017888114310075337 0.02047107633776384 0.0039252832858776366" pos="0.22483144253537463 0.049535902664176845 0.20392528328587764" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.4532039705814999 0.5967799099705 0.41299935332849996" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1607.43305429" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.6191188323074948"></joint>
            <site name="object0" pos="-0.07820397058149986 0.08822009002950004 0.0070006466715000215" 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.000434555392641 0.000434555392641 0.000434555392641" file="mujoco_models/lspike2.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/swirly_0138.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>
    