15 #ifndef VISIONTRANSFER_ASYNCTRANSFER_H 16 #define VISIONTRANSFER_ASYNCTRANSFER_H 18 #include "visiontransfer/common.h" 19 #include "visiontransfer/imagetransfer.h" 20 #include "visiontransfer/imageset.h" 21 #include "visiontransfer/imageprotocol.h" 22 #include "visiontransfer/deviceinfo.h" 51 AsyncTransfer(
const char* address,
const char* service =
"7681",
53 bool server =
false,
int bufferSize = 1048576,
int maxUdpPacketSize = 1472);
81 void sendImageSetAsync(
const ImageSet& imageSet,
bool deleteData =
false);
83 #ifndef DOXYGEN_SHOULD_SKIP_THIS 84 DEPRECATED(
"Use sendImageSetAsync() instead")
85 inline void sendImagePairAsync(
const ImageSet& imageSet,
bool deleteData =
false) {
86 sendImageSetAsync(imageSet, deleteData);
106 bool collectReceivedImageSet(
ImageSet& imageSet,
double timeout = -1);
108 #ifndef DOXYGEN_SHOULD_SKIP_THIS 109 DEPRECATED(
"Use collectReceivedImageSet() instead")
110 inline bool collectReceivedImagePair(
ImageSet& imageSet,
double timeout = -1) {
111 return collectReceivedImageSet(imageSet, timeout);
122 int getNumDroppedFrames()
const;
138 bool isConnected()
const;
152 std::string getRemoteAddress()
const;
The connection-less UDP transport protocol.
ProtocolType
Supported network protocols.
Aggregates information about a discovered device.
A set of one to three images, but usually two (the left camera image and the disparity map)...
Class for asynchronous transfer of image sets.