<?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.046690277297062426 0.03446790331966577 0.003313938542614366" pos="-0.10905264960379235 -0.2586779602280626 0.20331393854261437" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0040317076658046985 0.0493699170757041 0.004715283467925127" pos="-0.10162747847772269 -0.06977191234088523 0.20471528346792514" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04625827997533876 0.017278179255999056 0.0027015665132749207" pos="-0.1292771091873938 -0.07158886072128595 0.20270156651327492" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02876448556720855 0.0027660755632857833 0.0009198675745567039" pos="0.24709852601088095 -0.25216858363930267 0.2009198675745567" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03305378873068606 0.015142306987869555 0.0006244176473453221" pos="-0.1819267495696732 -0.09307689780381492 0.20062441764734534" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.044535714346082465 0.024153799277121166 0.001391778443933888" pos="0.1596653319224403 -0.028162456204550157 0.2013917784439339" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0379715312479455 0.004341878480540186 0.003191594236937418" pos="-0.05884529037832725 0.08773383810931823 0.20319159423693742" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02620639347628658 0.029967390729927063 0.0037662629335588915" pos="0.08297872779906967 0.07646056525059997 0.2037662629335589" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007967881811109748 0.04805536128590338 0.0026094559054002995" pos="-0.11722955997222678 -0.08994443386799597 0.2026094559054003" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.67412994282885 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1883.78124247" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.0255437053790715"></joint>
            <site name="object0" pos="0.0 0.010870057171150083 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.004295832899585 0.004295832899585 0.004295832899585" file="mujoco_models/Hendecagonal_prism.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/perforated_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>
    