fastcom  1.0
Communication between applications made easy
Public Member Functions | List of all members
fastcom::ImageSubscriber Class Reference

Subscriber specialized for image transmission. More...

#include <ImageSubscriber.h>

Public Member Functions

 ImageSubscriber (std::string _ip, int _port)
 
 ImageSubscriber (int _port)
 
void attachCallback (std::function< void(cv::Mat &)> &_callback)
 Attach a callback to a subscription. Each time an image arrives the attached callback are called.
 

Detailed Description

Subscriber specialized for image transmission.

Constructor & Destructor Documentation

fastcom::ImageSubscriber::ImageSubscriber ( std::string  _ip,
int  _port 
)

Constructor to subscribe to ImagePublishers in different computers.

Parameters
_ipIP where the ImagePublisher is located
_portSpecific port in the IP to bind
fastcom::ImageSubscriber::ImageSubscriber ( int  _port)

Constructor to subscribe to ImagePublishers. It assumes that the publisher is in the same computer

Parameters
_portSpecific port in the IP to bind

The documentation for this class was generated from the following file: