<?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.02845738904996835 0.04517477281705623 0.0006567869974078688" pos="0.017454371034182015 -0.11089854306620683 0.20065678699740788" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01975841022727929 0.010238086542525785 0.0027847979230575396" pos="0.20302789370828817 -0.24252117600499998 0.20278479792305756" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007560695851288794 0.04255032448336675 0.0025004174696200265" pos="-0.0039200777610096105 0.27884243032261696 0.20250041746962003" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.016300807334404387 0.012639102122816517 0.00322847771460364" pos="0.17722303432842107 -0.13979918128504695 0.20322847771460364" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03610577372752107 0.049241955702619654 0.0007370642769716686" pos="-0.24236292372994983 -0.13015334009038917 0.2007370642769717" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04882702589551083 0.0027817805747664516 0.003311471580498421" pos="0.1145147062086303 -0.2601271025518641 0.20331147158049842" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.036776880832263485 0.016579855131507372 0.004815271493456138" pos="0.22060226597269 0.26724855598240954 0.20481527149345616" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.043804942162309 0.024150688427585252 0.0017363681438553936" pos="0.03661175633425412 0.22288656578565919 0.2017363681438554" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.037247098948216074 0.004784810819479334 0.001823786520429929" pos="-0.179088310666629 -0.12247869090161606 0.20182378652042993" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03874781801534646 0.03132457131244275 0.0018752640534304118" pos="0.07096561081105096 0.2211400822400615 0.20187526405343043" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3754840491159999 0.6929103010741 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="4169.43165142" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.6391884951616595"></joint>
            <site name="object0" pos="-0.0004840491159998628 -0.007910301074099957 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.00096809823194 0.00096809823194 0.00096809823194" file="mujoco_models/apple_watch_stand_1.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/polka-dotted_0102.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>
    