SplineInterpolation Class Reference

The SplineInterpolation class represents a linear Interpolation between a series of control points Spline means that the position is calcualed by a function with the form of the ploynom. More...

#include <RobotComponents/gui-plugins/RobotTrajectoryDesignerGuiPlugin/Interpolation/SplineInterpolation.h>

+ Inheritance diagram for SplineInterpolation:

Public Member Functions

AbstractInterpolationPtr getInterPolationSegment (int segmentNumber)
 getInterPolationSegment returns a segment of the current interpolation More...
 
AbstractInterpolationPtr getInterPolationSegment (PoseBasePtr start)
 getInterPolationSegment returns a segment of the current interpolation More...
 
PoseBasePtr getPoseAt (double time) override
 getPoseAt returns the Pose defined by f(time) More...
 
 SplineInterpolation (std::vector< PoseBasePtr > controlPoints)
 SplineInterpolation creates a new SplineInterpolation through a series of conntrol points. More...
 
- Public Member Functions inherited from AbstractInterpolation
int getNumberOfControlPoints ()
 getNumberOfControlPoints returns number of controlPoints More...
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractInterpolation
virtual const QuaternionBasePtr calculateOrientationAt (double time)
 calculateOrientationAt calculates the rotation/orientation of the pose at a certain time More...
 
void init (const std::vector< PoseBasePtr > cp)
 init convinience method to construct the basic parts of the interpolation (copying all controlPoints) More...
 
- Static Protected Member Functions inherited from AbstractInterpolation
static PoseBasePtr deepCopy (PoseBasePtr org)
 deepCopy creates a real, independent copy of a PoseBasePtr More...
 
- Protected Attributes inherited from AbstractInterpolation
std::vector< PoseBasePtr > controlPoints
 controlPoints the controlPoints that are interpolated between More...
 

Detailed Description

The SplineInterpolation class represents a linear Interpolation between a series of control points Spline means that the position is calcualed by a function with the form of the ploynom.

Definition at line 36 of file SplineInterpolation.h.

Constructor & Destructor Documentation

◆ SplineInterpolation()

SplineInterpolation ( std::vector< PoseBasePtr >  controlPoints)

SplineInterpolation creates a new SplineInterpolation through a series of conntrol points.

Parameters
controlPointsa vector of Poses that define the Interpolation-Function

Definition at line 34 of file SplineInterpolation.cpp.

Member Function Documentation

◆ getInterPolationSegment() [1/2]

AbstractInterpolationPtr getInterPolationSegment ( int  segmentNumber)

getInterPolationSegment returns a segment of the current interpolation

Parameters
startthe Pose where the Interval of the InterpolationSegment starts
Returns
the shared_ptr to an interpolation Function that is a scaled Interval of this Interpolation

Definition at line 85 of file SplineInterpolation.cpp.

◆ getInterPolationSegment() [2/2]

AbstractInterpolationPtr getInterPolationSegment ( PoseBasePtr  start)

getInterPolationSegment returns a segment of the current interpolation

Parameters
startthe Pose where the Interval of the InterpolationSegment starts
Returns
the shared_ptr to an interpolation Function that is a scaled Interval of this Interpolation

Definition at line 71 of file SplineInterpolation.cpp.

◆ getPoseAt()

PoseBasePtr getPoseAt ( double  time)
overridevirtual

getPoseAt returns the Pose defined by f(time)

Parameters
timea time between 0 and 1 with getPoseAt(0) being the startingPose and getPoseAt(1) being the ending Pose
Returns
the pose of the interpolation-function at time

Implements AbstractInterpolation.

Definition at line 47 of file SplineInterpolation.cpp.

+ Here is the call graph for this function:

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