Public Member Functions | Private Member Functions | Private Attributes | List of all members
fastrack::trajectory::Trajectory< S > Class Template Reference

#include <trajectory.h>

Public Member Functions

double Duration () const
 
FirstState () const
 
double FirstTime () const
 
Interpolate (double t) const
 
LastState () const
 
double LastTime () const
 
void ResetFirstTime (double t)
 
size_t Size () const
 
const std::vector< S > & States () const
 
const std::vector< double > & Times () const
 
fastrack_msgs::Trajectory ToRos () const
 
 Trajectory ()
 
 Trajectory (const std::list< Trajectory< S > > &trajs)
 
 Trajectory (const std::vector< S > &states, const std::vector< double > &times)
 
 Trajectory (const fastrack_msgs::Trajectory::ConstPtr &msg)
 
void Visualize (const ros::Publisher &pub, const std::string &frame) const
 
 ~Trajectory ()
 

Private Member Functions

std_msgs::ColorRGBA Colormap (double t) const
 

Private Attributes

bool configuration_
 
std::vector< S > states_
 
std::vector< double > times_
 

Detailed Description

template<typename S>
class fastrack::trajectory::Trajectory< S >

Definition at line 61 of file trajectory.h.

Constructor & Destructor Documentation

template<typename S >
fastrack::trajectory::Trajectory< S >::~Trajectory ( )
inline

Definition at line 63 of file trajectory.h.

template<typename S >
fastrack::trajectory::Trajectory< S >::Trajectory ( )
inlineexplicit

Definition at line 64 of file trajectory.h.

template<typename S >
fastrack::trajectory::Trajectory< S >::Trajectory ( const std::list< Trajectory< S > > &  trajs)
explicit

Definition at line 124 of file trajectory.h.

template<typename S >
fastrack::trajectory::Trajectory< S >::Trajectory ( const std::vector< S > &  states,
const std::vector< double > &  times 
)
explicit

Definition at line 149 of file trajectory.h.

template<typename S >
fastrack::trajectory::Trajectory< S >::Trajectory ( const fastrack_msgs::Trajectory< S >::ConstPtr &  msg)
explicit

Definition at line 178 of file trajectory.h.

Member Function Documentation

template<typename S >
std_msgs::ColorRGBA fastrack::trajectory::Trajectory< S >::Colormap ( double  t) const
private

Definition at line 326 of file trajectory.h.

template<typename S >
double fastrack::trajectory::Trajectory< S >::Duration ( ) const
inline

Definition at line 82 of file trajectory.h.

template<typename S >
S fastrack::trajectory::Trajectory< S >::FirstState ( ) const
inline

Definition at line 85 of file trajectory.h.

template<typename S >
double fastrack::trajectory::Trajectory< S >::FirstTime ( ) const
inline

Definition at line 87 of file trajectory.h.

template<typename S >
S fastrack::trajectory::Trajectory< S >::Interpolate ( double  t) const

Definition at line 203 of file trajectory.h.

template<typename S >
S fastrack::trajectory::Trajectory< S >::LastState ( ) const
inline

Definition at line 86 of file trajectory.h.

template<typename S >
double fastrack::trajectory::Trajectory< S >::LastTime ( ) const
inline

Definition at line 88 of file trajectory.h.

template<typename S >
void fastrack::trajectory::Trajectory< S >::ResetFirstTime ( double  t)

Definition at line 247 of file trajectory.h.

template<typename S >
size_t fastrack::trajectory::Trajectory< S >::Size ( ) const
inline

Definition at line 79 of file trajectory.h.

template<typename S >
const std::vector<S>& fastrack::trajectory::Trajectory< S >::States ( ) const
inline

Definition at line 91 of file trajectory.h.

template<typename S >
const std::vector<double>& fastrack::trajectory::Trajectory< S >::Times ( ) const
inline

Definition at line 92 of file trajectory.h.

template<typename S >
fastrack_msgs::Trajectory fastrack::trajectory::Trajectory< S >::ToRos ( ) const

Definition at line 260 of file trajectory.h.

template<typename S >
void fastrack::trajectory::Trajectory< S >::Visualize ( const ros::Publisher &  pub,
const std::string &  frame 
) const

Definition at line 274 of file trajectory.h.

Member Data Documentation

template<typename S >
bool fastrack::trajectory::Trajectory< S >::configuration_
private

Definition at line 115 of file trajectory.h.

template<typename S >
std::vector<S> fastrack::trajectory::Trajectory< S >::states_
private

Definition at line 111 of file trajectory.h.

template<typename S >
std::vector<double> fastrack::trajectory::Trajectory< S >::times_
private

Definition at line 112 of file trajectory.h.


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


fastrack
Author(s): David Fridovich-Keil
autogenerated on Mon Aug 3 2020 21:28:37