<?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.02597720822499496 0.006199779502454308 0.0016262702221776439" pos="0.11216744398831069 0.2360603462414504 0.20162627022217766" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.006309136988680102 0.030873006731771267 0.003422831736703432" pos="-0.13429379623340362 0.15398435761148926 0.20342283173670345" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.006063087376633748 0.012744167513996197 0.00010240572262021282" pos="0.0016427500806832085 -0.14193842688197483 0.20010240572262022" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0048253061524937985 0.04416319122536427 0.0010734584256943051" pos="0.0403918731456705 -0.13712074183800343 0.20107345842569432" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.030277479207396357 0.033060535051196556 0.0036553973298737857" pos="-0.1225643527869898 -0.2716469289615263 0.2036553973298738" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04300631074938902 0.04849539555658144 0.004442501122029288" pos="-0.25043397080184365 0.1710817168935243 0.2044425011220293" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02481416976567928 0.03197394550805483 0.0030974047281596886" pos="0.02101877405170821 0.10504676371133959 0.2030974047281597" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.031199749997706475 0.02926519839838372 0.0007998402123473922" pos="0.21896246921563073 0.1520972535338488 0.2007998402123474" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04825409079666366 0.03979540716773374 0.0029543542278063287" pos="0.25030053065364893 0.092557625178599 0.20295435422780633" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.016196354796087623 0.009599667289699864 0.0030611081181958853" pos="0.14170448096298272 0.19449728094850877 0.2030611081181959" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014979109033064705 0.04519800693968506 0.002932059253543317" pos="0.13385583279865132 0.1848796998678488 0.20293205925354332" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.046632817221916915 0.015209527007938515 0.002023086431267608" pos="0.23998038329930144 0.20068568307220086 0.20202308643126762" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.335789834378 0.6397108509405 0.35418475156699997" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="2345.17616911" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.3910338977862677"></joint>
            <site name="object0" pos="0.03921016562200008 0.0452891490595001 0.06581524843300002" 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.00392101656219 0.00392101656219 0.00392101656219" file="mujoco_models/Simple_Filament_Guide.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/blotchy_0108.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>
    