19 return message.c_str();
31 const std::string & _deviceType,
32 const std::string & _deviceSource,
34 const std::string & _brokerEndpoint) {
35 (void)_brokerEndpoint;
37 if(_deviceType.compare(
"imaq") == 0) {
42 if(_deviceType.compare(
"dummy") == 0) {
46 if (_deviceType.compare(
"remote") == 0) {
59 return impl->getWidth();
63 return impl->getHeight();
67 return impl->getBytesPerPixel();
71 return impl->startServing();
75 return impl->stopServing();
79 impl->addEndpoint(_endpoint);
Base for all ImageGrabber related exceptions.
virtual ~_ImageGrabberImpl()=0
virtual const char * what() const
ImageGrabber(const std::string &_deviceName, const std::string &_deviceType, const std::string &_deviceSource, zmq::context_t &ctx, const std::string &_brokerEndpoint)
Setup a grabber.
ImageGrabber implementation for IMAQ cameras.
ImageGrabberException(const std::string &_message)
std::string SSTR(Args &&...components)
Creates a temporary string stream for string concatenation.
void startServing()
Start the server asynchronously.
void stopServing()
Stop the server.
void addEndpoint(const std::string &_endpoint)
Add a publisher endpoint.