<?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.026541547507361388 0.03310225645922858 0.002190938349665624" pos="-0.2752425401025112 -0.09808448053762683 0.20219093834966564" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.015442891710600565 0.00729092104955229 0.0007874794878422985" pos="0.23765236636100356 0.0998443755974735 0.2007874794878423" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02247000044542786 0.04089751590831724 0.0016871482580368949" pos="-0.12103168288641167 0.22366027077234202 0.2016871482580369" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024157713572833615 0.006214041414168774 0.00015914210164435827" pos="0.14310697744826478 0.09768982960578287 0.20015914210164437" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.039343316313847215 0.0012422054049411112 0.001492294105661744" pos="0.10108324010435721 0.11115047807260064 0.20149229410566175" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0251233536569675 0.005500479084837388 0.0021540057478300744" pos="0.037357171968372294 0.2932227462393722 0.20215400574783007" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02208700080581935 0.03315024066322616 0.004260324922168551" pos="-0.036070091366919466 -0.20701299139755344 0.20426032492216856" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03970992487067896 0.047117730704218194 0.003439877580987497" pos="0.06570954911752303 0.22800398260454885 0.2034398775809875" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04630205615973223 0.014405027465486348 0.004143815787329041" pos="-0.17089862461924474 -0.16473068673692057 0.20414381578732904" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.020319547572632046 0.01258558542190252 0.003966905690119835" pos="0.04001895688716689 0.28100697470761765 0.20396690569011985" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.018215994315250613 0.037933422291334846 0.004420594038424263" pos="0.07644163958322137 0.10748823458731349 0.20442059403842427" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02123984540084268 0.024671046488136873 0.0029429184085768244" pos="-0.17058929477676157 -0.2664478195484908 0.20294291840857684" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3823019634684999 0.6853759169839999 0.4130009199325" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1230.09774767" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="0.7813980751452856"></joint>
            <site name="object0" pos="-0.0073019634684998724 -0.00037591698399985773 0.0069990800674999964" 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.0009199324055 0.0009199324055 0.0009199324055" file="mujoco_models/stormtrooper_pencil_holder.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/sprinkled_0105.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>
    