<?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.0033985907611686498 0.02870360037255999 0.004282844285290665" pos="0.014583969096621574 0.006969283400918513 0.20428284428529067" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.042173588868911135 0.02777059576591022 0.00015409893645494373" pos="0.22744243608103648 0.1301788694134765 0.20015409893645494" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.046584425904914746 0.01857620259024859 0.004600691160529359" pos="0.21790539604169196 0.19136134916605746 0.20460069116052937" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.028006013674515624 0.009606248438575469 0.00011871161402101968" pos="0.2964728514623874 -0.22986490961431028 0.20011871161402103" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0053141455181781256 0.02091411452712506 0.0013148379782039646" pos="0.09144360193415119 0.0623590461346204 0.201314837978204" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03132810354513045 0.028291768379023266 0.000661340828106415" pos="0.2189673965756484 -0.0982289945114235 0.20066134082810644" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.020311994450398312 0.007248684941333371 0.0016466294254798787" pos="0.15014213780333702 0.10077060710917252 0.2016466294254799" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.003891930324216364 0.04092987881359032 0.0013081338176578364" pos="0.059012264986122775 -0.2477761147952503 0.20130813381765786" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.036138444668285884 0.014344272529056557 0.003256967670114365" pos="-0.0895951306199694 0.25237105406041144 0.20325696767011436" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.003236204936838738 0.03796964367725545 0.00022787602184611022" pos="0.14469283338933148 0.22068799702524083 0.20022787602184614" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03540404976821909 0.012667156820142567 0.0004092333327477101" pos="0.25852324528618104 0.18632106523870512 0.2004092333327477" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.019915885381436092 0.02842919772199939 0.0041651785378428955" pos="-0.062465631298775526 0.19563086203587982 0.2041651785378429" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04663516501771259 0.022593976889163914 0.004823404980372147" pos="-0.18437272292147577 -0.25337838116156136 0.20482340498037216" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.5210349552715 0.551530209998 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="2352.49913915" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.120466504842927"></joint>
            <site name="object0" pos="-0.1460349552714999 0.1334697900020001 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.004257578965595 0.004257578965595 0.004257578965595" file="mujoco_models/Cherry_MX_Cap.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/crosshatched_0168.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>
    