<?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.04635023365373157 0.04143718765684907 0.00490270804496699" pos="0.263539765028131 0.13721873920094474 0.204902708044967" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0035739906300476937 0.04995598705619169 0.002419261608727409" pos="-0.2634017786181399 0.2948539863015856 0.20241926160872742" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02894845916345072 0.023491197114699547 0.00019696821108201008" pos="-0.04295929832609474 -0.1900375516871285 0.20019696821108202" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03622850061554965 0.0013854782236552088 0.002711874834482422" pos="-0.27377026898094114 0.12889799754136416 0.20271187483448244" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04769795514765734 0.0031227068641444234 0.000605112389717519" pos="0.009355784246120824 0.28947726264670987 0.20060511238971754" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021161379809729198 0.03116307477315902 0.0038321013185681836" pos="0.256752053529857 -0.19379000934460894 0.2038321013185682" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04565987475070566 0.031694788110307445 0.004047473889170924" pos="-0.12266686653832995 6.057577760654187e-05 0.20404747388917094" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.011239000316575706 0.04287560254428299 0.0011024375532994045" pos="0.02899606714640196 -0.049252071976572165 0.20110243755329943" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0034298861470705546 0.021195234811922464 0.003943547354697693" pos="0.017359512601466343 -0.11712186560469529 0.2039435473546977" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.022825252456121162 0.038939014388892364 0.003373953422941517" pos="-0.23345805526550323 0.018747946916559233 0.20337395342294154" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6755871510547999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="5054.24269628" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.1908930704429876"></joint>
            <site name="object0" pos="0.0 0.009412848945200114 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.000906798278015 0.000906798278015 0.000906798278015" file="mujoco_models/Filament_Spool_Leveler.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/knitted_0151.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>
    