<?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.04808748798192912 0.005706218827604694 0.002416591655702227" pos="0.04200607303470838 0.12012435839737362 0.20241659165570225" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014331470798855023 0.02628741912090679 0.0019994829915340674" pos="-0.2418251543457073 -0.2276954976230166 0.20199948299153409" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.020780398706903104 0.001172679713218935 0.00022235461056243537" pos="-0.2680412750848604 0.15924123766131598 0.20022235461056245" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04458048871983499 0.045309087773725054 0.0001398029307505577" pos="0.0925114732983548 -0.12814490466458595 0.20013980293075057" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004424094512811374 0.006084066341013522 0.0004269920496316279" pos="0.03016054957527292 -0.11587460154504736 0.20042699204963163" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009147580835031473 0.00812833095476104 0.004213113573111065" pos="-0.2864695519840497 -0.002845589676011673 0.2042131135731111" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004564327606864971 0.008151686943575941 0.002379940421943286" pos="-0.1758612503217129 0.08201679087750408 0.2023799404219433" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.2815842295939999 0.7549517590504999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="373.532853276" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="0.762499582264411"></joint>
            <site name="object0" pos="0.09341577040600013 -0.06995175905049988 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.00265065672404 0.00265065672404 0.00265065672404" file="mujoco_models/coin_trap_penny.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/matted_0081.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>
    