<?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.008606437379833414 0.033279325432130746 0.0003601477431245111" pos="-0.21526949760859726 0.2712466960986814 0.20036014774312452" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024929858030716328 0.03217604254778371 0.0003003497488830685" pos="0.055945670577574824 0.2673397343121449 0.20030034974888308" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.029323483127179226 0.022152195164881844 0.0002342892268545913" pos="-0.14016692266737668 -0.10947190541888127 0.2002342892268546" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.013740760933488555 0.015474310353390669 0.002637713357224635" pos="-0.21385576505780177 -0.2600214475098113 0.20263771335722464" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010124751419003316 0.00604538332393097 0.004616742753172691" pos="0.015116984288642166 0.17654774295971531 0.2046167427531727" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02236465473563152 0.021398961079008832 0.001646471451752418" pos="-0.04097511530148529 0.006478505693928938 0.20164647145175243" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.012852429526948338 0.02902972218057137 0.0010249027300137312" pos="-0.007330799447474501 0.21024679437263433 0.20102490273001375" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024907245995405794 0.02417402463804956 0.0032657904754384345" pos="0.19420581514022678 0.15870941651494902 0.20326579047543844" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.029267355953147167 0.03875357746490948 0.0008731589904897349" pos="0.04730593514294151 -0.2675341914458884 0.20087315899048974" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6614163558369 0.45489186656549996" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1054.0275285" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.009759398505183"></joint>
            <site name="object0" pos="0.0 0.023583644163100104 -0.034891866565499974" 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.000143368621123 0.000143368621123 0.000143368621123" file="mujoco_models/Gengar.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/bubbly_0103.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>
    