<?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.03064203601636958 0.0497962064498426 0.0041980014146869036" pos="0.009554396670974352 0.018295518521347365 0.2041980014146869" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01669856873574162 0.017391995722267902 0.004001833234239065" pos="-0.1798308571561451 -0.0023105661162238222 0.20400183323423907" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.033412382963535915 0.043457071465687856 0.0034638213584186318" pos="-0.16444410584085925 -0.08009801513284487 0.20346382135841865" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.012626583848237203 0.023565665226212992 0.000270631483408374" pos="-0.02884854509613899 -0.23483529999178582 0.20027063148340837" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.030699517255979795 0.04095391643722169 0.0043340498000139244" pos="0.2615580784970742 0.28456634261199515 0.20433404980001393" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0032362276401940674 0.045224645378384644 0.0027532516597606935" pos="0.18670533135916623 -0.044121150648748886 0.2027532516597607" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.006529525540617288 0.026092227152562725 0.0026693637350945834" pos="-0.03857778246442245 -0.22720116677728636 0.2026693637350946" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0027508375690260137 0.0027904626817062145 0.0006514542227579857" pos="-0.2831141391973497 0.112814180037277 0.20065145422275799" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.046924691891415696 0.011351308471255102 0.00440406039267191" pos="0.014561277063966316 -0.25457972243119514 0.20440406039267192" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04380033955868392 0.024136927991405016 0.004801915828368191" pos="-0.29570819807044624 -0.09705888450812489 0.2048019158283682" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.011029030577029295 0.001837471394990306 0.001755551223362142" pos="-0.001978886704703753 0.014115982701201069 0.20175555122336214" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03920101133547714 0.01672397290593044 0.00033988981497994265" pos="0.08248209088045444 0.24517116889642726 0.20033988981497997" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.431464804025 0.617925448435 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1952.6292156" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.6588590499841827"></joint>
            <site name="object0" pos="-0.05646480402499998 0.06707455156500008 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.000740103620455 0.000740103620455 0.000740103620455" file="mujoco_models/Stepped_Pencil_Holder.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/lined_0165.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>
    