angle_convert_test.c
Go to the documentation of this file.
1 
10 #include "urg_c/urg_sensor.h"
11 #include "urg_c/urg_utils.h"
12 #include "open_urg_sensor.h"
13 #include <stdio.h>
14 
15 
16 int main(int argc, char *argv[])
17 {
18  urg_t urg;
19  int min_step;
20  int max_step;
21 
22  if (open_urg_sensor(&urg, argc, argv) < 0) {
23  return 1;
24  }
25 
26  urg_step_min_max(&urg, &min_step, &max_step);
27 
28  printf("urg_step2deg(%d): %f\n", min_step, urg_step2deg(&urg, min_step));
29  printf("urg_step2deg(%d): %f\n", max_step, urg_step2deg(&urg, max_step));
30 
31  printf("urg_step2rad(%d): %f\n", min_step, urg_step2rad(&urg, min_step));
32  printf("urg_step2rad(%d): %f\n", max_step, urg_step2rad(&urg, max_step));
33 
34  return 0;
35 }
double urg_step2deg(const urg_t *urg, int step)
Definition: urg_utils.c:192
double urg_step2rad(const urg_t *urg, int step)
Definition: urg_utils.c:182
URG sensor.
Definition: urg_sensor.h:72
URG sensor.
int main(int argc, char *argv[])
int open_urg_sensor(urg_t *urg, int argc, char *argv[])
void urg_step_min_max(const urg_t *urg, int *min_step, int *max_step)
Definition: urg_utils.c:91
URG sensor utility.


urg_c
Author(s): Satofumi Kamimura , Katsumi Kimoto, Adrian Boeing
autogenerated on Thu Jun 6 2019 19:27:49