<?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.03955645985685246 0.02255834682569779 0.002593796339314377" pos="-0.10013437590997287 -0.20777795912079966 0.20259379633931437" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03862935524138227 0.004985271625238196 0.0036497960521755884" pos="0.2591894275704128 0.10754871406118072 0.2036497960521756" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.027764294227611515 0.002639154805924056 0.0042057381251586" pos="0.1653225494598396 0.101379957740584 0.2042057381251586" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.047894436343840496 0.03066729474105952 0.002347683405642743" pos="0.07422213547181622 -0.17802085613213403 0.20234768340564274" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.003999005793323294 0.03876513687563173 0.0018623309344781062" pos="-0.1893368553538975 -0.27828711691920316 0.2018623309344781" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01750454247452432 0.027395120257444183 0.0024186025878923786" pos="-0.26253812021073275 0.23303222966323262 0.20241860258789238" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04683148024554812 0.004411243260907008 0.0031092890167569763" pos="0.2707924723222371 -0.26682197983702655 0.20310928901675698" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010874486648619081 0.03087372805954714 0.0026812127244437273" pos="-0.1483284941654775 -0.0639895146778191 0.20268121272444373" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0442119159212716 0.012564476904717053 0.0011672619619197148" pos="0.1694995260119619 -0.08046743116543334 0.20116726196191972" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.038739747933191626 0.0030936006726197166 0.003107964840154017" pos="0.28353432677601026 -0.19047832106370707 0.20310796484015403" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01665014670273691 0.013080767625928209 0.0022178064601403977" pos="0.10360361439472138 0.17692558124335322 0.2022178064601404" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04556426772328681 0.04297333821689148 0.0021624534330439674" pos="0.1808766316446347 -0.07394732024953071 0.20216245343304398" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6649804750328 0.44390014711349995" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="614.865361756" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.6822498852352683"></joint>
            <site name="object0" pos="0.0 0.020019524967200053 -0.02390014711349997" 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.0001057511122645 0.0001057511122645 0.0001057511122645" file="mujoco_models/Gengar.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/chequered_0122.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>
    