<?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.019010860276569314 0.0436360698510727 0.00014140170815380104" pos="-0.06022936645430499 -0.038244974104248874 0.2001414017081538" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03934914086436725 0.04055027636668589 0.0016610122232894285" pos="0.07906878800768985 -0.1894213767172871 0.20166101222328944" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010756050257531027 0.011958277327716042 0.004631879529624627" pos="0.2696415465860384 -0.0942308079198026 0.20463187952962464" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.018700631111899246 0.00639767450010735 0.0010957377347825222" pos="0.01688671743044734 -0.2728483859501782 0.20109573773478254" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0020493465304097635 0.04032721270309925 0.0033270682467565157" pos="-0.24060063093884798 -0.2637927601443344 0.20332706824675653" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.035983591309941755 0.03659513336753033 0.0034673423116426123" pos="-0.10022468638261398 0.17196154941933128 0.20346734231164262" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.026057404922545834 0.04635605067448022 0.000366564898859105" pos="-0.05454904727507642 0.12931053961353095 0.20036656489885912" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04014770970149821 0.008005179512480125 0.0015102124743270253" pos="-0.0871552121276438 0.06246076259005773 0.20151021247432704" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007866313379440458 0.024980735041659635 0.0004918184404830812" pos="0.012412880001653137 0.1669235454116178 0.20049181844048308" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04686424312801724 0.045467922821434 0.0005535647938555388" pos="-0.27114288573843925 0.04663649783044915 0.20055356479385555" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3499017964039999 0.6499017964039999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1322.8949772" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.6003605500339064"></joint>
            <site name="object0" pos="0.025098203596000124 0.03509820359600013 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.00395247276979 0.00395247276979 0.00395247276979" file="mujoco_models/Cube_Stand.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/porous_0055.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>
    