<?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.035689756882250415 0.011254491643821352 0.000883749927422223" pos="-0.07557191600479277 -0.18264489754710644 0.20088374992742222" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.039081039952887656 0.017574354049835306 0.0038544268851043637" pos="-0.27705748361472765 -0.08032725679274186 0.20385442688510438" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.018655077908207758 0.01444967042188752 0.004809870457718276" pos="-0.16635620924325437 -0.04492585373917801 0.20480987045771828" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021316774194130552 0.04748700938540556 0.003686554482835135" pos="-0.25328720106701225 0.11419129122983379 0.20368655448283515" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.011679038170272351 0.021119481034277774 0.0037040832047152924" pos="-0.13817710979294262 0.1288615879695843 0.2037040832047153" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.045194401323789 0.020287043513628405 0.0020641698679535444" pos="0.29727740510147244 -0.15589383096705758 0.20206416986795356" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04920394966169441 0.020700541641776968 0.001568897967938737" pos="-0.22033253364546668 0.14634473754730004 0.20156889796793875" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0246955156642095 0.026417234501054584 0.0006059522777706901" pos="-0.28531023628925195 -0.24627939369309082 0.2006059522777707" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009222500816316023 0.002793404023365552 0.0031410427054888394" pos="-0.06438974052048096 0.28502318378079067 0.20314104270548886" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03976416849044782 0.023522260590350653 0.0020244806676063395" pos="0.291281593006858 -0.09239234581985026 0.20202448066760634" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02442129863956642 0.02002266335253355 0.0027970620445847117" pos="-0.17425525444772938 -0.0894898228200251 0.20279706204458472" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.1879824865833999 0.6255269789665 0.4129995996675" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="858.569463941" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.9065496610877863"></joint>
            <site name="object0" pos="0.1870175134166001 0.05947302103350005 0.00700040033249999" 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.00294881648824 0.00294881648824 0.00294881648824" file="mujoco_models/ModernSlipper.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/frilly_0008.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>
    