<?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.013442589975932832 0.0494668242404429 0.0005572516752526245" pos="-0.2974669152420597 -0.1447328399754139 0.20055725167525262" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01289101377313527 0.020836759358971235 0.0013325584567869086" pos="-0.2703562337138231 -0.15119442682158515 0.2013325584567869" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010445081281774907 0.02619243473091331 0.0009360556852482744" pos="-0.09928872743910439 0.026896890758176917 0.20093605568524828" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.031081119201453036 0.004573814500399098 0.0013567640784483998" pos="-0.1309408361108641 -0.2550848701128219 0.2013567640784484" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03956300747356084 0.02054366801303996 0.004152333047424871" pos="-0.11560106337027667 -0.15558888991066133 0.2041523330474249" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04967236290316051 0.04130002850760472 0.004902752024595177" pos="0.005696424959597768 0.14761360338928597 0.20490275202459518" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0024890952094659352 0.034375422469163426 0.0015346218719100864" pos="0.18367583902352874 0.06974009984814072 0.2015346218719101" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.047491515281347665 0.01651219581389866 0.0007530757549510818" pos="-0.2830138099360765 -0.1581483070692052 0.2007530757549511" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.044307892418029626 0.0445695150839723 0.003089390178596353" pos="-0.2524788222781741 -0.23810736191785034 0.20308939017859637" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.329863023754 0.6298630237539999 0.41299999097249995" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="685.469744969" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.940990126662251"></joint>
            <site name="object0" pos="0.045136976246000104 0.05513697624600011 0.0070000090275000315" 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.0090273935274 0.0090273935274 0.0090273935274" file="mujoco_models/Dodecagon_Cup2_3D_Aaron_Berg.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/potholed_0042.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>
    