<?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.028842662089822408 0.013081290050746649 0.003022522020213151" pos="-0.2294846142578174 0.28553032105112003 0.20302252202021318" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04669549898900968 0.020198049989668624 0.0012866751112178187" pos="-0.14976107228785632 -0.009963878878564758 0.20128667511121784" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0029596472931351313 0.032345550197681226 0.0021006842508647493" pos="-0.0735560564466676 0.18561898289351902 0.20210068425086475" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03574273754898121 0.047762356954241914 0.0018244875784288845" pos="0.23852565878964332 0.16198031175005329 0.20182448757842888" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01851380792814094 0.03146160638620963 0.0015139927924933084" pos="0.2246399502449054 -0.23254360967261323 0.20151399279249332" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.011409283703408012 0.009968631311916137 0.0020748274117810142" pos="0.14713977601927747 0.016144469431308206 0.20207482741178104" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024896139853372173 0.001026752279952787 0.002184468454239768" pos="-0.2618677350983049 -0.17504804872710972 0.2021844684542398" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3725655084819999 0.66478192256325 0.4351341386284999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="3525.55897381" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.790531099785888"></joint>
            <site name="object0" pos="0.002434491518000126 0.02021807743675008 -0.015134138628499938" 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.000734156671695 0.000734156671695 0.000734156671695" file="mujoco_models/grendae.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/dotted_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>
    