<?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.019876615537389418 0.010764550673049156 0.0016961026620298171" pos="-0.14504946503507465 0.08334018763050483 0.20169610266202984" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.016294372616072465 0.015623657287761803 0.0009388922053177494" pos="-0.15186649860557258 0.057593225674501536 0.20093889220531777" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03204026000820253 0.021730225007086372 0.0035215075870186556" pos="-0.2008077495780235 0.03196331517318596 0.20352150758701867" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0336894719842092 0.03214869378063332 0.0026749502983716266" pos="-0.2263795917315927 -0.2593343328712168 0.20267495029837163" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.017114594484406297 0.021674267400964932 0.0010909737699360438" pos="-0.15246520639230007 -0.29907709600113797 0.20109097376993607" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009070671437019902 0.0032616199435187023 0.002513284223778006" pos="0.12532271130770195 0.18101106742033818 0.202513284223778" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03265003166143128 0.014086741541296247 0.0020124904492229527" pos="-0.002934642881737337 -0.12365314900181307 0.20201249044922295" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.029753497280346854 0.025184842284239062 0.003992954534698379" pos="0.24115974915430755 -0.07064008085270007 0.2039929545346984" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.044011482501915264 0.027350617737919573 0.0013903002387902679" pos="0.22674557347049945 0.2564581054725649 0.2013903002387903" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04525126694541858 0.022831584393111483 0.0027396695147112473" pos="-0.2062317886063919 0.2627369355901657 0.20273966951471126" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3719781892754999 0.6660586517953999 0.39553055209199994" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="6383.82687972" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.286535293320682"></joint>
            <site name="object0" pos="0.00302181072450014 0.01894134820460014 0.02446944790800004" 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.00077313846235 0.00077313846235 0.00077313846235" file="mujoco_models/TD_Mushroom_cap.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/marbled_0176.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>
    