<?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.03408834098394982 0.009691542944282653 0.0030189216402642274" pos="-0.2160027690565272 -0.04364330449948395 0.20301892164026425" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.005299924446528319 0.04210725637035627 0.003272576801676675" pos="0.2612246354068642 0.05302543092822487 0.20327257680167668" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02980210005144326 0.02614498924124677 0.0020180552070530903" pos="-0.2995483794621356 0.1481682205175474 0.2020180552070531" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.037595964467082674 0.03910366257793201 0.002944997466369868" pos="0.19107385185223752 0.19667537399087054 0.20294499746636988" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04735845176852967 0.007268337185360958 0.0028047114348605543" pos="-0.16858691508890192 -0.0585333883230818 0.20280471143486056" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.045234015079897515 0.03623808816528717 0.0010604211961358697" pos="0.23855755292709296 0.1382139011244441 0.20106042119613587" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.030849495962486855 0.005182220091711144 0.0037395923034843977" pos="-0.0998946184658524 -0.194137021140752 0.2037395923034844" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03562669360406006 0.028877228684792988 0.003633168760241944" pos="-0.20680929055076397 -0.01175207577785431 0.20363316876024196" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0020433068736981364 0.02542241763965557 0.0021640907431653487" pos="0.038475486275601434 -0.11418034373148661 0.20216409074316535" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.040913107931699944 0.0028535187789294975 0.0012911943659671273" pos="0.23484193139757875 0.054412899766713596 0.20129119436596715" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.006085830713417037 0.02105301945558274 0.0006608998444070834" pos="-0.09966524464797599 -0.23157617150522852 0.2006608998444071" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02066867215152289 0.016395750904737164 0.0025449691362225166" pos="-0.012391583196247002 0.05111780591602727 0.20254496913622252" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3578472119415 0.67255350688395 0.4130014016004999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="3865.16659816" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.3874385408611656"></joint>
            <site name="object0" pos="0.017152788058500068 0.012446493116050061 0.006998598399500067" 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.001401600493505 0.001401600493505 0.001401600493505" file="mujoco_models/quilava_with_frills.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/fibrous_0211.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>
    