Go to the documentation of this file.
13 template<
class T,
class U = T>
30 virtual std::shared_ptr<Interpolator<T, U>>
clone()
const = 0;
43 virtual void appendPoint(
const std::pair<double, T> & point) = 0;
59 virtual U
derivative(
double t,
int order = 1)
const = 0;
74 const std::map<double, T> &
points()
const
virtual void appendPoint(const std::pair< double, T > &point)=0
Add point.
double startTime() const
Get start time.
virtual void calcCoeff()=0
Calculate coefficients.
Interpolator(const std::map< double, T > &points={})
Constructor.
Interpolator(const Interpolator &inst)
Copy constructor.
double endTime() const
Get end time.
virtual void clearPoints()
Clear points.
std::map< double, T > points_
Times and values to be interpolated.
virtual std::shared_ptr< Interpolator< T, U > > clone() const =0
Clone this instance and get shared pointer.
virtual T operator()(double t) const =0
Calculate interpolated value.
Interpolator of a sequence of waypoints.
virtual U derivative(double t, int order=1) const =0
Calculate the derivative of interpolated value.
const std::map< double, T > & points() const
Get points.