<?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.04795854535336353 0.006755706031275082 0.003640451873447945" pos="0.17459706005111958 0.13257693185476344 0.20364045187344795" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.043646019764785444 0.017550497374058067 0.003115350374298922" pos="-0.030935892618670136 0.058352504529953886 0.20311535037429893" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02186974094816718 0.04803709714360112 0.00038778027276589874" pos="0.17056238131982843 0.23792182637678355 0.2003877802727659" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.023441443311491308 0.023898539650569612 0.002904615763092261" pos="0.0732316696229694 -0.1399493852492152 0.20290461576309227" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.018859061189076598 0.003334586219509538 0.003040443660950011" pos="-0.14433626258189022 -0.11941968012225387 0.20304044366095003" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.003744111137287459 0.007505488085931708 0.0006225636260000796" pos="0.17885193937901328 -0.22422325601054546 0.2006225636260001" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03628075132645127 0.048802865060847814 0.004070894695005012" pos="0.15662313667023858 -0.04141347068865642 0.20407089469500503" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0025758877387460207 0.013590520229128805 0.0031513509661840054" pos="-0.19890407049920655 -0.0071847452667430645 0.20315135096618403" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.012986885188015832 0.02790388566106706 0.0022438985900160567" pos="-0.06132728649965016 -0.21891945083297315 0.20224389859001607" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021059187502521177 0.004630875592349981 0.0013362791241585414" pos="-0.032476309040282036 0.1584259311008434 0.20133627912415855" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3565864409189998 0.6723736837777999 0.4130015046215" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1479.24234386" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.000200004141176"></joint>
            <site name="object0" pos="0.018413559081000175 0.012626316222200118 0.006998495378500003" 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.001504621488185 0.001504621488185 0.001504621488185" file="mujoco_models/quilava_with_frills.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/striped_0113.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>
    