find_devices.cpp
Go to the documentation of this file.
00001 
00014 #include <iostream>
00015 
00016 #include "kobuki_ftdi/scanner.hpp"
00017 
00018 int main(int argc, char** argv)
00019 {
00020   FTDI_Scanner scanner;
00021   int no_devices = scanner.scan();
00022   if (no_devices < 0) {
00023     std::cout << "not found!!!" << std::endl;
00024     return -1;
00025   }
00026   std::cout << no_devices << " device(s) found." << std::endl;
00027   return 0;
00028 }


kobuki_ftdi
Author(s): Younghun Ju
autogenerated on Thu Aug 27 2015 13:43:53