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