Curves
A library for curves generation.
curves::SamplingPolicy Class Reference

#include <SamplingPolicy.hpp>

Public Member Functions

 SamplingPolicy ()
 
 SamplingPolicy (int minimumMeasurements, Time minSamplingPeriod)
 
 ~SamplingPolicy ()
 
template<typename CurveType , typename ValueType >
Key interpolationExtend (const Time &time, const ValueType &value, CurveType *curve)
 
template<typename CurveType , typename ValueType >
Key defaultExtend (const Time &time, const ValueType &value, CurveType *curve)
 
template<typename CurveType , typename ValueType >
void extend (const std::vector< Time > &times, const std::vector< ValueType > &values, CurveType *curve, std::vector< Key > *outKeys=NULL)
 
int getMeasurementsSinceLastExtend ()
 Print the value of the coefficient, for debugging and unit tests. More...
 
int getMinimumMeasurements ()
 
Time getMinSamplingPeriod ()
 
Time getLastExtendTime ()
 
void setLastExtendTime (Time time)
 
void setMinimumMeasurements (int n)
 
void setMinSamplingPeriod (Time minSamplingPeriod)
 
void incrementMeasurementsTaken (int num)
 
void setMeasurementsSinceLastExtend_ (int num)
 
template<>
Key defaultExtend (const Time &time, const ValueType &value, CubicHermiteSE3Curve *curve)
 
template<>
Key interpolationExtend (const Time &time, const ValueType &value, CubicHermiteSE3Curve *curve)
 
template<>
void extend (const std::vector< Time > &times, const std::vector< ValueType > &values, CubicHermiteSE3Curve *curve, std::vector< Key > *outKeys)
 
template<>
void extend (const std::vector< Time > &times, const std::vector< SE3 > &values, DiscreteSE3Curve *curve, std::vector< Key > *outKeys)
 
template<>
void extend (const std::vector< Time > &times, const std::vector< SE3 > &values, SemiDiscreteSE3Curve *curve, std::vector< Key > *outKeys)
 
template<>
void extend (const std::vector< Time > &times, const std::vector< SE2 > &values, SlerpSE2Curve *curve, std::vector< Key > *outKeys)
 
template<>
void extend (const std::vector< Time > &times, const std::vector< SE3 > &values, SlerpSE3Curve *curve, std::vector< Key > *outKeys)
 

Protected Attributes

int measurementsSinceLastExtend_
 
int minimumMeasurements_
 
Time minSamplingPeriod_
 
Time lastExtend_
 

Detailed Description

Definition at line 14 of file SamplingPolicy.hpp.

Constructor & Destructor Documentation

curves::SamplingPolicy::SamplingPolicy ( )
inline

Definition at line 24 of file SamplingPolicy.hpp.

curves::SamplingPolicy::SamplingPolicy ( int  minimumMeasurements,
Time  minSamplingPeriod 
)
inline

Definition at line 30 of file SamplingPolicy.hpp.

curves::SamplingPolicy::~SamplingPolicy ( )
inline

Definition at line 36 of file SamplingPolicy.hpp.

Member Function Documentation

template<typename CurveType , typename ValueType >
Key curves::SamplingPolicy::defaultExtend ( const Time time,
const ValueType value,
CurveType *  curve 
)
inline

Definition at line 46 of file SamplingPolicy.hpp.

template<>
Key curves::SamplingPolicy::defaultExtend ( const Time time,
const ValueType value,
CubicHermiteSE3Curve curve 
)
inline

Definition at line 291 of file CubicHermiteSE3Curve.hpp.

template<typename CurveType , typename ValueType >
void curves::SamplingPolicy::extend ( const std::vector< Time > &  times,
const std::vector< ValueType > &  values,
CurveType *  curve,
std::vector< Key > *  outKeys = NULL 
)
inline

Definition at line 53 of file SamplingPolicy.hpp.

template<>
void curves::SamplingPolicy::extend ( const std::vector< Time > &  times,
const std::vector< SE2 > &  values,
SlerpSE2Curve curve,
std::vector< Key > *  outKeys 
)
inline

Definition at line 132 of file SlerpSE2Curve.hpp.

template<>
void curves::SamplingPolicy::extend ( const std::vector< Time > &  times,
const std::vector< SE3 > &  values,
SlerpSE3Curve curve,
std::vector< Key > *  outKeys 
)
inline

Definition at line 208 of file SlerpSE3Curve.hpp.

template<>
void curves::SamplingPolicy::extend ( const std::vector< Time > &  times,
const std::vector< SE3 > &  values,
DiscreteSE3Curve curve,
std::vector< Key > *  outKeys 
)
inline

Definition at line 215 of file DiscreteSE3Curve.hpp.

template<>
void curves::SamplingPolicy::extend ( const std::vector< Time > &  times,
const std::vector< SE3 > &  values,
SemiDiscreteSE3Curve curve,
std::vector< Key > *  outKeys 
)
inline

Definition at line 216 of file SemiDiscreteSE3Curve.hpp.

template<>
void curves::SamplingPolicy::extend ( const std::vector< Time > &  times,
const std::vector< ValueType > &  values,
CubicHermiteSE3Curve curve,
std::vector< Key > *  outKeys 
)
inline

Definition at line 370 of file CubicHermiteSE3Curve.hpp.

Time curves::SamplingPolicy::getLastExtendTime ( )
inline

Definition at line 73 of file SamplingPolicy.hpp.

int curves::SamplingPolicy::getMeasurementsSinceLastExtend ( )
inline

Print the value of the coefficient, for debugging and unit tests.

Definition at line 61 of file SamplingPolicy.hpp.

int curves::SamplingPolicy::getMinimumMeasurements ( )
inline

Definition at line 65 of file SamplingPolicy.hpp.

Time curves::SamplingPolicy::getMinSamplingPeriod ( )
inline

Definition at line 69 of file SamplingPolicy.hpp.

void curves::SamplingPolicy::incrementMeasurementsTaken ( int  num)
inline

Definition at line 89 of file SamplingPolicy.hpp.

template<typename CurveType , typename ValueType >
Key curves::SamplingPolicy::interpolationExtend ( const Time time,
const ValueType value,
CurveType *  curve 
)
inline

Definition at line 39 of file SamplingPolicy.hpp.

template<>
Key curves::SamplingPolicy::interpolationExtend ( const Time time,
const ValueType value,
CubicHermiteSE3Curve curve 
)
inline

Definition at line 340 of file CubicHermiteSE3Curve.hpp.

void curves::SamplingPolicy::setLastExtendTime ( Time  time)
inline

Definition at line 77 of file SamplingPolicy.hpp.

void curves::SamplingPolicy::setMeasurementsSinceLastExtend_ ( int  num)
inline

Definition at line 93 of file SamplingPolicy.hpp.

void curves::SamplingPolicy::setMinimumMeasurements ( int  n)
inline

Definition at line 81 of file SamplingPolicy.hpp.

void curves::SamplingPolicy::setMinSamplingPeriod ( Time  minSamplingPeriod)
inline

Definition at line 85 of file SamplingPolicy.hpp.

Member Data Documentation

Time curves::SamplingPolicy::lastExtend_
protected

Definition at line 20 of file SamplingPolicy.hpp.

int curves::SamplingPolicy::measurementsSinceLastExtend_
protected

Definition at line 17 of file SamplingPolicy.hpp.

int curves::SamplingPolicy::minimumMeasurements_
protected

Definition at line 18 of file SamplingPolicy.hpp.

Time curves::SamplingPolicy::minSamplingPeriod_
protected

Definition at line 19 of file SamplingPolicy.hpp.


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