def initialiser(self, chercher, listPointInteret, fenetre=None, simulate=False): Robot.initialiser(self, chercher, listPointInteret, fenetre, simulate) if simulate != self.isSimulated: self.isSimulated = True return self.isSimulated for board in self.listBoard: if board.nom == "BrasRobotTheo": self.brasRobotTheo = board elif board.nom == "BallGatherAlex": self.ballGatherAlex = board
def initialiser(self, chercher, listPointInteret, fenetre=None, simulate=False): Robot.initialiser(self, chercher, listPointInteret, fenetre, simulate) for board in self.listBoard: if board.nom == "BrasRobotTheo": self.brasRobotTheo = board elif board.nom == "BallGatherAlex": self.ballGatherAlex = board if not self.brasRobotTheo or not self.brasRobotTheo.isConnected(): print "ERROR: BrasRobotTheo not detected" self.isSimulated = True if not self.ballGatherAlex or not self.ballGatherAlex.isConnected(): print "ERROR: BallGatherAlex not detected" self.isSimulated = True print "init cube detection" self.cubeDetector = CubeDetector()
def initialiser(self, chercher, listPointInteret, fenetre=None, simulate=False): Robot.initialiser(self, chercher, listPointInteret, fenetre, simulate) if simulate != self.isSimulated: self.isSimulated = True return self.isSimulated if not self.isSimulated: for board in self.listBoard: if board.nom == "BrasRobotTheo": self.brasRobotTheo = board #elif board.nom == "BallGatherAlex": # self.ballGatherAlex = board #if not self.brasRobotTheo or not self.brasRobotTheo.isConnected(): # print("ERROR: No brasRobotTheo found") # self.isSimulated = True elif webInterface.instance and self.brasRobotTheo: webInterface.instance.addCallableObject(self.brasRobotTheo)
def __init__(self, nom, largeur): Robot.__init__(self, nom, largeur) self.targetCubeOrder = [] self.currentCubeOrder = []
def __init__(self, nom, largeur): Robot.__init__(self, nom, largeur) self.brasRobotTheo = None self.targetCubeOrder = [] self.currentCubeOrder = []
def __init__(self, nom, largeur): Robot.__init__(self, nom, largeur)