TSA-demo/TSA_mecha/finalflow-mqtt-dev-local.py [36:84]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
platform_sys=platform.system()

global intro 
intro = 0

def processKill():
    # Ask user for the name of process
    try:
        # iterating through each instance of the process
        PROCNAME = "ffplay"
        for proc in psutil.process_iter():
            # check whether the process name matches
            if proc.name() == PROCNAME:
                proc.kill()
        print("Process Successfully terminated")
    except:
        print("Error Encountered while running script or ffplay was not running")

def processCheck():
    # Ask user for the name of process
    try:
        # iterating through each instance of the process
        PROCNAME = "ffplay"
        for proc in psutil.process_iter():
           #print('proc.name: ',proc.name())
            # check whether the process name matches
            if proc.name() == PROCNAME:
                print("ffplay still running")
                return True
            else:
                #print('ffplay not found')
                pass
        return False
    except Exception as e:
        print("Error Encountered while running script for processCheck: ",e)


def getTFminiData():
    intro = 0
    firstloop = 0
    langcode ='en_US'
    stop_threads = False
    background_thread = threading.Thread(target=initialAvaIntroServo, name='initialAvaIntroServo', args =(lambda : stop_threads, ))
    stop_threadsName = True
    stop_threadsAvadoyouhavequestion = True
    background_thread = threading.Thread(target=initialAvaIntroServo, name='initialAvaIntroServo', args =(lambda : stop_threads, ))
    myNameisAvaServo_thread = threading.Thread(target=myNameisAvaServo, name='myNameisAvaServo', args =(lambda : stop_threadsName, ))
    Avadoyouhavequestion_thread = threading.Thread(target=Avadoyouhavequestion, name='Avadoyouhavequestion', args =(lambda : stop_threadsAvadoyouhavequestion, ))
    while True:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



TSA-demo/TSA_mecha/finalflow-mqtt-dev-rasp.py [33:81]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
platform_sys=platform.system()

global intro 
intro = 0

def processKill():
    # Ask user for the name of process
    try:
        # iterating through each instance of the process
        PROCNAME = "ffplay"
        for proc in psutil.process_iter():
            # check whether the process name matches
            if proc.name() == PROCNAME:
                proc.kill()
        print("Process Successfully terminated")
    except:
        print("Error Encountered while running script or ffplay was not running")

def processCheck():
    # Ask user for the name of process
    try:
        # iterating through each instance of the process
        PROCNAME = "ffplay"
        for proc in psutil.process_iter():
           #print('proc.name: ',proc.name())
            # check whether the process name matches
            if proc.name() == PROCNAME:
                print("ffplay still running")
                return True
            else:
                #print('ffplay not found')
                pass
        return False
    except Exception as e:
        print("Error Encountered while running script for processCheck: ",e)


def getTFminiData():
    intro = 0
    firstloop = 0
    langcode ='en_US'
    stop_threads = False
    background_thread = threading.Thread(target=initialAvaIntroServo, name='initialAvaIntroServo', args =(lambda : stop_threads, ))
    stop_threadsName = True
    stop_threadsAvadoyouhavequestion = True
    background_thread = threading.Thread(target=initialAvaIntroServo, name='initialAvaIntroServo', args =(lambda : stop_threads, ))
    myNameisAvaServo_thread = threading.Thread(target=myNameisAvaServo, name='myNameisAvaServo', args =(lambda : stop_threadsName, ))
    Avadoyouhavequestion_thread = threading.Thread(target=Avadoyouhavequestion, name='Avadoyouhavequestion', args =(lambda : stop_threadsAvadoyouhavequestion, ))
    while True:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



