<?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.026313514902963367 0.011343709122731568 0.0012904109931600677" pos="-0.0017687959453007718 -0.05670778666601545 0.20129041099316008" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.040242345345553765 0.00836749443551215 0.00021232552380795886" pos="0.05122691199079421 0.02285385096588799 0.20021232552380797" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.018201851066763176 0.030182310676275022 0.0005060780419535121" pos="-0.2589562924573319 0.12402954679736355 0.20050607804195353" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.030054169631011995 0.006700325475994541 0.004570470732280922" pos="-0.2868495451993284 0.239631716223961 0.20457047073228093" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03690699897713866 0.020897727683921872 0.0016739585563049029" pos="-0.02008988783665666 0.23907813448216914 0.2016739585563049" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02023356685459719 0.01732448243204407 0.0028320680330117883" pos="0.2650407972814803 0.019850284294999243 0.2028320680330118" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.030829650115429413 0.019985120700633647 0.0011968526237892225" pos="-0.1069413820336785 -0.009267543579628668 0.20119685262378922" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02343883046726219 0.023786908490251737 0.0012441983792799718" pos="-0.18608750230900517 -0.18233866229555373 0.20124419837927998" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021740761279523894 0.0010914414940086416 0.004030262359255457" pos="-0.27220137541115497 -0.22021467326926097 0.20403026235925548" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.021219973906935002 0.01316108790480287 0.003717127627149818" pos="-0.16368043630291196 0.024137865917413348 0.20371712762714983" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04696599819202718 0.04026397577413698 0.0013550085466984066" pos="0.13581679269534297 -0.2433651384415173 0.2013550085466984" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.375589474501 0.696811145696465 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="2865.67051416" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="0.25985163092034824"></joint>
            <site name="object0" pos="-0.000589474500999998 -0.011811145696464909 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.001178949002475 0.001178949002475 0.001178949002475" file="mujoco_models/apple_watch_stand_1.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/veined_0159.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>
    