timeout_test.c

timeout test

Author
Satofumi KAMIMURA

$Id$

#include <stdio.h>
int main(int argc, char *argv[])
{
enum { TIMEOUT_MSEC = 3000 };
char buffer;
int n;
urg_t urg;
if (open_urg_sensor(&urg, argc, argv) < 0) {
return 1;
}
printf("read\n");
n = urg_raw_read(&urg, &buffer, 1, TIMEOUT_MSEC);
printf("n = %d\n", n);
return 0;
}
urg_t
URG sensor.
Definition: urg_sensor.h:72
urg_sensor.h
URG sensor.
urg_debug.h
URG debugging functions.
open_urg_sensor.h
main
int main(int argc, char *argv[])
Definition: timeout_test.c:16
urg_raw_read
int urg_raw_read(urg_t *urg, char *data, int max_data_size, int timeout)
Definition: urg_debug.c:19
urg_utils.h
URG sensor utility.
open_urg_sensor
int open_urg_sensor(urg_t *urg, int argc, char *argv[])
Definition: open_urg_sensor.c:18


urg_c
Author(s): Satofumi Kamimura , Katsumi Kimoto, Adrian Boeing
autogenerated on Wed Mar 2 2022 01:08:11