<?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.027775507523900653 0.029302687128142935 0.0024427739591022226" pos="-0.19978082108493284 -0.15503143829222477 0.20244277395910223" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.044808417984230534 0.03717211788062511 0.004916042608927028" pos="-0.26752195425336617 -0.1100567372878119 0.20491604260892704" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.048005096835996054 0.02252956173442689 0.003061253487030914" pos="0.04184486355794298 -0.21558635807871257 0.2030612534870309" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03682411062788397 0.003857317325368484 0.002736018168310344" pos="0.031582670530879375 -0.17889092975852625 0.20273601816831036" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03777078705122133 0.04491266399626242 0.0048974331978318365" pos="-0.28390983831622135 -0.11416505591105536 0.20489743319783185" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04631636685789913 0.0034747649444792075 0.0014329234485614135" pos="0.02003313260028544 0.14411828362474588 0.20143292344856142" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.012174764607317052 0.015716865202868333 0.0010532383032215837" pos="-0.03416276740278301 0.002607629799815936 0.20105323830322158" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04506212156433411 0.038766964641455126 0.0036051907479594113" pos="0.043601854894380065 -0.10285187845886345 0.20360519074795944" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004433770075107692 0.013681572645351952 0.0010539675692183717" pos="-0.1632616327321977 -0.16393507129219204 0.2010539675692184" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.022096787395751286 0.019655029103728003 0.0017515291369600092" pos="0.22874254289304713 -0.1783575512549011 0.20175152913696" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009019029937492904 0.004724141837193744 0.0046318147618319505" pos="-0.18339221727510657 0.04336079103182455 0.20463181476183195" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3749825934675 0.6750018862546 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="793.433556559" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.9108578538965055"></joint>
            <site name="object0" pos="1.740653250004165e-05 0.00999811374540005 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.0050976322545 0.0050976322545 0.0050976322545" file="mujoco_models/hollow_cylinder_20mm.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/wrinkled_0049.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>
    