<?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.04192511494544556 0.022650395691116796 0.0026909800599449383" pos="0.2756322079609989 -2.7573767942490335e-05 0.20269098005994496" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02539276490022815 0.03734118258997144 0.0036725641574576837" pos="0.030521392026319538 -0.1523435771950044 0.2036725641574577" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.012967313388805683 0.03463918791793572 0.0021628769223409924" pos="-0.0023698530327186385 -0.14575945249217598 0.202162876922341" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.031781249302253255 0.03347435842554543 0.001319443466463316" pos="0.08225047016160825 -0.057332004058824104 0.20131944346646333" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03057405352063633 0.02569189328547757 0.0021097305893786277" pos="-0.13770371600116607 0.26530072366975915 0.20210973058937864" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03206704066321085 0.036242353696816006 0.004517038320264512" pos="0.027652323813954438 -0.21555133752839922 0.20451703832026452" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014231504577784292 0.0064526228083783225 0.0042192021633491485" pos="-0.2362630785326315 -0.07426600288219415 0.20421920216334916" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.013177737267754886 0.007785238477693753 0.004315488865791097" pos="0.28610308846846005 0.1292844876274647 0.2043154888657911" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.337469025138 0.6412221226239999 0.3567035377069999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="2154.38079401" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.3394116445481257"></joint>
            <site name="object0" pos="0.03753097486200008 0.04377787737600014 0.06329646229300007" 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.003753097486195 0.003753097486195 0.003753097486195" file="mujoco_models/Simple_Filament_Guide.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/scaly_0128.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>
    