Exemplo n.º 1
0
def processFrame():
    """Perform computations for each frame of python behavior."""
    try:
        global firstFrame
        if firstFrame:
            memory.world_objects.init(memory.robot_state.team_)
            core.visionC.initSpecificModule()
            initNonMemory(initLoc=False)
            memory.speech.say("Vision")
            firstFrame = False

        core.visionC.processFrame()
        core.localizationC.processFrame()
        core.opponentsC.processFrame()
        processBehaviorFrame()
        lights.processFrame()
        core.instance.publishData()
    except:
        handle()
Exemplo n.º 2
0
def processFrame():
  try:
    global firstFrame
    core.instance.preVision()
    if firstFrame:
      memory.world_objects.init(memory.robot_state.team_)
      core.visionC.initSpecificModule()
      initNonMemory(initLoc=False)
      memory.speech.say("Vision")
      firstFrame = False
    
    core.visionC.processFrame()
    core.instance.postVision()
    core.localizationC.processFrame()
    core.opponentsC.processFrame()
    processBehaviorFrame()
    lights.processFrame()
    core.instance.publishData()
  except:
    handle()
Exemplo n.º 3
0
def processFrame():
    try:
        global firstFrame
        core.instance.preVision()
        if firstFrame:
            memory.world_objects.init(memory.robot_state.team_)
            core.visionC.initSpecificModule()
            initNonMemory(initLoc=False)
            # memory.speech.say("Vision")
            firstFrame = False

        core.visionC.processFrame()
        core.instance.postVision()
        core.localizationC.processFrame()
        core.opponentsC.processFrame()
        processBehaviorFrame()
        lights.processFrame()
        core.instance.publishData()
    except:
        handle()
Exemplo n.º 4
0
def processFrame():
  try:
    global firstFrame
    core.instance.preVision()
    if firstFrame:
      commands.setKickParameters(cfgkick.StraightKick, cfgkick.StraightSuperKick)
      core.world_objects.init(core.robot_state.team_)
      core.visionC.initSpecificModule()
      core.speech.say("Vision")
      firstFrame = False

    #TODO: test for getting up
    core.visionC.processFrame()
    core.instance.postVision()
    percepts.update()
    core.localizationC.processFrame()
    core.opponentsC.processFrame()
    behavior.processFrame()
    lights.processFrame()
    core.instance.publishData()
  except:
    handle()
Exemplo n.º 5
0
def processFrame():
    try:
        global firstFrame
        core.instance.preVision()
        if firstFrame:
            commands.setKickParameters(cfgkick.StraightKick,
                                       cfgkick.StraightSuperKick)
            core.world_objects.init(core.robot_state.team_)
            core.visionC.initSpecificModule()
            core.speech.say("Vision")
            firstFrame = False

        #TODO: test for getting up
        core.visionC.processFrame()
        core.instance.postVision()
        percepts.update()
        core.localizationC.processFrame()
        core.opponentsC.processFrame()
        behavior.processFrame()
        lights.processFrame()
        core.instance.publishData()
    except:
        handle()