<?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.023424433739538033 0.04118375449966322 0.0024562604647327593" pos="0.13659219917174353 0.2505807905126514 0.20245626046473278" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03997698481739487 0.03664908117625872 0.002148504127074723" pos="0.23885300144397054 -0.060328756341720136 0.20214850412707475" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03711458458772595 0.008932546083471021 0.003962635950510879" pos="0.15152598611352502 0.2666888324861106 0.2039626359505109" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03939945293201164 0.03138904566070116 0.0028084853675188226" pos="-0.2614463630602128 -0.0444810218647122 0.20280848536751883" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0249563103871529 0.0354364739570275 0.00144027432233849" pos="0.08945630967981971 -0.293029354078904 0.2014402743223385" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.018969732792646632 0.015259999010529313 0.0025652615025324238" pos="0.058294958082955095 0.23823340298752022 0.20256526150253243" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.047853806439109546 0.011203438915723785 0.003849719200748367" pos="-0.2312425199118483 -0.2653793506468065 0.20384971920074837" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04056894514299447 0.04194503993181071 0.0036358252527584002" pos="-0.24324250088857013 0.27072499302224323 0.20363582525275842" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.006614277970456877 0.04390408110737703 0.0023667990939754526" pos="0.2875517942459806 -0.07271814857124162 0.20236679909397545" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04969995403640579 0.024594639878795784 0.00026542192234151036" pos="0.10316736388818026 0.250941649385274 0.2002654219223415" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02079560465802435 0.04912881607969338 0.002896874197867834" pos="0.28887395401778365 0.21374515323705573 0.20289687419786784" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.025686229084453577 0.028663886395451067 0.004328819656230913" pos="-0.1353803287305436 0.2048310996894796 0.20432881965623093" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.4445687071264999 0.6311744764999999 0.4475082862205" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="387.384977428" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.040284250652315"></joint>
            <site name="object0" pos="-0.06956870712649987 0.05382552350000014 -0.0275082862205" 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.000690165724405 0.000690165724405 0.000690165724405" file="mujoco_models/Body1.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/paisley_0123.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>
    