KrisLibrary  1.0.0
Public Member Functions | Public Attributes | List of all members
PathInterpolator Class Reference

An interpolator that concatenates a list of other interpolators. The interpolators may have nonuniform duration. More...

#include <InterpolatorHelpers.h>

Inheritance diagram for PathInterpolator:
Interpolator

Public Member Functions

 PathInterpolator (const InterpolatorPtr &interp)
 
 PathInterpolator (const std::vector< InterpolatorPtr > &segments, Real totalTime=1.0)
 
void Append (const InterpolatorPtr &interp, Real duration=0)
 Adds a new segment. If duration = 0, all durations / times are scaled to keep the current total time.
 
void Concat (const PathInterpolator &path)
 
void ScaleDuration (Real scale)
 
void SetTotalTime (Real ttotal)
 
virtual void Eval (Real u, Config &x) const
 
virtual Real Length () const
 
virtual const ConfigStart () const
 
virtual const ConfigEnd () const
 
virtual Real ParamStart () const
 
virtual Real ParamEnd () const
 

Public Attributes

std::vector< InterpolatorPtr > segments
 
std::vector< Real > durations
 
std::vector< Real > times
 

Detailed Description

An interpolator that concatenates a list of other interpolators. The interpolators may have nonuniform duration.


The documentation for this class was generated from the following files: