![]() |
RobWorkProject
23.9.11-
|
This class represents a 3-degree polynomial function, used in Cubic Splines hence the name CubicSegment. More...
#include <CubicSplineInterpolator.hpp>
Inherits Interpolator< T >.
Public Member Functions | |
CubicSplineInterpolator (const T &a, const T &b, const T &c, const T &d, double duration) | |
T | x (double t) const |
Position at time t. More... | |
T | dx (double t) const |
Velocity at time t. More... | |
T | ddx (double t) const |
Acceleration at time t. More... | |
double | duration () const |
Returns the duration of the interpolator. More... | |
![]() | |
virtual | ~Interpolator () |
Virtual destructor. | |
Additional Inherited Members | |
![]() | |
typedef rw::core::Ptr< Interpolator > | Ptr |
smart pointer type to this class | |
This class represents a 3-degree polynomial function, used in Cubic Splines hence the name CubicSegment.
\( \bf{f}(t)= \bf{a} + \bf{b}\cdot t + \bf{c}\cdot t^2 \bf{d}\cdot t^3 \)
|
inlinevirtual |
Acceleration at time t.
t | [in] time between 0 and length |
Implements Interpolator< T >.
|
inlinevirtual |
Returns the duration of the interpolator.
The duration is defined as the time it takes to move from one end of the interpolator to the other.
Implements Interpolator< T >.
|
inlinevirtual |
Velocity at time t.
t | [in] time between 0 and length |
Implements Interpolator< T >.
|
inlinevirtual |
Position at time t.
t | [in] time between 0 and length |
Implements Interpolator< T >.