<?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.01673948545419664 0.004142156452278238 0.0038056605385489023" pos="-0.07069941548475162 -0.06035927962147464 0.20380566053854893" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.008310421446360718 0.04427867903661435 0.0011849664488248013" pos="-0.2509513201715464 0.23834811867501043 0.2011849664488248" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.019865815244866362 0.021990529853808175 0.003760908863097242" pos="-0.1644652924489132 0.11835402322768718 0.20376090886309725" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0019257234676972206 0.0037747053832109753 0.0016119213309826789" pos="0.22488905508536355 -0.052691233339132226 0.20161192133098269" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.033373821145433163 0.019540707395879122 0.001638060533013023" pos="0.24347624120774786 0.2498774350777942 0.20163806053301303" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009214519912465607 0.028425018419650033 0.004497762705751685" pos="-0.17756513644681524 -0.06798435430797384 0.2044977627057517" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.035750551228399506 0.026537803848103694 0.0036205438185884886" pos="-0.250898380284258 0.16434430265429 0.2036205438185885" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02872216474814619 0.0352123905554759 0.004432149110839914" pos="-0.23035589688916452 -0.1909275476519871 0.20443214911083993" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.047854591094034206 0.014785096787513746 0.0011521071038621887" pos="0.006823589244078221 -0.23155521566026355 0.2011521071038622" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04844056838360967 0.024122560002747886 0.004109343006823578" pos="0.24442225599640338 -0.08197476628902142 0.2041093430068236" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.2179977742399999 0.6226659247465 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1753.83187858" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.7156517745960413"></joint>
            <site name="object0" pos="0.1570022257600001 0.0623340752535001 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.000523340752535 0.000523340752535 0.000523340752535" file="mujoco_models/vaso_5facce_v2_noforo.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/scaly_0204.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>
    