46 int main(
int arc,
char** argv)
50 std::cout <<
"Found " << device_infos->size() <<
" devices:" << std::endl << std::endl;
51 for (
size_t i = 0; i < device_infos->size(); ++i)
53 std::cout <<
"Device #" << i <<
":" << std::endl;
54 std::cout << device_infos->at(i) << std::endl;
56 std::string serial = manager.
getSerial(device_infos->at(i).uri_);
57 std::cout <<
"Serial number: " << serial << std::endl;
61 std::cerr <<
"Could not retrieve serial number: " << exception.
what() << std::endl;
std::string getSerial(const std::string &device_URI) const
boost::shared_ptr< std::vector< AstraDeviceInfo > > getConnectedDeviceInfos() const
virtual const char * what() const
int main(int arc, char **argv)