<?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.025449035307196166 0.017083583872642787 0.003650911423114079" pos="-0.23509365156780476 -0.11660283485670467 0.2036509114231141" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01563619441400286 0.03761717810035909 0.004410895403293495" pos="-0.004371147700557854 0.037006291631337784 0.20441089540329352" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.040047980894689035 0.04368926787954729 0.0038422770098378023" pos="-0.14460201156107902 -0.2562189526767076 0.2038422770098378" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.011335047976912635 0.03135875174991466 0.002789546135010461" pos="0.004694852969591601 -0.25609092254946186 0.20278954613501046" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021132606282749537 0.0022832723129942154 0.0033016119722904095" pos="-0.15247781381288572 0.12422982614509875 0.2033016119722904" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0270801423425355 0.003654525565645899 0.0007821475311400145" pos="0.24706650312762085 0.22547093362125942 0.20078214753114002" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04097195304875564 0.02898648239839783 0.0018649275366416948" pos="0.27525836739491466 0.2456644802106624 0.2018649275366417" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0018343385827991558 0.0069322397617437225 0.0027609412826153255" pos="0.11431516877792836 -0.021096862315972187 0.20276094128261535" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.446810135266" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="2403.50512214" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="0.6471732273320286"></joint>
            <site name="object0" pos="0.0 0.01000000000000012 -0.026810135266000013" 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.003381013526605 0.003381013526605 0.003381013526605" file="mujoco_models/dodecagonal_prism.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/flecked_0110.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>
    