<?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.028377818549517965 0.017200236494252695 0.004241666180417203" pos="-0.02673816632135717 -0.24438888470510362 0.20424166618041723" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02329030936295855 0.04372645141135717 0.0022965825197827825" pos="-0.2913905113557899 0.06689119434988178 0.2022965825197828" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04979567016715854 0.04104518061798508 0.0031244659384289243" pos="0.24863933207873096 0.18814900899063713 0.20312446593842892" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.025433328284261984 0.02996979398496171 0.003683334765094797" pos="0.20785569838731882 -0.26509415857397317 0.20368333476509481" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.038965389000896404 0.0229276685589319 0.0033379129454775493" pos="0.15877980657531005 0.023701155016468967 0.20333791294547757" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.008767227678439554 0.02106681474439504 0.00047667766938666085" pos="0.11358041469315827 0.27222370917785005 0.20047667766938668" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03996738779898516 0.02009953471656882 0.002963028330426922" pos="-0.1174795944918785 0.024627359732979026 0.20296302833042693" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01573561838344737 0.03717791308313189 0.001370773389136425" pos="0.2784122342603366 0.09716923930411886 0.20137077338913645" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004370114536508344 0.0015281104117789643 0.004985527086604992" pos="-0.16769665307052387 -0.11246235092569346 0.204985527086605" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.011212286695903309 0.046476986851087934 0.003294863012376209" pos="0.0026317941336664874 0.03459048869554221 0.20329486301237623" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01657576951766018 0.031094575115828228 0.002156041780929166" pos="-0.1804631121454925 0.0939630598259289 0.20215604178092916" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01931818789370139 0.03946825257674092 0.002135435291796682" pos="0.004962825027717832 0.17247988750853777 0.2021354352917967" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3581709975529999 0.67259968825495 0.41300137514299995" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="2881.14678866" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.0302868631185853"></joint>
            <site name="object0" pos="0.01682900244700014 0.012400311745050074 0.006998624857000035" 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.001375143099455 0.001375143099455 0.001375143099455" file="mujoco_models/quilava_with_frills.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/woven_0027.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>
    