<?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.003832294698233101 0.040013291180680574 0.0007943130810521973" pos="0.19248012133115172 0.02487879190879616 0.2007943130810522" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0419602304740595 0.00815436254348878 0.0008089633977275959" pos="-0.1709414712664038 0.010515435887129387 0.2008089633977276" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.022708500659442684 0.013818432297651697 0.0014720831034629317" pos="0.15965334525157943 -0.25327631579813337 0.20147208310346293" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04501130699664777 0.020323983344956643 0.00378971233657328" pos="-0.20723351809334928 0.17330409790876233 0.20378971233657328" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.013463377326509478 0.0011208663665093525 0.003907955270477265" pos="0.05417918717255649 0.10287382469799522 0.20390795527047728" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.030332681722350836 0.012383606064471999 0.0017126123443344287" pos="-0.29555164955576985 0.24724918951427216 0.20171261234433444" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.022504425370353416 0.009235942739859986 0.00010207549329470417" pos="0.17111256166535305 -0.09375495427888819 0.20010207549329473" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014937100465592369 0.02704336229639059 0.002513546049542917" pos="0.07132958281890805 -0.2974725125277926 0.20251354604954291" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.018878403077659648 0.048754523976237134 0.0011153045265472595" pos="-0.10310817509936523 -0.23156079859748135 0.20111530452654727" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.025519618635412522 0.020632939748289364 0.0020814786846213057" pos="-0.047082921385932286 0.12125678725024125 0.2020814786846213" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02314374447010013 0.013768460061842736 0.0025162716466502174" pos="0.26741338344771476 -0.017299651622462886 0.20251627164665023" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007811573177914284 0.04134912325923533 0.004595646476052797" pos="-0.09570589701093168 -0.28675824363521757 0.2045956464760528" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.4506786802365 0.5985040869775 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="795.307197562" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.669856744190032"></joint>
            <site name="object0" pos="-0.07567868023649993 0.08649591302250004 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.00099194650901 0.00099194650901 0.00099194650901" file="mujoco_models/Stepped_Pencil_Holder.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/zigzagged_0132.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>
    