text: __author__ = 'patras'
  from domains.fetch.domain_fetch import *
  from shared.timer import DURATION
  
  DURATION.TIME = {
      'put': 2,
      'take': 2,
      'perceive': 2,
      'charge': 2,
      'move': 2,
      'moveToEmergency': 2,
      'moveCharger': 2,
      'addressEmergency': 2,
      'wait': 2,
  }
  
  DURATION.COUNTER = {
      'put': 2,
      'take': 2,
      'perceive': 2,
      'charge': 2,
      'move': 2,
      'moveToEmergency': 2,
      'moveCharger': 2,
      'addressEmergency': 2,
      'wait': 2,
  }
  
  def SetInitialStateVariables(state, rv):
      rv.LOCATIONS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
      rv.EDGES = {1: [2], 2: [1, 3], 3: [2, 4], 4: [5, 3, 6, 7], 5: [4, 9], 6: [4, 10], 7: [4, 8], 8: [7], 9: [5], 10: [6]}
      rv.OBJECTS=['o1']
  
      rv.ROBOTS=['r1','r2']
  
      state.loc = {'r1': 1, 'r2': 1}
      state.charge = {'r1': 2, 'r2': 3}
      state.load = {'r1': NIL, 'r2': NIL}
      state.pos = {'c1': 'r2', 'o1': 8}
      state.containers = { 1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:['o1'],9:[],10:[],}
      state.emergencyHandling = {'r1': False, 'r2': False}
      state.view = {}
      for l in rv.LOCATIONS:
          state.view[l] = False
  
  tasks = {
      7: [['fetch', 'r1', 'o1']],
  }
  eventsEnv = {
  }