<?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.025384458760585163 0.04695099127717397 0.0008948575279075456" pos="-0.03683312428603375 0.1663143849422803 0.20089485752790756" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009371263991675042 0.03348872953493834 0.004579098701491124" pos="0.03939266494065197 -0.2540268831055685 0.20457909870149113" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.022764838775111144 0.02542090256471662 0.0029841451072289246" pos="-0.29497392583057686 -0.23415665086809845 0.20298414510722892" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.005324116508450901 0.0010645904517063826 0.0023220870354687647" pos="0.16606528172426144 -0.25248360295641087 0.20232208703546878" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0386713489496407 0.010882306799588841 0.0013892999830916175" pos="0.11468840446642858 0.22143186210269866 0.20138929998309163" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.003093359419631719 0.011072283822255405 0.0007221706769761315" pos="0.12531449872069927 -0.05036815894539448 0.20072217067697615" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.035267171876169526 0.03941982355992143 0.0017513199950960337" pos="-0.001181691578495736 0.023626958679221488 0.20175131999509605" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.045867424162819886 0.009915654650963151 0.0024982311646149936" pos="0.22777832537257497 -0.11557585301130555 0.20249823116461502" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.027997740668293667 0.03463774204786806 0.001002075024590693" pos="-0.2503276989251791 -0.07941960655161431 0.2010020750245907" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.030898624830729384 0.04807178779829107 0.00371779553004494" pos="-0.15953999990714796 -0.2818851928925835 0.20371779553004496" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04413652435462893 0.026629517265867115 0.0033486299628389306" pos="-0.1582936722645765 -0.1666541876879014 0.20334862996283895" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04171816884168098 0.005923424719668447 0.0006890633399370793" pos="0.007527349697072194 -0.0747004129612954 0.20068906333993708" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.2059592466904998 0.5059592595875 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="294.84669937" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.438532699679105"></joint>
            <site name="object0" pos="0.1690407533095002 0.17904074041250007 0.007000000000000062" 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.001690407533095 0.001690407533095 0.001690407533095" file="mujoco_models/nidoran_01.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/swirly_0166.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>
    