Exemplo n.º 1
0
    def set_up(self):
        """
            Function to set robots position up and initialize the communication with 
            vision server  
        """


        super(GKStrategy, self).set_up()
        self.sock.sendto('', self.VISION_SERVER)


        #Array for Initial Position for each team, index 0 has red robot positions
        InitialPositions = [
            [
                RobotPosition(0, 0, 180),
                RobotPosition(50, 10, 180)
            ],
            [
                RobotPosition(0, 0, 0),
                RobotPosition(-50, -10, 0)
            ]
        ]
        #setting robot positions up
        self.goalkeeper_controller = Controller()
Exemplo n.º 2
0
 def set_up(self):
     super(VisionTestStrategy, self).set_up()
     self.controller = Controller()
 def set_up(self):
     super(GoWithAngleStrategy, self).set_up()
     self.controller = Controller()
     self.file = open("data.txt", "w")
Exemplo n.º 4
0
 def set_up(self):
     super(BalonAlArcoStrategy, self).set_up()
     self.controller = Controller()
     self.traj = TrajectorySCurve(r=10)
Exemplo n.º 5
0
 def set_up(self):
     super(SeguirBalonStrategy, self).set_up()
     self.controller = Controller()
Exemplo n.º 6
0
 def set_up(self):
     super(EstimateSpeedStrategy, self).set_up()
     self.controller = Controller()
     self.one_points = []
     self.two_points = []
     self.three_points = []