All Classes Namespaces Files Functions Variables Enumerations Enumerator
libs/range_sensor/simple_samples/findUrgPorts.cpp
00001 
00011 #include "findUrgPorts.h"
00012 #include <SDL.h>
00013 
00014 using namespace qrk;
00015 using namespace std;
00016 
00017 
00019 int main(int argc, char *argv[])
00020 {
00021   vector<string> ports;
00022   findUrgPorts(ports);
00023 
00024   // display URG ports
00025   printf("ports: %u\n", ports.size());
00026   for (vector<string>::iterator it = ports.begin();
00027        it != ports.end(); ++it) {
00028     printf("%s\n", it->c_str());
00029   }
00030 
00031   return 0;
00032 }