forked from mda-ut/RoboSub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuoyTask.h
More file actions
45 lines (38 loc) · 966 Bytes
/
BuoyTask.h
File metadata and controls
45 lines (38 loc) · 966 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
#ifndef BUOYTASK_H
#define BUOYTASK_H
///For the submarine movement
#include "Task.h"
#include "TurnTask.h"
#include "SpeedTask.h"
#include "DepthTask.h"
#include "CameraModel.h"
#include "ShapeFilter.h"
#include <unistd.h>
///For filter detection
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <cmath>
using namespace cv;
using namespace std;
class BuoyTask: public Task
{
public:
BuoyTask(Model* camModel, TurnTask* tk, SpeedTask* st, DepthTask* dt);
virtual ~BuoyTask();
void execute();
private:
Logger* logger = new Logger("BuoyTask");
Properties* settings
CameraModel* camModel;
int imgWidth = -1;
int imgHeight = -1;
TurnTask* tk;
SpeedTask* st;
DepthTask* dt;
void thresh_callback(int, Mat, float*, float*, float*);
void detectBuoy(ImgData*, std::string, float*, float*, float*);
};
#endif // BUOYTASK_H