-
Notifications
You must be signed in to change notification settings - Fork 0
/
RobotClient.h
48 lines (35 loc) · 962 Bytes
/
RobotClient.h
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
/**
* @file RobotClient.h
* @brief Functions to receive data from the Robot and display it.
*/
#ifndef ROBOTCLIENT_H
#define ROBOTCLIENT_H
/*-------------------- INCLUDES --------------------*/
#include "Common.h"
#include "TCPInterface.h"
// fps calculation
#include <time.h>
// opencv
#include <cv.h>
#include <highgui.h>
/*-------------------- DEFINES --------------------*/
#define STREAM_WINDOW_NAME "Streaming Video"
/*-------------------- MACROS --------------------*/
// None.
/*---------------- CLASS DEFINITION ----------------*/
class RobotClient
{
public:
RobotClient (void);
~RobotClient (void);
void receiveFrame (void);
int displayFrame (int number);
uint32_t getStreamingBufferSize (void) const;
private:
// Client interface.
TCPInterface mTCPI;
// OpenCV image containers.
cv::Mat mStreamingImage;
std::vector<uint8_t> mStreamingBuffer;
};
#endif