greenhouse/tools/tcpImagesServer/ImagesTcpServer.h
matlabbe 167aeee4bc Added TcpRequest tool (ask a running find_object to process an image and wait results over TCP)
Refactored CameraTcpClient to CameraTcpServer (to send images we connect to find_object, instead of connecting find_object to an image server), removed parameter CameraIP

git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@364 620bd6b2-0a58-f614-fd9a-1bd335dccda9
2014-08-02 06:09:27 +00:00

36 lines
574 B
C++

/*
* ImagesTcpServer.h
*
* Created on: 2014-05-21
* Author: mathieu
*/
#ifndef IMAGESTCPSERVER_H_
#define IMAGESTCPSERVER_H_
#include "find_object/Camera.h"
#include <QtNetwork/QTcpSocket>
class ImagesTcpServer : public QTcpSocket
{
Q_OBJECT
public:
static QHostAddress getHostAddress();
public:
ImagesTcpServer(float hz = 10.0f, const QString & path = "", QObject * parent = 0);
private Q_SLOTS:
void startCamera();
void publishImage(const cv::Mat & image);
Q_SIGNALS:
void connectionLost();
private:
Camera camera_;
};
#endif /* TCPCLIENT_H_ */