Mix in for adding a time stamp, an optional frame id and an optional sequence id to data types like Pose, RangeScan, etc.
More...
|
| 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...
|
|
template<typename T>
class mira::Stamped< T >
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.
class MyClass
{
public:
void foo();
}
Stamped<MyClass> myStampedObject;
myStampedObject.foo();
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.
Stamped<int> myStampedInt;
myStampedInt = 123;
cout << myStampedInt.value;
cout << (int)myStampedInt;