Go to the documentation of this file.
11 #define _USE_MATH_DEFINES
18 static int max(
int a,
int b)
20 return (a > b) ? a : b;
24 static int min(
int a,
int b)
26 return (a < b) ? a : b;
39 error_messages_t errors[] = {
60 int n =
sizeof(errors) /
sizeof(errors[0]);
63 for (i = 0; i < n; ++i) {
65 return errors[i].message;
69 return "Unknown error.";
74 long *min_distance,
long *max_distance)
int urg_max_data_size(const urg_t *urg)
@ URG_SCANNING_PARAMETER_ERROR
const char * urg_error(const urg_t *urg)
@ URG_MEASUREMENT_TYPE_MISMATCH
double urg_index2deg(const urg_t *urg, int index)
@ URG_ETHERNET_OPEN_ERROR
@ URG_COMMUNICATION_2_BYTE
@ URG_NOT_DETECT_BAUDRATE_ERROR
urg_range_data_byte_t range_data_byte
long urg_scan_usec(const urg_t *urg)
double urg_step2deg(const urg_t *urg, int step)
void urg_step_min_max(const urg_t *urg, int *min_index, int *max_index)
static int max(int a, int b)
void urg_distance_min_max(const urg_t *urg, long *min_distance, long *max_distance)
int urg_deg2step(const urg_t *urg, double degree)
double urg_step2rad(const urg_t *urg, int step)
static int min(int a, int b)
double urg_index2rad(const urg_t *urg, int index)
@ URG_DATA_SIZE_PARAMETER_ERROR
int urg_rad2step(const urg_t *urg, double radian)
int urg_rad2index(const urg_t *urg, double radian)
int urg_step2index(const urg_t *urg, int step)
int urg_deg2index(const urg_t *urg, double degree)
urg_c
Author(s): Satofumi Kamimura
, Katsumi Kimoto, Adrian Boeing
autogenerated on Wed Mar 2 2022 01:08:11