<?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.02780055303038362 0.015387224170367097 0.0048442015163434925" pos="-0.16428221949479618 -0.2905570561977225 0.2048442015163435" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.016966887258186018 0.025622960451520432 0.00023897837772736787" pos="0.0355489800203444 0.2245696649707381 0.2002389783777274" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03553187752641684 0.03152544782593691 0.004784212578470432" pos="0.2749676003052635 0.19455988182193712 0.20478421257847043" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.030779350521906702 0.024900463415387628 0.00016524895490768981" pos="0.06375714373592484 0.29345284521411225 0.2001652489549077" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.041086951451177425 0.017689627550333247 0.0008450304227176679" pos="0.17043516868029246 0.14636269237904492 0.20084503042271767" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.048385292806986835 0.043867275735027605 0.002822746863834796" pos="-0.2392294518211547 -0.009899604969623943 0.2028227468638348" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.016371057647093533 0.02610801561921715 0.0015783377157343006" pos="0.21709379518535749 0.20659620838969334 0.2015783377157343" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01645779270118574 0.030379485972325756 0.002207886202431365" pos="0.24545565421713794 -0.18758345914420632 0.20220788620243138" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03518869168746301 0.048548391064023616 0.0009588500458591419" pos="-0.17882014294547807 0.11623400320333677 0.20095885004585914" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.4377928817219999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="984.817383939" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="0.3461197883483701"></joint>
            <site name="object0" pos="0.0 0.01000000000000012 -0.017792881721999942" 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.001066543982315 0.001066543982315 0.001066543982315" file="mujoco_models/Tree_2_pot.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/grooved_0057.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>
    