Namespaces | Macros | Functions | Variables
utilities.hpp File Reference
#include "fresnel.data"
Include dependency graph for utilities.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 steering
 

Macros

#define HALF_PI   1.5707963267948966192
 
#define PI   3.1415926535897932384
 
#define SQRT_PI   1.7724538509055160273
 
#define SQRT_PI_INV   0.56418958354775628695
 
#define SQRT_TWO_PI_INV   0.39894228040143267794
 
#define TWO_PI   6.2831853071795864770
 

Functions

int steering::array_index_min (double array[], int size)
 Find index with minimal value in double array. More...
 
void steering::double_array_init (double array[], int size, double value)
 Initialize an array with a given value. More...
 
void steering::end_of_circular_arc (double x_i, double y_i, double theta_i, double kappa, double direction, double length, double *x_f, double *y_f, double *theta_f)
 Computation of the end point on a circular arc x_i, y_i, theta_i: initial configuration kappa: curvature of circular arc direction: driving direction {-1.0, 1.0} length: arc length (positive) x_f, y_f, theta_f: final configuration on circular arc. More...
 
void steering::end_of_clothoid (double x_i, double y_i, double theta_i, double kappa_i, double sigma, double direction, double length, double *x_f, double *y_f, double *theta_f, double *kappa_f)
 Computation of the end point on a clothoid x_i, y_i, theta_i, kappa_i: initial configuration sigma: sharpness of clothoid direction: driving direction {-1.0, 1.0} length: length of clothoid (positive) x_f, y_f, theta_f, kappa_f: final configuration on clothoid. More...
 
void steering::end_of_straight_line (double x_i, double y_i, double theta, double direction, double length, double *x_f, double *y_f)
 Computation of the end point on a straight line x_i, y_i: initial configuration theta: angle of straight line direction: driving direction {-1.0, 1.0} length: line length (positive) x_f, y_f: final configuration on straight line. More...
 
void steering::fresnel (double s, double &S_f, double &C_f)
 Fresnel integrals: S_f = int_0_s(sin(pi/2 u*u)du), C_f = int_0_s(cos(pi/2 u*u)du) approximated with Chebyshev polynomials. More...
 
double steering::get_epsilon ()
 Return value of epsilon. More...
 
void steering::global_frame_change (double x, double y, double theta, double local_x, double local_y, double *global_x, double *global_y)
 Transformation of (local_x, local_y) from local coordinate system to global one. More...
 
void steering::local_frame_change (double x, double y, double theta, double global_x, double global_y, double *local_x, double *local_y)
 Transformation of (global_x, global_y) from global coordinate system to local one. More...
 
double steering::pify (double alpha)
 Conversion of arbitrary angle given in [rad] to [-pi, pi[. More...
 
double steering::point_distance (double x1, double y1, double x2, double y2)
 Cartesian distance between two points. More...
 
void steering::pointer_array_init (void *array[], int size)
 Initialize an array with nullptr. More...
 
void steering::polar (double x, double y, double &r, double &theta)
 Computation of a point's polar coordinates. More...
 
double steering::sgn (double x)
 Return sign of a number. More...
 
double steering::twopify (double alpha)
 Conversion of arbitrary angle given in [rad] to [0, 2*pi[. More...
 

Variables

const double steering::epsilon = 1e-4
 

Macro Definition Documentation

◆ HALF_PI

#define HALF_PI   1.5707963267948966192

Definition at line 32 of file utilities.hpp.

◆ PI

#define PI   3.1415926535897932384

Definition at line 31 of file utilities.hpp.

◆ SQRT_PI

#define SQRT_PI   1.7724538509055160273

Definition at line 34 of file utilities.hpp.

◆ SQRT_PI_INV

#define SQRT_PI_INV   0.56418958354775628695

Definition at line 35 of file utilities.hpp.

◆ SQRT_TWO_PI_INV

#define SQRT_TWO_PI_INV   0.39894228040143267794

Definition at line 36 of file utilities.hpp.

◆ TWO_PI

#define TWO_PI   6.2831853071795864770

Definition at line 33 of file utilities.hpp.



steering_functions
Author(s): Holger Banzhaf
autogenerated on Mon Dec 11 2023 03:27:44