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]
      rv.EDGES = {1: [2, 3], 2: [1, 4], 3: [1, 4], 4: [2, 3]}
      rv.OBJECTS=['o1']
  
      rv.ROBOTS=['r1']
  
      state.loc = {'r1': 1}
      state.charge = {'r1': 2}
      state.load = {'r1': NIL}
      state.pos = {'c1': 1, 'o1': UNK}
      state.containers = { 1:[],2:[],3:['o1'],4:[],}
      state.emergencyHandling = {'r1': False, 'r2': False}
      state.view = {}
      for l in rv.LOCATIONS:
          state.view[l] = False
  
  tasks = {
      2: [['fetch', 'r1', 'o1']],
      4: [['emergency', 'r1', 2, 1]],
  }
  eventsEnv = {
  }