Пример #1
0
def processBehaviorFrame():
  global behaviorLoaded
  if not behaviorLoaded: 
    runBehavior("final")
    behaviorLoaded = True
  try:
    if memory.robot_state.WO_SELF != core.WO_TEAM_COACH:
      mem_objects.update()
    if core.TOOL:
      initMemory()
    core.pythonC.updatePercepts()
    behavior.processFrame()
  except: 
    handle()
Пример #2
0
def processBehaviorFrame():
    global behaviorLoaded
    if not behaviorLoaded:
        runBehavior("tournament")
        behaviorLoaded = True
    try:
        if memory.robot_state.WO_SELF != core.WO_TEAM_COACH:
            mem_objects.update()
        if core.TOOL:
            initMemory()
        core.pythonC.updatePercepts()
        behavior.processFrame()
    except:
        handle()