示例#1
0
 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
示例#2
0
 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()
示例#3
0
 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)
示例#4
0
 def __init__(self, nom, largeur):
     Robot.__init__(self, nom, largeur)
     self.targetCubeOrder = []
     self.currentCubeOrder = []
示例#5
0
 def __init__(self, nom, largeur):
     Robot.__init__(self, nom, largeur)
     self.brasRobotTheo = None
     self.targetCubeOrder = []
     self.currentCubeOrder = []
示例#6
0
 def __init__(self, nom, largeur):
     Robot.__init__(self, nom, largeur)