<?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.010706429258454098 0.015630951250199487 0.0007212747147881054" pos="-0.26698408075122343 0.2533909440594165 0.20072127471478812" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.001974944175536721 0.04963604340986797 0.002940745770304643" pos="0.22786623888516272 -0.17853728645002265 0.20294074577030466" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.027434852639028062 0.04202116679026781 0.0012114649287850575" pos="-0.1580297851606562 0.04143455103116345 0.20121146492878506" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04213549740462812 0.04485792714545967 0.0033244702206274485" pos="-0.21066675504223675 -0.24036315089031868 0.20332447022062747" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.027731671851213884 0.03130707358304532 0.00036939810285303626" pos="0.15833431824370964 0.15843848744103944 0.20036939810285304" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03883164153072533 0.002140697315758582 0.001446916697591332" pos="-0.26886867900716754 -0.0130308581682263 0.20144691669759135" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.003479375193184402 0.026170088190598777 0.004236565847587523" pos="-0.14194846628435773 -0.025042974922158734 0.20423656584758754" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02803019678607473 0.01197449227027909 0.001788160494890003" pos="0.13642949376646246 -0.21987835925326582 0.20178816049489" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01118147210496143 0.012837075418284941 0.003784038754336419" pos="0.025666330866580545 0.023929369405656764 0.20378403875433643" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014080619904230606 0.004261817425445582 0.0029303589285552987" pos="0.24162846640686603 0.1609975117239537 0.20293035892855532" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.5930068408259999 0.45699315917399996 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="26200.3330839" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.956136305607599"></joint>
            <site name="object0" pos="-0.21800684082599986 0.2280068408260001 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.00218006840826 0.00218006840826 0.00218006840826" file="mujoco_models/Filtre_filament.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/sprinkled_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>
    