find_port.c
Go to the documentation of this file.
00001 
00010 #include "urg_c/urg_serial_utils.h"
00011 #include <stdio.h>
00012 
00013 
00014 int main(void)
00015 {
00016     int found_port_size = urg_serial_find_port();
00017     int i;
00018 
00019     if (found_port_size == 0) {
00020         printf("could not found ports.\n");
00021         return 1;
00022     }
00023 
00024     for (i = 0; i < found_port_size; ++i) {
00025         printf("%s", urg_serial_port_name(i));
00026         if (urg_serial_is_urg_port(i)) {
00027           printf(" [URG]");
00028         }
00029         printf("\n");
00030     }
00031 
00032     return 0;
00033 }


urg_c
Author(s): Satofumi Kamimura , Katsumi Kimoto, Adrian Boeing
autogenerated on Wed Aug 26 2015 16:38:27