7 #define M_PI 3.14159265358979323846 15 double norm_d(
const double p[2]);
17 double distance_d(
const double a[2],
const double b[2]);
31 int minmax(
int from,
int to,
int x);
34 void copy_d(
const double*from,
int n,
double*to);
37 void ominus_d(
const double x[3],
double res[3]);
38 void oplus_d(
const double x1[3],
const double x2[3],
double res[3]);
39 void pose_diff_d(
const double second[3],
const double first[3],
double res[3]);
61 double dist_to_segment_d(
const double a[2],
const double b[2],
const double x[2]);
69 int segment_ray_tracing(
const double p0[2],
const double p1[2],
const double eye[2],
double direction,
double*range);
81 int any_nan(
const double *d,
int n);
double dist_to_segment_d(const double a[2], const double b[2], const double x[2])
double angleDiff(double a, double b)
int any_nan(const double *d, int n)
double norm_d(const double p[2])
int count_equal(const int *v, int n, int value)
double dist_to_segment_squared_d(const double a[2], const double b[2], const double x[2])
double deg2rad(double deg)
const char * friendly_pose(const double *pose)
void oplus_d(const double x1[3], const double x2[3], double res[3])
double distance_d(const double a[2], const double b[2])
double max_in_array(const double *v, int n)
double distance_squared_d(const double a[2], const double b[2])
double segment_alpha(const double p0[2], const double p1[2])
void transform_d(const double point2d[2], const double pose[3], double result2d[2])
void copy_d(const double *from, int n, double *to)
void projection_on_segment_d(const double a[2], const double b[2], const double P[2], double proj[2])
double rad2deg(double rad)
double normalize_0_2PI(double angle)
int segment_ray_tracing(const double p0[2], const double p1[2], const double eye[2], double direction, double *range)
void ominus_d(const double x[3], double res[3])
void pose_diff_d(const double second[3], const double first[3], double res[3])
int minmax(int from, int to, int x)
double distance(const gsl_vector *a, const gsl_vector *b)
void projection_on_line_d(const double a[2], const double b[2], const double p[2], double res[2], double *distance)