<?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.02651334052383254 0.007960499867746051 0.004801059928955805" pos="0.2472484985030436 0.061655530756442034 0.2048010599289558" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01565269449115674 0.045315902606202364 0.001117662109246766" pos="-0.2972048335417218 -0.016146993008054555 0.20111766210924678" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.040648795091500295 0.001672191819397446 0.0034802081957107" pos="0.05434176895006576 -0.2429811797645374 0.20348020819571072" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.015002797851170986 0.041855533739095147 0.0033061739627093367" pos="-0.06660243892229212 -0.2150347664427567 0.20330617396270934" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.026127417766704186 0.03305224586066358 0.0004314127917194408" pos="-0.17180904511533093 -0.13101502087422093 0.20043141279171944" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.027287341597088528 0.046061868328860875 0.0033831542018342904" pos="-0.2950692991021873 0.16176233280987823 0.2033831542018343" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.003465603724489305 0.04293793438913706 0.002180809164012912" pos="0.24259331490513686 0.049401593609754046 0.20218080916401293" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.018504323690502616 0.031626586385352436 0.0005281171921278889" pos="-0.29784805889183746 -0.17465609032390508 0.2005281171921279" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.042870858451882474 0.02221209548540187 0.004174748445660344" pos="-0.12399774542323078 0.11988454540021048 0.20417474844566036" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004687040798976285 0.04721141662684647 0.004164739786802596" pos="-0.20959228955749462 -0.1847092603167581 0.2041647397868026" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.45318238846049996" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="163.788182338" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.058895772599316"></joint>
            <site name="object0" pos="0.0 0.01000000000000012 -0.03318238846049998" 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.00074522236322 0.00074522236322 0.00074522236322" file="mujoco_models/Tree_4_tree.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/porous_0059.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>
    