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()
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()
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()
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()