Fawkes API  Fawkes Development Version
fawkes::tf::Stamped< T > Class Template Reference

Wrapper class to add time stamp and frame ID to base types. More...

#include <types.h>

Inheritance diagram for fawkes::tf::Stamped< T >:

Public Member Functions

 Stamped ()
 Default constructor. More...
 
 Stamped (const T &input, const fawkes::Time &timestamp, const std::string &frame_id)
 Constructor. More...
 
void set_data (const T &input)
 Set the data element. More...
 

Public Attributes

fawkes::Time stamp
 The timestamp associated with this data. More...
 
std::string frame_id
 The frame_id associated this data. More...
 

Detailed Description

template<typename T>
class fawkes::tf::Stamped< T >

Wrapper class to add time stamp and frame ID to base types.

Definition at line 139 of file types.h.

Constructor & Destructor Documentation

◆ Stamped() [1/2]

template<typename T >
fawkes::tf::Stamped< T >::Stamped ( )
inline

Default constructor.

Default constructor used only for preallocation.

Definition at line 148 of file types.h.

◆ Stamped() [2/2]

template<typename T >
fawkes::tf::Stamped< T >::Stamped ( const T &  input,
const fawkes::Time timestamp,
const std::string &  frame_id 
)
inline

Constructor.

Parameters
inputtransform
timestamptimestamp for this transform
frame_idframe ID the transform is relative to

Definition at line 155 of file types.h.

Member Function Documentation

◆ set_data()

template<typename T >
void fawkes::tf::Stamped< T >::set_data ( const T &  input)
inline

Set the data element.

Parameters
inputdata to set this instance to

Definition at line 162 of file types.h.

Referenced by fawkes::tf::Transformer::lookup_transform().

Member Data Documentation

◆ frame_id

template<typename T >
std::string fawkes::tf::Stamped< T >::frame_id

The frame_id associated this data.

Definition at line 143 of file types.h.

Referenced by fawkes::tf::Transformer::lookup_transform(), TabletopVisualizationThread::loop(), and RosMoveBaseThread::loop().

◆ stamp

template<typename T >
fawkes::Time fawkes::tf::Stamped< T >::stamp

The timestamp associated with this data.

Definition at line 142 of file types.h.

Referenced by fawkes::tf::Transformer::lookup_transform().


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