A trajectory is a function which takes a time as its input and return a value. More...
#include <discretized-trajectory.hh>
Public Types | |
typedef T | element_t |
Trajectory element. | |
Public Member Functions | |
TimeDuration | computeLength () const |
Compute the trajectory length. | |
data_t & | data () |
Trajectory data getter. | |
const data_t & | data () const |
Trajectory data getter (const). | |
DiscretizedTrajectory< T > & | operator= (const DiscretizedTrajectory< T > &) |
Assignment operator. | |
typedef | WALK_INTERFACES_EIGEN_STL_VECTOR (T) data_t |
Vector of trajectory elements. | |
Constructors and destructor. | |
DiscretizedTrajectory () | |
Default constructor. | |
DiscretizedTrajectory (const DiscretizedTrajectory< T > &) | |
Copy constructor. | |
~DiscretizedTrajectory () | |
Destructor. | |
Public Attributes | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | |
Private Attributes | |
data_t | data_ |
Internal data. |
A trajectory is a function which takes a time as its input and return a value.
This class is used to store reference trajectories. It is templated by the trajectory output type. E.g. , , ...
It relies on discretized data to store the values at different point of time. No data interpolation is realized in this class.
T | Trajectory output type. |
Definition at line 23 of file discretized-trajectory.hh.
typedef T walk::DiscretizedTrajectory< T >::element_t |
Trajectory element.
Definition at line 27 of file discretized-trajectory.hh.
walk::DiscretizedTrajectory< T >::DiscretizedTrajectory | ( | ) | [explicit] |
Default constructor.
walk::DiscretizedTrajectory< T >::DiscretizedTrajectory | ( | const DiscretizedTrajectory< T > & | ) | [explicit] |
Copy constructor.
walk::DiscretizedTrajectory< T >::~DiscretizedTrajectory | ( | ) |
Destructor.
TimeDuration walk::DiscretizedTrajectory< T >::computeLength | ( | ) | const |
Compute the trajectory length.
Algorithm complexity: linear in the number of trajectory elements.
data_t& walk::DiscretizedTrajectory< T >::data | ( | ) |
Trajectory data getter.
const data_t& walk::DiscretizedTrajectory< T >::data | ( | ) | const |
Trajectory data getter (const).
DiscretizedTrajectory<T>& walk::DiscretizedTrajectory< T >::operator= | ( | const DiscretizedTrajectory< T > & | ) |
Assignment operator.
typedef walk::DiscretizedTrajectory< T >::WALK_INTERFACES_EIGEN_STL_VECTOR | ( | T | ) |
Vector of trajectory elements.
data_t walk::DiscretizedTrajectory< T >::data_ [private] |
Internal data.
Definition at line 60 of file discretized-trajectory.hh.
walk::DiscretizedTrajectory< T >::EIGEN_MAKE_ALIGNED_OPERATOR_NEW |
Definition at line 62 of file discretized-trajectory.hh.