15 #include <visiontransfer/deviceenumeration.h> 16 #include <visiontransfer/deviceparameters.h> 23 int main(
int,
char**) {
29 if(devices.size() == 0) {
30 std::cout <<
"No devices discovered!" << std::endl;
35 std::cout <<
"Discovered devices:" << std::endl;
36 for(
unsigned int i = 0; i< devices.size(); i++) {
37 std::cout << devices[i].toString() << std::endl;
39 std::cout << std::endl;
48 std::cout <<
"Sending software trigger request..." << std::endl;
49 parameters.triggerNow();
51 std::cout <<
"Done." << std::endl;
54 }
catch(
const std::exception& ex) {
55 std::cerr <<
"Exception occurred: " << ex.what() << std::endl;
DeviceList discoverDevices()
Discovers new devices and returns the list of all devices that have been found.
Allows for configuration of the parameters of a Nerian stereo device through a network connection...
Allows for the discovery of devices in the network.