<?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.03318226353521259 0.026629679716839213 0.004249994933986448" pos="-0.23624835000540573 0.1977099843350646 0.20424999493398646" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03289497709852425 0.011531547651105614 0.003710837516793076" pos="0.1447999727525332 -0.2351990493105705 0.2037108375167931" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014055893740029461 0.03230438029241478 0.0019648158487775734" pos="0.15914696761488062 0.021625464484575307 0.2019648158487776" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04299285666670762 0.006440274754987749 0.0036953591850657605" pos="-0.021216017958619438 0.011634573494781753 0.20369535918506576" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014918232543986554 0.014184094530447985 0.001030038695403076" pos="-0.07599259046473547 -0.15660729300450185 0.2010300386954031" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010296675738633482 0.048127999717693576 0.0022923299841650286" pos="0.10687339956787317 -0.0755111048953925 0.20229232998416505" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02891989344651298 0.025460903342648 0.003102171926918874" pos="0.133637252669355 0.0983455234507884 0.20310217192691887" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.038343066043835396 0.008168915987700389 0.0005607525884673601" pos="-0.09666034015244596 -0.010903283474945735 0.20056075258846737" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3248887583684998 0.6248887583685 0.4129999899779999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="113.193962969" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="0.6008062074779627"></joint>
            <site name="object0" pos="0.05011124163150016 0.060111241631500056 0.007000010022000069" 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.0100222464147 0.0100222464147 0.0100222464147" file="mujoco_models/Dodecagon_Cup2_3D_Aaron_Berg.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/potholed_0125.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>
    