<?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.04103894640609161 0.04311516493640311 0.002029976163839775" pos="-0.0935158619685767 0.1808284101836814 0.20202997616383978" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0035883879686925348 0.03266008900021841 0.003071050365977158" pos="-0.2850856791830899 0.28667727417357675 0.20307105036597717" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04435222790123197 0.023493717423200507 0.00038179863027442464" pos="0.17125159901716197 0.0026797015052635875 0.20038179863027444" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.020355892113829425 0.0013081496958491999 0.0026889148323913058" pos="-0.18481563380724295 0.04863774560499512 0.20268891483239132" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.022940064295387495 0.04491859924877229 0.0008259369949716124" pos="-0.13425449445034524 0.1091986862138139 0.20082593699497162" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04221446585876615 0.029061541623046278 0.0015679719343582572" pos="-0.27450279795437954 0.13471692073691705 0.20156797193435827" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.029887898902409192 0.0390117279981216 0.0005643131998693978" pos="0.08043536476476365 -0.22283154825272405 0.20056431319986942" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02023069009256119 0.048552157000769855 0.0025056441836449617" pos="0.044289299415432415 -0.03447145555783948 0.20250564418364497" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0019407780128307959 0.03982985060906965 0.003737093041540071" pos="0.26409318571658663 -0.24015785490814318 0.20373709304154008" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.013080859363909875 0.030643165197217364 0.001061346958930258" pos="0.016544167518620367 -0.2961923820589735 0.20106134695893027" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3644492176354999 0.67349514747485 0.41300086213299997" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="15480.3985303" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.9960157776281744"></joint>
            <site name="object0" pos="0.010550782364500133 0.0115048525251501 0.006999137867000016" 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.000862132833355 0.000862132833355 0.000862132833355" file="mujoco_models/quilava_with_frills.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/braided_0173.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>
    