-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeviationPosition.h
More file actions
58 lines (43 loc) · 973 Bytes
/
deviationPosition.h
File metadata and controls
58 lines (43 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// Created by peng on 18-4-6.
//
#ifndef RSRTRACKING_DEVIATIONPOSITION_H
#define RSRTRACKING_DEVIATIONPOSITION_H
#include <opencv2/opencv.hpp>
#include <mutex>
#include "ThreadInfo.h"
class DeviationPosition :public ThreadInfo{
private:
//1 pass,2 fail
int state;
cv::Point2f point;
private:
bool stop;
std::mutex stop_mutex;
private:
bool standby;
std::mutex stby_mutex;
private:
//real x,y,z,angle
cv::Vec4f ring;
std::mutex ring_mutex;
public:
explicit DeviationPosition() {
state = -1;
used = true;
stop = false;
standby = true;
}
void init(cv::Vec4f in);
void await();
//-1 no info
int getPoint(cv::Point2f &out);
void setPoint(cv::Point2f point, int res);
void setStop(bool f);
bool getStop();
void setStby(bool s);
bool getStby();
cv::Vec4f getRing();
void setRing(cv::Vec4f in);
};
#endif //RSRTRACKING_DEVIATIONPOSITION_H