<?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.005940994118563939 0.03404992453375302 0.004227931340004686" pos="0.14654129818130757 -0.11514685516031944 0.2042279313400047" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009036358791375248 0.028079295450086486 0.004853430377758973" pos="0.10302863760788034 0.1030398806348169 0.204853430377759" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03821567895060188 0.003931612721478187 0.004604719313773173" pos="0.07942484488957091 -0.2020852456452856 0.2046047193137732" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.015815913017106057 0.006289811114297514 0.004896924990113919" pos="-0.14259213184318845 -0.0872184666458079 0.20489692499011394" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02017202892203428 0.022741840598683363 0.0014759161137235391" pos="0.26207512041808795 0.2534106261027064 0.20147591611372356" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.031189318844651405 0.029652431414240912 0.00017777840935725156" pos="0.13873919540701696 0.27381552044806173 0.20017777840935727" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02964399476768551 0.026878525740611035 0.003895600967388172" pos="0.17837595020014524 -0.016021871487456985 0.20389560096738818" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03510621943807285 0.027956243933495373 0.0032959175476123827" pos="0.28457666004409704 -0.1302391455287885 0.2032959175476124" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.004360127056806065 0.03236672640845963 0.0033233559987538687" pos="0.10812386359183529 0.011575671755584716 0.20332335599875387" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0360782658452491 0.03543079835931913 0.004940218938947195" pos="-0.08237182073282914 -0.24072444055719228 0.2049402189389472" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04767162055628538 0.04905368396535679 0.00016022236088883394" pos="-0.1266983258451608 -0.2610938664758355 0.20016022236088885" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.016849592556230707 0.025699018637326033 0.004343772487097514" pos="-0.08405102461036662 0.17635001174525128 0.20434377248709754" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375 0.6749999999999999 0.4130013838544999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="505.558693384" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.6095421180290534"></joint>
            <site name="object0" pos="0.0 0.01000000000000012 0.0069986161455000695" 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.001383854390955 0.001383854390955 0.001383854390955" file="mujoco_models/stunning_jarv-turing.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/meshed_0104.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>
    