MIRA
|
Mix in for adding a time stamp, an optional frame id and an optional sequence id to data types like Pose, RangeScan, etc. More...
#include <utils/Stamped.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
Stamped () | |
Default constructor, that does not initialize time or frame id. More... | |
Stamped (const T &iData, const Time &iTimestamp, uint32 iSequenceID=0) | |
Constructs the Stamped data from its time stamp and the actual data. More... | |
Stamped (T &&iData, const Time &iTimestamp, uint32 iSequenceID=0) | |
Same as above, for rvalue reference (move semantics) More... | |
Stamped (const T &iData, const Time &iTimestamp, const std::string &iFrameID, uint32 iSequenceID=0) | |
Constructs the Stamped data from its time stamp, the frame id it belongs to and the actual data. More... | |
Stamped (T &&iData, const Time &iTimestamp, const std::string &iFrameID, uint32 iSequenceID=0) | |
Same as above, for rvalue reference (move semantics) More... | |
template<typename Reflector > | |
void | reflect (Reflector &r) |
T & | value () |
Returns a read-write reference to the underlying data. More... | |
const T & | value () const |
Returns a read-only reference to the underlying data. More... | |
T & | internalValueRep () |
Returns a read-write reference to the underlying data representation. More... | |
const T & | internalValueRep () const |
Returns a read-only reference to the underlying data representation. More... | |
Public Attributes | |
Time | timestamp |
The time stamp when the data was obtained. More... | |
std::string | frameID |
The unique id of the transform frame that this data is assigned to (if any, otherwise empty) More... | |
uint32 | sequenceID |
A user defined sequence ID. More... | |
Mix in for adding a time stamp, an optional frame id and an optional sequence id to data types like Pose, RangeScan, etc.
The data is stamped in a temporal and spatial way. The time stamp indicates the moment in time the data was created, measured or computed. The frame id specifies the transformation frame, the data belongs to. The sequence id can be used to track the origin or creator of the data.
This class also is specialized for primitive data types. If Stamped is used on primitive types like int, float, etc. it behaves like the StampedPrimitive class.
typedef T value_type |
|
inline |
Default constructor, that does not initialize time or frame id.
Sets sequence id to 0.
Constructs the Stamped data from its time stamp and the actual data.
The frame id will be empty, hence the data is not assigned to any transformation frame.
Same as above, for rvalue reference (move semantics)
|
inline |
Constructs the Stamped data from its time stamp, the frame id it belongs to and the actual data.
|
inline |
Same as above, for rvalue reference (move semantics)
|
inline |
|
inline |
Returns a read-write reference to the underlying data.
|
inline |
Returns a read-only reference to the underlying data.
|
inline |
Returns a read-write reference to the underlying data representation.
|
inline |
Returns a read-only reference to the underlying data representation.
|
inherited |
The time stamp when the data was obtained.
|
inherited |
The unique id of the transform frame that this data is assigned to (if any, otherwise empty)
|
inherited |
A user defined sequence ID.