#include <interpolator.h>
|
double | calc_interpolation_time (const double *g) |
|
void | clear () |
|
double | deltaT () const |
|
int | dimension () const |
|
double * | front () |
|
void | get (double *x_, bool popp=true) |
|
void | get (double *x_, double *v_, bool popp=true) |
|
void | get (double *x_, double *v_, double *a_, bool popp=true) |
|
void | go (const double *gx, const double *gv, double time, bool immediate=true) |
|
void | go (const double *gx, double time, bool immediate=true) |
|
void | interpolate (double &remain_t_) |
|
| interpolator (int dim_, double dt_, interpolation_mode imode_=HOFFARBIB, double default_avg_vel_=0.5) |
|
bool | isEmpty () |
|
void | load (string fname, double time_to_start=1.0, double scale=1.0, bool immediate=true, size_t offset1=0, size_t offset2=0) |
|
void | load (const char *fname, double time_to_start=1.0, double scale=1.0, bool immediate=true, size_t offset1=0, size_t offset2=0) |
|
void | pop () |
|
void | pop_back () |
|
void | push (const double *x_, const double *v_, const double *a_, bool immediate=true) |
|
double | remain_time () |
|
void | set (const double *x, const double *v=NULL) |
|
void | setGoal (const double *gx, const double *gv, double time, bool online=true) |
|
void | setGoal (const double *gx, double time, bool online=true) |
|
bool | setInterpolationMode (interpolation_mode i_mode_) |
|
void | setName (const std::string &_name) |
|
void | sync () |
|
| ~interpolator () |
|
|
void | hoffarbib (double &remain_t_, double a0, double a1, double a2, double a3, double a4, double a5, double &xx, double &vv, double &aa) |
|
void | linear_interpolation (double &remain_t_, double gx, double &xx, double &vv, double &aa) |
|
Definition at line 10 of file interpolator.h.
Enumerator |
---|
LINEAR |
|
HOFFARBIB |
|
QUINTICSPLINE |
|
CUBICSPLINE |
|
Definition at line 23 of file interpolator.h.
interpolator::~interpolator |
( |
| ) |
|
double interpolator::calc_interpolation_time |
( |
const double * |
g | ) |
|
double interpolator::deltaT |
( |
| ) |
const |
|
inline |
int interpolator::dimension |
( |
| ) |
const |
|
inline |
double * interpolator::front |
( |
| ) |
|
void interpolator::get |
( |
double * |
x_, |
|
|
bool |
popp = true |
|
) |
| |
void interpolator::get |
( |
double * |
x_, |
|
|
double * |
v_, |
|
|
bool |
popp = true |
|
) |
| |
void interpolator::get |
( |
double * |
x_, |
|
|
double * |
v_, |
|
|
double * |
a_, |
|
|
bool |
popp = true |
|
) |
| |
void interpolator::go |
( |
const double * |
gx, |
|
|
const double * |
gv, |
|
|
double |
time, |
|
|
bool |
immediate = true |
|
) |
| |
void interpolator::go |
( |
const double * |
gx, |
|
|
double |
time, |
|
|
bool |
immediate = true |
|
) |
| |
void interpolator::hoffarbib |
( |
double & |
remain_t_, |
|
|
double |
a0, |
|
|
double |
a1, |
|
|
double |
a2, |
|
|
double |
a3, |
|
|
double |
a4, |
|
|
double |
a5, |
|
|
double & |
xx, |
|
|
double & |
vv, |
|
|
double & |
aa |
|
) |
| |
|
private |
void interpolator::interpolate |
( |
double & |
remain_t_ | ) |
|
bool interpolator::isEmpty |
( |
void |
| ) |
|
void interpolator::linear_interpolation |
( |
double & |
remain_t_, |
|
|
double |
gx, |
|
|
double & |
xx, |
|
|
double & |
vv, |
|
|
double & |
aa |
|
) |
| |
|
private |
void interpolator::load |
( |
string |
fname, |
|
|
double |
time_to_start = 1.0 , |
|
|
double |
scale = 1.0 , |
|
|
bool |
immediate = true , |
|
|
size_t |
offset1 = 0 , |
|
|
size_t |
offset2 = 0 |
|
) |
| |
void interpolator::load |
( |
const char * |
fname, |
|
|
double |
time_to_start = 1.0 , |
|
|
double |
scale = 1.0 , |
|
|
bool |
immediate = true , |
|
|
size_t |
offset1 = 0 , |
|
|
size_t |
offset2 = 0 |
|
) |
| |
void interpolator::pop |
( |
| ) |
|
void interpolator::pop_back |
( |
| ) |
|
void interpolator::push |
( |
const double * |
x_, |
|
|
const double * |
v_, |
|
|
const double * |
a_, |
|
|
bool |
immediate = true |
|
) |
| |
double interpolator::remain_time |
( |
| ) |
|
void interpolator::setGoal |
( |
const double * |
gx, |
|
|
const double * |
gv, |
|
|
double |
time, |
|
|
bool |
online = true |
|
) |
| |
void interpolator::setGoal |
( |
const double * |
gx, |
|
|
double |
time, |
|
|
bool |
online = true |
|
) |
| |
void interpolator::setName |
( |
const std::string & |
_name | ) |
|
|
inline |
void interpolator::sync |
( |
| ) |
|
double * interpolator::a1 |
|
private |
double * interpolator::a2 |
|
private |
double * interpolator::a3 |
|
private |
double * interpolator::a4 |
|
private |
double * interpolator::a5 |
|
private |
deque<double *> interpolator::ddq |
|
private |
double interpolator::default_avg_vel |
|
private |
deque<double *> interpolator::dq |
|
private |
double * interpolator::ga |
|
private |
double * interpolator::gv |
|
private |
std::string interpolator::name |
|
private |
deque<double *> interpolator::q |
|
private |
double interpolator::remain_t |
|
private |
double interpolator::target_t |
|
private |
The documentation for this class was generated from the following files: