예제 #1
0
 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")
예제 #2
0
 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
예제 #3
0
 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
예제 #4
0
파일: SubBrain.py 프로젝트: ni7hhogg/SubSim
    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)