gramods
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
gramods::gmMisc::EFHOAW::Impl Struct Reference
Collaboration diagram for gramods::gmMisc::EFHOAW::Impl:
Collaboration graph
[legend]

Public Types

typedef Eigen::Matrix< double, 3, Eigen::Dynamic > polco
 
typedef std::deque< double > time_list_t
 Type of list containing time values.
 
typedef std::deque< Eigen::Vector3d > position_list_t
 Type of list containing position values.
 
typedef std::pair< time_list_t, position_list_ttime_position_t
 Type combining list of time values with list of position values.
 

Public Member Functions

double getLastSampleTime (size_t id)
 
void addSample (size_t id, Eigen::Vector3d position, double time, bool replace)
 
polco estimateCoefficients (size_t id, double error, size_t order=2, size_t *samples=nullptr)
 
polco findBestFit (size_t id, size_t sample_count, size_t order) const
 
Eigen::MatrixXd getPosVector (size_t id, size_t sample_count, size_t dim) const
 
Eigen::Vector3d getPolynomialPosition (int id, double t) const
 
Eigen::Vector3d getPolynomialVelocity (int id, double t) const
 
void cleanup (double time)
 

Static Public Member Functions

static Eigen::Vector3d getPolynomialPosition (polco coefficients, double t)
 
static Eigen::Vector3d getPolynomialVelocity (polco coefficients, double t)
 

Public Attributes

size_t history_length = std::numeric_limits<size_t>::max()
 The number of samples that are saved.
 
double history_duration = std::numeric_limits<double>::max()
 How old samples should be saved.
 
std::map< size_t, time_position_thistory
 History of points, per id.
 
std::map< size_t, polco > coefficients
 Cache of polynomial coefficients.
 

Member Typedef Documentation

◆ position_list_t

typedef std::deque<Eigen::Vector3d> gramods::gmMisc::EFHOAW::Impl::position_list_t

Type of list containing position values.

◆ time_list_t

typedef std::deque<double> gramods::gmMisc::EFHOAW::Impl::time_list_t

Type of list containing time values.

◆ time_position_t

Type combining list of time values with list of position values.

Member Data Documentation

◆ coefficients

std::map<size_t, polco> gramods::gmMisc::EFHOAW::Impl::coefficients

Cache of polynomial coefficients.

◆ history

std::map<size_t, time_position_t> gramods::gmMisc::EFHOAW::Impl::history

History of points, per id.

◆ history_duration

double gramods::gmMisc::EFHOAW::Impl::history_duration = std::numeric_limits<double>::max()

How old samples should be saved.

◆ history_length

size_t gramods::gmMisc::EFHOAW::Impl::history_length = std::numeric_limits<size_t>::max()

The number of samples that are saved.


The documentation for this struct was generated from the following file: