def run_dispatcher():
    process_map = {'gui': GUIProcess, 'image_capture': ImageCapture, 'processor': YoloImageProcessor}
    config = EnvYAML(os.path.join(os.path.dirname(__file__), 'config', 'processes_config.yaml'))
    processes = {p: {'process_class': process_map[p]} for p in config['processes']}
    robot_dispatcher = RobotDispatcher(config, processes, in_cluster=False)
    robot_dispatcher.start_processes()
    robot_dispatcher.run(robot_dispatcher.shared_objects['exit_flag'])
    robot_dispatcher.stop_logging()
def run_dispatcher():
    process_map = {'gui': GUIProcess, 'image_capture': ImageCapture, 'processor': YoloImageProcessor}
    config = EnvYAML(os.path.join(os.path.dirname(__file__), 'config', 'processes_config.yaml'))
    processes = {p: {'process_class': process_map[p]} for p in config['processes']}
    robot_dispatcher = RobotDispatcher(config, processes, in_cluster=False)
    robot_dispatcher.start_processes()
    robot_dispatcher.run(robot_dispatcher.shared_objects['exit_flag'])
    robot_dispatcher.stop_logging()