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 }
urg_t
URG sensor.
Definition: urg_sensor.h:72
urg_sensor.h
URG sensor.
urg_step_min_max
void urg_step_min_max(const urg_t *urg, int *min_step, int *max_step)
Definition: urg_utils.c:91
open_urg_sensor.h
urg_step2deg
double urg_step2deg(const urg_t *urg, int step)
Definition: urg_utils.c:192
urg_utils.h
URG sensor utility.
main
int main(int argc, char *argv[])
Definition: angle_convert_test.c:16
open_urg_sensor
int open_urg_sensor(urg_t *urg, int argc, char *argv[])
Definition: open_urg_sensor.c:18
urg_step2rad
double urg_step2rad(const urg_t *urg, int step)
Definition: urg_utils.c:182


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