From d40984d4ded654004f6e5c0dc5a9d29ba41fb6e9 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Fri, 31 Aug 2018 10:39:14 -0500 Subject: use interp1d() to interpolate path to speed things up --- src/path.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/path.h') diff --git a/src/path.h b/src/path.h index 6e73d10..0c97f18 100644 --- a/src/path.h +++ b/src/path.h @@ -9,8 +9,16 @@ typedef struct path { double pos[3]; double dir[3]; double theta0; - gsl_interp_accel *acc[8]; - gsl_spline *spline[8]; + + double *s; + double *x; + double *y; + double *z; + double *T; + double *t; + double *dx; + double *dy; + double *dz; } path; double path_get_coefficient(unsigned int k, double *s, double *x, double theta0, size_t n); -- cgit