<?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.033997973957295556 0.0012287291906422806 0.004332247519023526" pos="0.09437572441097464 -0.29036400403112744 0.20433224751902354" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007945886064277409 0.03421453614905267 0.002599690376258585" pos="-0.13968508435137306 0.15726541277463368 0.2025996903762586" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03899555889895487 0.02172818181985924 0.0038698987864993475" pos="-0.28870493642478373 0.18927479947547837 0.20386989878649936" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02301902618300558 0.0030741155071490264 0.0016947436131964074" pos="0.09274953056259005 0.2897918411090658 0.20169474361319642" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.046801818472836834 0.040827710969416675 0.0007367739900866244" pos="0.2537188140008076 0.2554162774549323 0.20073677399008663" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010365729012347464 0.028270025953417283 0.0003324894585690347" pos="-0.23556462517158544 -0.06508020026383954 0.20033248945856905" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01208865828045817 0.014572135855911932 0.002436231709993808" pos="-0.29240874770190867 0.1661196864779576 0.2024362317099938" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.028987194230496355 0.007010011040722733 0.0038871986129894787" pos="0.15657018446479193 -0.03697909910035235 0.20388719861298948" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010004706453954099 0.010280755721970007 0.0013229191818571004" pos="-0.04626014370469844 0.16758855818098267 0.2013229191818571" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0029501764705628687 0.049283852287873346 0.0014008266727766323" pos="0.153206019289923 -0.09429050809480963 0.20140082667277664" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.032860315974543385 0.012179380990543689 0.0021874487164808207" pos="0.216057340111739 -0.2252631204622096 0.20218744871648084" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3750003416994998 0.6875544698261999 0.4328424396035" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="5394.94972464" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.6821682654003447"></joint>
            <site name="object0" pos="-3.4169949980622505e-07 -0.00255446982619989 -0.012842439603500011" 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.001133853691635 0.001133853691635 0.001133853691635" file="mujoco_models/Hot_Tub_Drain_Cover.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/polka-dotted_0227.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>
    