#include #include #include int main(int argc, char **argv) { if (argc < 2) { std::cerr << "Usage: videodevice_subscribe pIp" << std::endl; return 1; } const std::string pIp = argv[1]; // Proxy to ALVideoDevice. AL::ALVideoDeviceProxy cameraProxy(pIp); // Subscribe a Vision Module to ALVideoDevice, starting the // frame grabber if it was not started before. std::string subscriberID = "subscriberID"; int fps = 5; // The subscriberID can be altered if other instances are already running subscriberID = cameraProxy.subscribe(subscriberID, AL::kVGA, AL::kRGBColorSpace, fps); // Do something... // Unsubscribe the V.M. cameraProxy.unsubscribe(subscriberID); return 0; }