summaryrefslogtreecommitdiff
path: root/client2.cpp
blob: 1671ae060effb5948bb769097aba6b209ede6db3 (plain)
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
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <string.h>
#include <sys/un.h>
#include <time.h>

#include <opencv2/opencv.hpp>
#include "lib.h"

using namespace cv;

#define SOCKETPATH "/home/flo/uds_socket"

int main(int argc, const char** argv)
{
	DroneConnection drone(SOCKETPATH);

	
	Mat dingens;

	while (waitKey(1) != 'x')
	{
		navdata_t navdata;
		drone.get(dingens, &navdata);

		imshow("dingens",dingens);
	}
	
	return 0;
}