<?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.004639042308951721 0.005207599649413625 0.0003162898535517696" pos="-0.07421126048170523 -0.15815758363588198 0.2003162898535518" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024025225279774493 0.016801523112525203 0.00441563623093187" pos="-0.1853310010086262 -0.1899777027212066 0.20441563623093187" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0058402718280119725 0.031088794274179606 0.0006458720615937956" pos="-0.25449943451033585 0.26396012387626006 0.20064587206159382" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004541358836036312 0.016558137569323034 0.0020811561213911404" pos="0.08302014866050522 0.08198153513470025 0.20208115612139116" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0023635902676298354 0.00800437182663261 0.004705943731206627" pos="-0.05488361502024483 -0.07474097998244195 0.20470594373120665" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0017688906936146338 0.003153904507292957 0.0005083188335125973" pos="0.05826638114153471 -0.11148242726676469 0.2005083188335126" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0010442516387304162 0.01067567693668469 0.003986602176207342" pos="-0.13612334735173992 0.1307965669357125 0.20398660217620734" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3502947770134999 0.6527652993122499 0.37594216552049997" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1180.00934828" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="0.3624219074112054"></joint>
            <site name="object0" pos="0.02470522298650013 0.03223470068775014 0.04405783447950001" 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.00247052229864 0.00247052229864 0.00247052229864" file="mujoco_models/Simple_Filament_Guide.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/spiralled_0117.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>
    