<?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.0010544443111400322 0.024807226701273166 0.0030145370154324564" pos="0.29638879389753153 -0.22025097777016994 0.20301453701543246" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.005352184777146828 0.02188960346215875 0.0037796854891095836" pos="-0.09595780229499251 0.09741615161458428 0.2037796854891096" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04458248094344399 0.039864937564064166 0.0005978197067677257" pos="-0.0323548037141978 -0.27720440734567503 0.20059781970676774" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009263277897385565 0.03876484029937269 0.0009530563460012153" pos="0.03528842958587369 0.06898709171804585 0.20095305634600122" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.00867518051274993 0.04582628596503572 0.0003866590524422397" pos="0.25154075487643995 -0.23172036770357857 0.20038665905244224" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.045142629183763334 0.019026655420569277 0.003970219870034376" pos="-0.06345741885119718 0.13989388983054218 0.20397021987003439" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04276714701420282 0.0267465050502345 0.002070483878545968" pos="-0.06322041591760133 -0.2660449422800445 0.20207048387854598" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0017259701367822984 0.03743493657891844 0.002135457468671529" pos="-0.20934433894071725 0.22292219825302168 0.20213545746867154" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03225081455258518 0.024250717969457408 0.0018492264669441579" pos="-0.09315220417382791 -0.07714783153697688 0.20184922646694417" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3873402767599998 0.67993338804505 0.39760520896849993" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="624.270664467" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.5201992012875865"></joint>
            <site name="object0" pos="-0.012340276759999824 0.005066611954950062 0.02239479103150005" 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.000199588567798 0.000199588567798 0.000199588567798" file="mujoco_models/1960_corvette.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/pitted_0114.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>
    