<?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.024548139584990337 0.03247390636297215 0.0024464898433308223" pos="0.2917451148709615 0.2844812102252953 0.20244648984333083" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.030826191479324055 0.024977964999007042 0.0035866534091929807" pos="-0.11157957704488097 -0.009858950949758694 0.203586653409193" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03659864219114233 0.032148517574995046 0.0031071818620247403" pos="0.17034472209191615 -0.02732834080451385 0.20310718186202475" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.023680503158613787 0.03117366935444668 0.004555932243335457" pos="-0.07517752205329314 -0.29605659791059896 0.20455593224333546" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009211286943073164 0.043828155759751054 0.0011239187290023164" pos="-0.29055041164195117 -0.07030108407970173 0.20112391872900232" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03847832482403782 0.045824297422235566 0.002062148889858065" pos="0.0812360189231659 -0.183177958154443 0.20206214888985807" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02342947409962822 0.021500327387726028 0.004540064217365946" pos="0.16105752935014722 -0.2622203681598536 0.20454006421736595" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.019411482451397438 0.04783155418922046 0.0025519209155476035" pos="0.18762153059164594 0.2944624851435009 0.2025519209155476" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0495140111370523 0.009946490891416908 0.0018616809953591116" pos="-0.01386611599888632 0.18514751200545637 0.20186168099535912" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.92131702635 0.3962598012655 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="4853.73314412" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.611122269291035"></joint>
            <site name="object0" pos="-0.5463170263499999 0.2887401987345001 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.00286507522774 0.00286507522774 0.00286507522774" file="mujoco_models/A_Ribbon.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/spiralled_0044.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>
    