Go to the documentation of this file.00001
00010 #include "urg_c/urg_sensor.h"
00011 #include "urg_c/urg_utils.h"
00012 #include "open_urg_sensor.h"
00013 #include <stdio.h>
00014
00015
00016 int main(int argc, char *argv[])
00017 {
00018 urg_t urg;
00019 int min_step;
00020 int max_step;
00021
00022 if (open_urg_sensor(&urg, argc, argv) < 0) {
00023 return 1;
00024 }
00025
00026 urg_step_min_max(&urg, &min_step, &max_step);
00027
00028 printf("urg_step2deg(%d): %f\n", min_step, urg_step2deg(&urg, min_step));
00029 printf("urg_step2deg(%d): %f\n", max_step, urg_step2deg(&urg, max_step));
00030
00031 printf("urg_step2rad(%d): %f\n", min_step, urg_step2rad(&urg, min_step));
00032 printf("urg_step2rad(%d): %f\n", max_step, urg_step2rad(&urg, max_step));
00033
00034 return 0;
00035 }