Exemplo n.º 1
0
 def __init__(self):
     self.buffer = publication.Publication()
     self.available = 0
     self.lock = 1
     self.IR = [0, 1, 1]
     self.LASER = [0, 0]
     self.start_worker(self.worker_reader)
     self.start_publisher(self.buffer, )
Exemplo n.º 2
0
 def __init__(self):
     self.subscriptors = {}
     self.buffer = publication.Publication()
     self.writer = []
     self.clients = {}
     self.devices = None
     self.data = None
     self.server = bt_RFCOMM.BTServer(self.Port)
     self.start_thread(self.server.clients_accept)
     self.start_worker(self.worker_reader)
     self.start_worker((self.Discover, ))
    def __init__(self):
        self.detections = None
        self.init_time = None
        self.detecteds = []
        self.aprils = []
        self.newDetection = False
        self.goal = False

        self.ruedas = self.deps["ruedas"] if "ruedas" in self.deps else None
        self.start_worker(self.get_frame)
        self.start_worker(self.change_position_with_ir)

        self.subscriptors = {}
        self.april_detected = publication.Publication()
        self.start_publisher(self.april_detected, frec=0.5)
Exemplo n.º 4
0
 def __init__(self):
     # self.subscriptors = {}
     self.buffer = publication.Publication()
     self.writer = []
     self.json = ""
     try:
         self.serial = serial.Serial(
             self.comPort, self.comPortBaud, timeout=3.0)
         if self.serial.isOpen():
             # print(self.serial.name + ' is open..')
             pass
     except Exception:
         print("error usbserial")
         raise
     self.start_worker(self.worker_reader,)
     self.start_publisher(self.buffer,)