35 lines
557 B
C++
35 lines
557 B
C++
#include <iostream>
|
|
#include <future>
|
|
#include <thread>
|
|
|
|
#include <opencv2/opencv.hpp>
|
|
|
|
#include <input.h>
|
|
#include <processing.h>
|
|
#include <control_module.h>
|
|
#include <interpreter.h>
|
|
#include <intersection_handler.h>
|
|
|
|
|
|
using namespace cv;
|
|
|
|
class LFR
|
|
{
|
|
Input input;
|
|
Processing processing;
|
|
ControlModule controlModule;
|
|
Interpreter interpreter;
|
|
IntersectionHandler intersectionHandler;
|
|
volatile bool iAmLooping;
|
|
void loop();
|
|
thread loopThread;
|
|
|
|
public:
|
|
|
|
LFR();
|
|
~LFR();
|
|
|
|
void startLoop();
|
|
void endLoop();
|
|
|
|
}; |