<?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.0025484078348873567 0.007721978703517966 0.0007691872615209598" pos="-0.16193067178880274 -0.19739319761415164 0.20076918726152096" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.019265584170714015 0.012786159831670727 0.003826019073349425" pos="0.23751072909708476 -0.17621392327586255 0.20382601907334943" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0333131202955818 0.029854503946694626 0.003105263222511659" pos="-0.2787039540294666 -0.1689523938804837 0.20310526322251166" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.015369204236215083 0.005287933941759815 0.004802817316437902" pos="0.15404841954110787 -0.20670764433439037 0.2048028173164379" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.006659023816835315 0.04031203006556524 0.0026729356045432106" pos="-0.2519179275909577 -0.13574145409703622 0.20267293560454322" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.00716897089744008 0.026774569228397733 0.0026938713983675564" pos="0.294167456939285 -0.25644905230557574 0.20269387139836756" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04757363066855051 0.030317238913293014 0.0008271219829531087" pos="-0.011753179920747703 -0.21846673094910093 0.20082712198295313" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.043049356043551666 0.03490198342297513 0.004583054419437628" pos="0.26575201172230495 -0.21782586068199788 0.20458305441943764" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03860265607347216 0.014606135703792527 0.004948925581089591" pos="-0.17278812941703503 -0.0818158598392063 0.2049489255810896" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01539697067964825 0.03521465661182045 0.001635201969655634" pos="-0.16475367566026267 -0.215984419441752 0.20163520196965565" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.41299999795" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="2929.92901091" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.6614810470400405"></joint>
            <site name="object0" pos="0.0 0.01000000000000012 0.007000002050000009" 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.0057340801931 0.0057340801931 0.0057340801931" file="mujoco_models/pot_of_gold_handles_rev2.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/bubbly_0132.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>
    