Fawkes API
Fawkes Development Version
|
#include "tabletop_objects_thread.h"
Public Member Functions | |
OldCentroid (const unsigned int &id, const Eigen::Vector4f ¢roid) | |
Constructor. More... | |
OldCentroid (const OldCentroid &other) | |
Copy constructor. More... | |
virtual | ~OldCentroid () |
Destructor. More... | |
OldCentroid & | operator= (const OldCentroid &other) |
Assignment operator. More... | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW unsigned int | get_id () const |
Get the ID of the centroid. More... | |
const Eigen::Vector4f & | get_centroid () const |
Get the position of the centroid. More... | |
unsigned int | get_age () const |
Get the age of the centroid. More... | |
void | increment_age () |
Increment the age of the centroid. More... | |
Protected Attributes | |
unsigned int | id_ |
The ID of the centroid. More... | |
unsigned int | age_ |
The number of loops the centroid has been invisible for. More... | |
Eigen::Vector4f | centroid_ |
The position of centroid. More... | |
This class is used to save old centroids in order to check for reappearance.
Definition at line 64 of file tabletop_objects_thread.h.
|
inline |
Constructor.
id | The ID which the centroid was assigned to |
centroid | The position of the centroid |
Definition at line 72 of file tabletop_objects_thread.h.
|
inline |
Copy constructor.
other | The other OldCentroid |
Definition at line 79 of file tabletop_objects_thread.h.
|
inlinevirtual |
Destructor.
Definition at line 85 of file tabletop_objects_thread.h.
|
inline |
Get the age of the centroid.
Definition at line 124 of file tabletop_objects_thread.h.
References age_.
Referenced by operator=().
|
inline |
Get the position of the centroid.
Definition at line 115 of file tabletop_objects_thread.h.
References centroid_.
Referenced by operator=().
|
inline |
Get the ID of the centroid.
Definition at line 107 of file tabletop_objects_thread.h.
References id_.
Referenced by operator=().
|
inline |
Increment the age of the centroid.
Definition at line 131 of file tabletop_objects_thread.h.
References age_.
|
inline |
Assignment operator.
other | The other OldCentroid |
Definition at line 93 of file tabletop_objects_thread.h.
References age_, centroid_, get_age(), get_centroid(), get_id(), and id_.
|
protected |
The number of loops the centroid has been invisible for.
Definition at line 140 of file tabletop_objects_thread.h.
Referenced by get_age(), increment_age(), and operator=().
|
protected |
The position of centroid.
Definition at line 142 of file tabletop_objects_thread.h.
Referenced by get_centroid(), and operator=().
|
protected |
The ID of the centroid.
Definition at line 138 of file tabletop_objects_thread.h.
Referenced by get_id(), and operator=().