<?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.0017178173413507443 0.0010138727096955754 0.0010311966023852702" pos="-0.2036598947319811 0.27062671213647144 0.20103119660238528" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01615050820197163 0.008192280006922023 0.00221872503004177" pos="0.18539290036662842 -0.21982582452102883 0.2022187250300418" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.029422618064318427 0.014742159205013223 0.004557577087711349" pos="-0.1947710359570276 -0.07509996353635615 0.20455757708771136" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01569530510485093 0.031320422463332165 0.002958971361200501" pos="-0.019897390562512385 0.23620563890457918 0.2029589713612005" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.031744690369574745 0.04461450598138627 0.0009237029859835667" pos="-0.14285013287909518 0.2517353032670587 0.20092370298598358" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.026349778558117074 0.047596239283733174 0.0019553159532817803" pos="-0.017020009094385946 -0.031579428235761375 0.20195531595328178" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04498171777625432 0.01582087931818481 0.0007580701175547726" pos="0.0749583303691953 0.2018326900446233 0.20075807011755478" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04341992396141882 0.02490979354950755 0.0009218893936641759" pos="0.2896407549465965 0.2943885571055133 0.20092188939366418" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.015082590650412071 0.002883425406537201 0.0006807649402010893" pos="-0.012432457166823507 -0.23519315996287982 0.2006807649402011" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04116476502656614 0.04681200323412137 0.003896923771767395" pos="-0.2611756268790147 -0.08196786481159954 0.2038969237717674" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.040420768255699846 0.028650495446120368 0.0011193746522078576" pos="-0.03788744466780747 0.20843813014313178 0.20111937465220786" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0432897669483004 0.0352338689777323 0.0035057185185339663" pos="0.17784378938924283 0.00849437624868754 0.20350571851853397" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.374999997602 0.67500452988185 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="3512.10237043" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.0739436504736448"></joint>
            <site name="object0" pos="2.3980000207757257e-09 0.009995470118150052 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.00062862961948 0.00062862961948 0.00062862961948" file="mujoco_models/mug.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/meshed_0130.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>
    