<?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.033841708130736885 0.024111539244042506 0.0035414617991893654" pos="0.13459858754146736 -0.1850573919081196 0.2035414617991894" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03344653748003608 0.042714848456222275 0.0012542792824743766" pos="0.15491008193632672 0.08029506789313418 0.20125427928247439" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04780117568915563 0.01375208228729628 0.0008559611105242174" pos="-0.11272739083098007 -0.14522473308124878 0.20085596111052423" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03808480526320213 0.036922355888493116 0.0033814560141911354" pos="-0.1701725313249073 0.21708408446345379 0.20338145601419114" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04787200623708746 0.027048685087323582 0.0032819263800839904" pos="0.0004152594123372766 -0.12986537093843767 0.203281926380084" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.015021232595833607 0.016357605614010746 0.0010351650204043544" pos="0.2411541795775906 0.2150388804280115 0.20103516502040436" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.023620328704623002 0.018995319215448354 0.004701483947080783" pos="-0.16657591846031394 0.032125175680081 0.2047014839470808" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0036704096215659696 0.010368907653855002 0.0030597319734615974" pos="0.09731019170650179 0.0485974912039438 0.2030597319734616" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0436104693839652 0.04967685582031461 0.0038429230265492648" pos="-0.020944929513744714 0.20036080167246156 0.20384292302654927" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.67500002377855 0.41309953704649993" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="588.462652486" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.8511156266129714"></joint>
            <site name="object0" pos="0.0 0.009999976221450102 0.006900462953500053" 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.003116703240925 0.003116703240925 0.003116703240925" file="mujoco_models/circ-sq-tri.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/matted_0139.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>
    