<?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.019383361898401667 0.04783143374135115 0.00025229363163359016" pos="0.23864733796378573 -0.2701019646465443 0.2002522936316336" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.027276521255317772 0.010619031509444394 0.0027025610085119477" pos="0.2086314872660257 -0.19622473122274536 0.20270256100851197" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.025928336980736884 0.012058922358391361 0.0015281528182680764" pos="0.28554916379282974 0.25007796112430886 0.20152815281826808" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009169385043875055 0.023883846119912837 0.002907125866168523" pos="-0.27260084189358075 -0.18468426349035205 0.20290712586616855" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021284355689674746 0.02618588153860411 0.0003780275796248492" pos="-0.25791011574416406 -0.17561028392916828 0.20037802757962486" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04752038675237424 0.001323357672553994 0.0030111113043370455" pos="0.20259790297983332 0.25774426505684783 0.20301111130433705" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.012636166316271992 0.030492789951074198 0.004706439547480997" pos="-0.29253082003146597 -0.04943190242902118 0.204706439547481" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01719559905133653 0.04895255303746905 0.0025126497871146" pos="-0.25559895656737514 -0.04374342474491749 0.2025126497871146" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03315638787273183 0.023063911617190184 0.0034290039306185353" pos="-0.10431011846122398 0.25807317288275183 0.20342900393061855" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.029434632017352986 0.03068438665505335 0.0049974811278834875" pos="-0.1272667701184038 -0.014970312570062372 0.2049974811278835" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04217113534126625 0.004694216736302123 0.001144418662307927" pos="-0.0652977125721855 -0.0865596637951076 0.20114441866230795" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.4503073614464999 0.599677116156 0.41299937728049996" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1438.85854521" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.2043063299510717"></joint>
            <site name="object0" pos="-0.07530736144649985 0.08532288384400011 0.007000622719500027" 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.00041845982728 0.00041845982728 0.00041845982728" file="mujoco_models/lspike2.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/swirly_0104.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>
    