<?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.025183374126263713 0.02677223324422035 0.0020634229507402253" pos="0.2287316023935097 -0.13278627562315357 0.20206342295074023" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.013913347941376629 0.0470135718981057 0.000797743575203512" pos="-0.2961916692624913 0.11428817042725209 0.20079774357520352" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.006689906175490302 0.02714652919365457 0.0013731624885509907" pos="-0.10425744793590985 0.14403504045789933 0.201373162488551" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04493569956317049 0.012113333798594063 0.004421147520490543" pos="0.16841405416485705 -0.23934517175134326 0.20442114752049056" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.037404771357749896 0.005010122323906992 0.0011091505861020614" pos="0.22539211408541376 -0.12870260781948722 0.20110915058610207" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.015605859939424243 0.016662810835535006 0.0049356569034555075" pos="-0.11129034709470945 -0.1235303835464725 0.20493565690345553" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04742326731887992 0.011967509823224486 0.004262546905764792" pos="-0.12325367007380486 -0.19434020707903554 0.2042625469057648" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0022828691826573076 0.020779180525296728 0.0032579081102507693" pos="-0.23585365206455097 -0.06742071137923056 0.20325790811025077" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03360193618284839 0.043229202939137026 0.00024165302952310313" pos="-0.2654683888606309 0.14935278314734568 0.20024165302952313" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.011673036286335578 0.025844489305686672 0.00017706811234046655" pos="0.005653295133311864 0.04311927465650883 0.20017706811234048" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04753473084324456 0.02804122828980961 0.0038534261364111975" pos="0.09591582419935002 0.1486057669937288 0.20385342613641122" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0017507887605478355 0.009463669403995442 0.0047542019783059965" pos="-0.03882683531423742 -0.12586777366136 0.20475420197830602" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.346510678561 0.646510678561 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="421.648045214" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.305989918092276"></joint>
            <site name="object0" pos="0.02848932143900007 0.03848932143900008 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.00448650704369 0.00448650704369 0.00448650704369" file="mujoco_models/Cube_Stand.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/braided_0195.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>
    