2022-11-03 09:23:30 +01:00
|
|
|
#include <iostream>
|
2022-11-10 14:41:27 +01:00
|
|
|
#include <future>
|
|
|
|
#include <thread>
|
|
|
|
|
2022-11-03 09:23:30 +01:00
|
|
|
#include <opencv2/opencv.hpp>
|
2022-11-10 14:41:27 +01:00
|
|
|
|
2022-11-03 09:23:30 +01:00
|
|
|
#include <input.h>
|
|
|
|
#include <processing.h>
|
|
|
|
#include <control_module.h>
|
|
|
|
#include <interpreter.h>
|
|
|
|
#include <intersection_handler.h>
|
2022-11-10 14:41:27 +01:00
|
|
|
|
2022-11-03 09:23:30 +01:00
|
|
|
|
|
|
|
using namespace cv;
|
|
|
|
|
|
|
|
class LFR
|
|
|
|
{
|
|
|
|
Input input;
|
|
|
|
Processing processing;
|
|
|
|
ControlModule controlModule;
|
|
|
|
Interpreter interpreter;
|
|
|
|
IntersectionHandler intersectionHandler;
|
2022-11-03 11:18:18 +01:00
|
|
|
volatile bool iAmLooping;
|
2022-11-03 09:23:30 +01:00
|
|
|
void loop();
|
2022-11-10 14:41:27 +01:00
|
|
|
thread loopThread;
|
2022-11-03 09:23:30 +01:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
LFR();
|
|
|
|
~LFR();
|
|
|
|
|
2022-11-10 14:41:27 +01:00
|
|
|
void startLoop();
|
2022-11-03 09:23:30 +01:00
|
|
|
void endLoop();
|
2022-11-10 14:41:27 +01:00
|
|
|
|
2022-11-03 09:23:30 +01:00
|
|
|
};
|