<?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.017813668633808635 0.043788699557402506 0.0021486212890768144" pos="0.08320857283490968 -0.29475246499303304 0.20214862128907682" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03939025794471745 0.0455523617015758 0.0009547463904067826" pos="0.06656683915861755 0.07207162972963066 0.20095474639040678" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02637065484119822 0.037822958248507475 0.00024016462807946665" pos="0.14991125377699355 -0.017073887315083414 0.20024016462807948" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01440948473477651 0.0066749787801271 0.0017127594261708273" pos="0.10665859411943257 -0.2987027245971469 0.20171275942617084" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.013791913270228471 0.031297238873723265 0.002904231200042542" pos="0.2558175627143289 0.12953287066249353 0.20290423120004256" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.025388457663303974 0.014502620261851534 0.004720147626487861" pos="-0.24667221090790614 0.2799686209470777 0.20472014762648788" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.013047254573581572 0.02523094355826733 0.00233648167230242" pos="-0.25091997629905644 0.17859898401291618 0.20233648167230242" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01159883474019982 0.006564483855556424 0.0022390064024513747" pos="0.13047711772417986 0.2594717822571386 0.20223900640245138" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.028104847676507234 0.04203078222982823 0.0010738728699524012" pos="-0.0690283787722526 0.04133040824318296 0.2010738728699524" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01564301011256902 0.028257737771110406 0.00029777461256200963" pos="0.14987048168249095 0.146266380102684 0.200297774612562" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0454467381942333 0.0411087332821426 0.00027882804356887524" pos="-0.17069291763909536 -0.1273091598678127 0.2002788280435689" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="316.583197871" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="0.4876524596379987"></joint>
            <site name="object0" pos="0.0 0.01000000000000012 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.00221600812241 0.00221600812241 0.00221600812241" file="mujoco_models/Rook.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/potholed_0056.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>
    