<?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.01343762710956502 0.04319107111778994 0.0006939972696804172" pos="-0.030677996144685415 0.08435473307383146 0.20069399726968043" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04739890971832353 0.0415777882755669 0.000840851882270749" pos="0.27791826123977165 0.021839145643153812 0.20084085188227077" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03602277770162176 0.020770497560922762 0.002358385688376474" pos="-0.29370915712260576 -0.20808228897955555 0.2023583856883765" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.00260776844291269 0.012210969481793017 0.002546307268731203" pos="-0.12276637887650887 0.08862888794568768 0.2025463072687312" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.046823719976344026 0.03613251957007548 0.0009929493860878348" pos="-0.13848866426254902 -0.21299081763168787 0.20099294938608783" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.011999638491997734 0.03761451884953799 0.004463990680866461" pos="0.14404743700276007 0.0969162790850076 0.20446399068086646" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.048395394494211125 0.02234681998043385 0.0047539637110223885" pos="0.2571378470571272 -0.09372603594766515 0.2047539637110224" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.011105997324690274 0.0060841695548984245 0.004942635667312249" pos="0.018628311148687404 -0.1573640463140458 0.20494263566731227" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0298806684106068 0.022843424934601585 0.0038953844547874785" pos="-0.21240076518537837 0.23967708745713218 0.2038953844547875" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03971765806677354 0.037359204013842906 0.004601289724399385" pos="-0.10849881617728177 0.1340757892949302 0.2046012897243994" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0038478816255907234 0.018547313022891494 0.00274412377371402" pos="0.25907567238998946 0.16902939983213344 0.20274412377371404" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.006376931373964103 0.03862412382927367 0.0007202117116887664" pos="0.19102818906131191 0.18747467425266207 0.20072021171168877" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.045841439465572814 0.04989521942509075 0.00039268589384217485" pos="-0.2860314030564281 0.10610356987975011 0.20039268589384218" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007191363660276162 0.03822762653444409 0.0012336692652550817" pos="-0.28455377434203416 -0.26934328343735076 0.2012336692652551" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3330138151195 0.6420919091474999 0.41300000000049997" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="707.483761267" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.4224638545924404"></joint>
            <site name="object0" pos="0.0419861848805001 0.042908090852500136 0.006999999999500017" 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.002269523507065 0.002269523507065 0.002269523507065" file="mujoco_models/Epic_Crift.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/striped_0117.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>
    