<?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.032278932739285095 0.02491953957732991 0.0025039191250900207" pos="-0.24150888028756093 0.09158093525739874 0.20250391912509003" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021386513976709664 0.02901628066027428 0.0022478343863594438" pos="0.02206911636891401 -0.10480440748497011 0.20224783438635946" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007194940393299983 0.004860104820054429 0.001481729249592283" pos="0.13851240246724572 0.04053143053341107 0.2014817292495923" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04912217513518773 0.010227980383929285 0.00355417581714542" pos="0.17511858590069362 -0.011233065054037927 0.20355417581714544" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0028120557290435004 0.04632315903629091 0.0013050222364963085" pos="-0.08458617873465846 -0.06649398657706979 0.20130502223649632" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04132424577350666 0.025887386571989603 0.0002437723018601501" pos="-0.010747610483314352 0.014025598162582642 0.20024377230186016" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.044502823436215116 0.01635914523865663 0.0005405512477974839" pos="-0.2912748000726055 0.17739666995703518 0.2005405512477975" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01863360923834283 0.04052848987894123 0.0030719516059322612" pos="-0.23165737829462807 -0.053005530568307674 0.20307195160593228" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03706641728971236 0.009463547571967861 0.0014886997599329564" pos="0.1961235694220872 0.2840884308478963 0.20148869975993297" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.028989877416499922 0.017328234528374585 0.0021212378640530654" pos="-0.1485775428291549 -0.1457608232711091 0.2021212378640531" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03809929597563544 0.008128271314631254 0.003153376518487871" pos="-0.07913642277212035 0.004196721836664419 0.2031533765184879" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3747083610164998 0.6749999999999999 0.44635369798549995" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="4150.66476731" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="0.6128094312645468"></joint>
            <site name="object0" pos="0.00029163898350015316 0.01000000000000012 -0.02635369798549997" 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.000474981809806 0.000474981809806 0.000474981809806" file="mujoco_models/Tree_2_tree.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/frilly_0042.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>
    