<?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.03116107230846478 0.03747205685809348 0.0009250043070302087" pos="-0.21592917998809708 -0.2548282544467145 0.20092500430703022" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.006952311409087232 0.020568850372529878 0.0044977676841639995" pos="0.16711558324414538 -0.13874135701919652 0.204497767684164" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.015880181680374354 0.03574005529686729 0.0028024464279222234" pos="-0.2800218579699774 0.2460568583341935 0.20280244642792222" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0300275551466624 0.012999109296823512 0.0037405692542653874" pos="0.2299017737307329 -0.04351748239667441 0.2037405692542654" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04550465982721021 0.044025101914822715 0.0023037116432792215" pos="-0.12560874223970817 0.24714498066791118 0.20230371164327923" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.040679855003516355 0.0016668578661794865 0.003373430939016289" pos="0.10109615583696108 0.12199948068790645 0.2033734309390163" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.00662228963568899 0.02934435403382441 0.0035089848755187427" pos="0.29315074049239803 0.2728041309504206 0.20350898487551874" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.027681928506024894 0.016112829963101684 0.0015454538064191888" pos="-0.2734721795973746 0.16063999499711257 0.2015454538064192" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0271156490094868 0.013904357848304103 0.00039336125364482" pos="-0.16112947781560077 0.017973306442795378 0.20039336125364482" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04077345968360452 0.025956613852466556 0.0038999783000811597" pos="0.2861416411103704 -0.17936570021298978 0.20389997830008116" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.379621449815 0.6940811235604499 0.4130000003405" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="531.384225409" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.368132168811366"></joint>
            <site name="object0" pos="-0.004621449814999901 -0.009081123560449877 0.006999999659499989" 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.000954056178025 0.000954056178025 0.000954056178025" file="mujoco_models/Love_Box_1.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/zigzagged_0088.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>
    