23 printf(
"%ld, ", data[(URG_MAX_ECHO * index) + i]);
38 printf(
"%ld\n", time_stamp);
46 printf(
"# n = %d, time_stamp = %ld\n", data_n, time_stamp);
47 for (i = 0; i < data_n; ++i) {
55 int main(
int argc,
char *argv[])
63 unsigned long long system_time_stamp;
73 perror(
"urg_max_index()");
79 for (i = 0; i < CAPTURE_TIMES; ++i) {
82 printf(
"urg_get_multiecho: %s\n",
urg_error(&urg));
int urg_start_measurement(urg_t *urg, urg_measurement_type_t type, int scan_times, int skip_scan)
const char * urg_error(const urg_t *urg)
void urg_close(urg_t *urg)
static void print_echo_data(long data[], int index)
int main(int argc, char *argv[])
int urg_step2index(const urg_t *urg, int step)
int open_urg_sensor(urg_t *urg, int argc, char *argv[])
int urg_get_multiecho(urg_t *urg, long data_multi[], long *time_stamp, unsigned long long *system_time_stamp)
static void print_data(urg_t *urg, long data[], int data_n, long time_stamp)
int urg_max_data_size(const urg_t *urg)