Trajectory::TrajData Struct Reference

#include <RobotAPI/libraries/core/Trajectory.h>

Public Member Functions

const std::vector< DoubleSeqPtr > & getData () const
 
double getDeriv (size_t dim, size_t derivation) const
 
double getPosition (size_t dim) const
 
std::vector< double > getPositions () const
 
template<class T = double>
std::vector< TgetPositionsAs () const
 
template<class T >
std::map< std::string, TgetPositionsAsNameValueMap () const
 
Eigen::VectorXd getPositionsAsVectorXd () const
 
Eigen::VectorXf getPositionsAsVectorXf () const
 
double getTimestamp () const
 
TrajDataoperator= (const TrajData &s)
 
DoubleSeqPtr operator[] (size_t dim) const
 
 TrajData ()
 
 TrajData (Trajectory *traj)
 
template<class T >
void writePositionsToNameValueMap (std::map< std::string, T > &map) const
 

Public Attributes

std::vector< DoubleSeqPtrdata
 
double timestamp
 

Protected Attributes

Trajectorytrajectory = nullptr
 

Friends

std::ostream & operator<< (std::ostream &stream, const TrajData &rhs)
 

Detailed Description

Definition at line 85 of file Trajectory.h.

Constructor & Destructor Documentation

◆ TrajData() [1/2]

TrajData ( )
inline

Definition at line 87 of file Trajectory.h.

◆ TrajData() [2/2]

TrajData ( Trajectory traj)

Definition at line 1956 of file Trajectory.cpp.

Member Function Documentation

◆ getData()

const std::vector< DoubleSeqPtr > & getData ( ) const

Definition at line 2015 of file Trajectory.cpp.

+ Here is the call graph for this function:

◆ getDeriv()

double getDeriv ( size_t  dim,
size_t  derivation 
) const

Definition at line 2006 of file Trajectory.cpp.

+ Here is the call graph for this function:

◆ getPosition()

double getPosition ( size_t  dim) const

Definition at line 1971 of file Trajectory.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPositions()

std::vector<double> getPositions ( ) const
inline

Definition at line 123 of file Trajectory.h.

◆ getPositionsAs()

std::vector<T> getPositionsAs ( ) const
inline

Definition at line 108 of file Trajectory.h.

+ Here is the call graph for this function:

◆ getPositionsAsNameValueMap()

std::map<std::string, T> getPositionsAsNameValueMap ( ) const
inline

Definition at line 145 of file Trajectory.h.

+ Here is the call graph for this function:

◆ getPositionsAsVectorXd()

Eigen::VectorXd getPositionsAsVectorXd ( ) const

Definition at line 1991 of file Trajectory.cpp.

◆ getPositionsAsVectorXf()

Eigen::VectorXf getPositionsAsVectorXf ( ) const

Definition at line 1976 of file Trajectory.cpp.

◆ getTimestamp()

double getTimestamp ( ) const

Definition at line 1966 of file Trajectory.cpp.

◆ operator=()

TrajData& operator= ( const TrajData s)
inline

Definition at line 90 of file Trajectory.h.

+ Here is the call graph for this function:

◆ operator[]()

DoubleSeqPtr operator[] ( size_t  dim) const

Definition at line 1961 of file Trajectory.cpp.

+ Here is the call graph for this function:

◆ writePositionsToNameValueMap()

void writePositionsToNameValueMap ( std::map< std::string, T > &  map) const
inline

Definition at line 132 of file Trajectory.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  stream,
const TrajData rhs 
)
friend

Definition at line 156 of file Trajectory.h.

Member Data Documentation

◆ data

std::vector< DoubleSeqPtr > data
mutable

Definition at line 171 of file Trajectory.h.

◆ timestamp

double timestamp

Definition at line 170 of file Trajectory.h.

◆ trajectory

Trajectory* trajectory = nullptr
protected

Definition at line 173 of file Trajectory.h.


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