<?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.04822399098562219 0.0036635028192731826 0.003684816075461117" pos="-0.2583673731550074 -0.08618734090407565 0.20368481607546113" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0416472615027105 0.021310390896485898 0.002490208572468782" pos="-0.0023610780171899326 0.0824266684204712 0.2024902085724688" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02318269003062022 0.042978024161320814 0.0032370296372074008" pos="0.17923230956473535 0.11652584921131837 0.2032370296372074" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.012870556046036315 0.042909862408642856 0.003451922916158615" pos="0.08167356734358866 0.10319424821927425 0.20345192291615863" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03417442378669617 0.0027339618860224148 0.004674302904917498" pos="-0.26693711844269474 -0.2641664709487724 0.2046743029049175" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.026971952559159833 0.0419794483111774 0.0015483279751995836" pos="0.053049578721969914 0.11498937189744995 0.2015483279751996" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01584594312512514 0.027786343965488486 0.0021444550139593154" pos="0.0740860693708657 0.19983324939348385 0.20214445501395933" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03828234093486626 0.04943732617815509 0.0016019725553492177" pos="0.2597389588979406 0.17404284081314098 0.20160197255534923" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014933116910375376 0.01609056786403784 0.0025607353120919345" pos="-0.0161014456351109 -0.10265250529540715 0.20256073531209196" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.67596084699395 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="686.333762201" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.5648889771150496"></joint>
            <site name="object0" pos="0.0 0.009039153006050071 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.00148393567958 0.00148393567958 0.00148393567958" file="mujoco_models/Filament_Spool_Leveler.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/banded_0034.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>
    