<?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.004635833759620207 0.012144764471367555 0.0032266214424729062" pos="-0.1588585268383219 0.16824016369722017 0.20322662144247292" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.008848899719437385 0.04313948850906947 0.002162362941931938" pos="0.23787393634124349 -0.18166601187222953 0.20216236294193196" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.026248595747729607 0.022207770048576547 0.004644655166769991" pos="-0.13614877820191842 -0.01331402278889432 0.20464465516677" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04665169724847117 0.02440321690675755 0.004177976615343763" pos="-0.14400727603313712 0.2767467283990605 0.2041779766153438" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01954604065561685 0.02952485535279683 0.004508910555632439" pos="0.15233069746202893 -0.06518959247900508 0.20450891055563244" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01828452110182339 0.021235926837708873 0.004609653430626182" pos="0.050350459627298116 -0.28081074223911107 0.2046096534306262" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04039064085653007 0.027380270661367622 0.0039307117336050065" pos="0.12681659108610877 -0.28271996228047686 0.20393071173360502" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01805653443054787 0.024356053142195203 0.004176488455537673" pos="0.03050627523011923 -0.29791422609420914 0.20417648845553768" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03757005249735192 0.0405148638774328 0.0015238562158619115" pos="0.008611113370774082 -0.2213765603088301 0.2015238562158619" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04041351770112737 0.023065434169948457 0.004370173280749229" pos="0.05937954567327147 0.17670123046630498 0.20437017328074925" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.81845058153 0.44874400345999993 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="4678.30208973" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.455055859253664"></joint>
            <site name="object0" pos="-0.44345058153000005 0.23625599654000012 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.002325608052795 0.002325608052795 0.002325608052795" file="mujoco_models/A_Ribbon.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/paisley_0033.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>
    