25 #ifndef SPLINE_FUNCTIONS_H_ 26 #define SPLINE_FUNCTIONS_H_ 28 #include <boost/numeric/ublas/lu.hpp> 40 void sampleCubicSpline(
const std::vector<double>& coefficients,
double time,
double& position,
double& velocity,
41 double& acceleration);
44 std::vector<double>& coefficients);
65 void splineCoefficients(
int steps,
double *timearray,
double *encoderarray,
double *arr_p1,
double *arr_p2,
66 double *arr_p3,
double *arr_p4);
74 double& position,
double& velocity,
double& acceleration);
void sampleCubicSpline(const std::vector< double > &coefficients, double time, double &position, double &velocity, double &acceleration)
Samples a cubic spline segment at a particular time.
void getCubicSplineCoefficients(double start_pos, double start_vel, double end_pos, double end_vel, double time, std::vector< double > &coefficients)
void splineCoefficients(int steps, double *timearray, double *encoderarray, double *arr_p1, double *arr_p2, double *arr_p3, double *arr_p4)
void generatePowers(int n, double x, double *powers)
void sampleSplineWithTimeBounds(const std::vector< double > &coefficients, double duration, double time, double &position, double &velocity, double &acceleration)