<?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.04556955119659648 0.03828615247154835 0.00043195648069694053" pos="0.17034328637102047 0.2817494233873508 0.20043195648069695" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.047179345408786176 0.03703870610324694 0.0007056093920579565" pos="0.045646059504272474 -0.12946036269570674 0.20070560939205798" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04854043423817612 0.03615680054271886 0.003092751389958354" pos="0.11705282556283575 -0.037212522534191717 0.20309275138995836" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.019264100820442727 0.046854179392558246 0.0017264429604841645" pos="-0.2751383209603684 -0.05949590750732556 0.20172644296048417" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03972667727846194 0.03277494954439705 0.004814636799841586" pos="-0.2362788794285174 0.24692778133763 0.2048146367998416" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.019073610501789046 0.024226126685673706 0.0021995625569972486" pos="-0.23012863134453515 -0.15132212656488678 0.20219956255699725" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03737130689225981 0.0021273695504390646 0.0007560500944927452" pos="-0.2848738987251899 0.21443283439412947 0.20075605009449277" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.031248916561307207 0.009326504443809384 0.003866983892963392" pos="0.2800803584709322 0.2607362247180109 0.2038669838929634" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0461558298427961 0.001382700554881418 0.002986166096027864" pos="-0.14602043001658244 0.038788328585915244 0.20298616609602788" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="1047.93699585" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.107317237431503"></joint>
            <site name="object0" pos="0.0 0.01000000000000012 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.001638400342655 0.001638400342655 0.001638400342655" file="mujoco_models/Queen.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/pitted_0141.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>
    