<?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.04672426669963864 0.03292535744990902 0.004102360675213305" pos="0.22024263949280093 0.056357009547223835 0.2041023606752133" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02936102034764503 0.03211446847277345 0.004995339852784223" pos="0.28435176559114644 -0.25728440355152676 0.20499533985278423" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.031086969891301355 0.026955874219581483 0.0023693283971982842" pos="-0.2646094330780691 -0.028894860305362813 0.2023693283971983" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024778593592696404 0.015033797874938817 0.004298595642704282" pos="0.09630257883176274 -0.20817637838006242 0.2042985956427043" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024017096168603442 0.044655090030460504 0.0018005454708873373" pos="0.25191533174479513 0.26807140824416836 0.20180054547088735" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.023292478520755517 0.025123668597031405 0.0042151744692824405" pos="0.17436274406597901 -0.2714041502783365 0.20421517446928245" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.023875853468223674 0.007209387945487803 0.0012291551048683941" pos="0.031053520365277087 -0.25279434570214765 0.2012291551048684" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.019633423365691544 0.013931981255082417 0.0009515165302807937" pos="-0.029587698311892785 -0.13309848818920283 0.20095151653028082" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.046200736872924066 0.042629426540660466 0.001996992243631837" pos="-0.10043654628876386 0.22202961088745737 0.20199699224363185" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.67500002318 0.41309703151949995" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="954.776931099" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.430627814454539"></joint>
            <site name="object0" pos="0.0 0.00999997682000009 0.006902968480500038" 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.00303825020337 0.00303825020337 0.00303825020337" file="mujoco_models/circ-sq-tri.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/frilly_0091.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>
    