def __init__(self, engine): Brain.__init__(self, 'SubsumptionBrain', engine) self.behaviors = [] self.robot = engine.robot self.robot.light[0].units = "SCALED" self.inputFile = open("inputs.dat", "w") self.targetFile = open("targets.dat", "w")
def __init__(self, controllers = {}, engine = 0, **args): Brain.__init__(self, 'BehaviorBasedBrain', engine, **args) self.states = {} self.controls = controllers self.history = [{}, {}, {}] self.pie = [] self.desires = [] self.effectsTotal = {} self.initialized = 0 self.activeState = None
def __init__(self, controllers={}, engine=0, **args): Brain.__init__(self, 'BehaviorBasedBrain', engine, **args) self.states = {} self.controls = controllers self.history = [{}, {}, {}] self.pie = [] self.desires = [] self.effectsTotal = {} self.initialized = 0 self.activeState = None
def __init__(self, name="brain", engine=0, **kwargs): Brain.__init__(self, name, engine, **kwargs) self.robot.lastMove = (0.0, 0.0) self.robot.brain = self self.wanderBehaviour = Wander(self.robot)