| Visioscan Set SDK Libraries 1.3.5 Visioscan Set SDK Help documentation file for C++ and C++/CLI |

Loading...
Searching...
No Matches
Runner.h
1#pragma once
2#include <string>
3#include <thread>
4#include <iostream>
5#include <fstream>
6#include "../StarfleetToolbox/BaseCommunication.h"
7#include "../StarfleetToolbox/EthernetCommunication.h"
8#include "../StarfleetToolbox/EthernetSettings.h"
9#include "../RawDataSensor/RawDataSensor.h"
10#include "../StarfleetToolbox/UsbSettings.h"
11#include "../StarfleetToolbox/UsbCommunication.h"
12#include "../StarfleetToolbox/CommunicationException.h"
13#include "../StarfleetToolbox/FileDataRecorder.h"
14#include "../StarfleetToolbox/DevicePinger.h"
15#include "../NavigationSensor/NavigationSensor.h"
16#include "../AgvSensor/AgvSensor.h"
17
18#pragma comment(lib, "Ws2_32.lib")
19
20
21
22 using namespace std;
23
24 class Runner
25{
26 public:
27 void run();
28 //RawDataSensor* mySensor;
29 BaseSensor* mySensor;
30 void CommunicationCallback(CommunicationStatus* status);
31 private:
32 vector<DataAvailability> channelStateChanged;
33 void EventThtread(string param, int sensorType);
34 void StatusLedThread(string param);
35 void StatusLearningThread(string param);
36 void DisplayNotSupported();
37 void DisplayCommands();
38
39 bool exitThread;
40 thread rawDataThreadHandle;
41 thread agvLearningStatusThreadHandle;
42 thread rawStatusLedGetterHandle;
43 thread rawHeartBeatHandle;
44 int _sensorType = 0;
45
46 ConnectionState _oldStatus = ConnectionState::Unknow;
47 static bool directoryExists(const std::string& dirName);
48 // Fonction pour créer un répertoire récursivement
49 static bool createDirectoryRecursively(const std::string& dirPath);
50};
51
CommunicationStatus
Definition CommunicationStructures.h:24
Runner
Definition Runner.h:25
Runner::run
void run()
Definition Runner.cpp:9
Runner::mySensor
BaseSensor * mySensor
Definition Runner.h:29
Runner::CommunicationCallback
void CommunicationCallback(CommunicationStatus *status)
Definition Runner.cpp:2362