|
Fawkes API
Fawkes Development Version
|
This class is used to save old centroids in order to check for reappearance. More...
#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 65 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 73 of file tabletop_objects_thread.h.
|
inline |
Copy constructor.
| other | The other OldCentroid |
Definition at line 80 of file tabletop_objects_thread.h.
|
inlinevirtual |
Destructor.
Definition at line 86 of file tabletop_objects_thread.h.
|
inline |
Get the age of the centroid.
Definition at line 125 of file tabletop_objects_thread.h.
References age_.
Referenced by operator=().
|
inline |
Get the position of the centroid.
Definition at line 116 of file tabletop_objects_thread.h.
References centroid_.
Referenced by operator=().
|
inline |
Get the ID of the centroid.
Definition at line 108 of file tabletop_objects_thread.h.
References id_.
Referenced by operator=().
|
inline |
Increment the age of the centroid.
Definition at line 132 of file tabletop_objects_thread.h.
References age_.
|
inline |
Assignment operator.
| other | The other OldCentroid |
Definition at line 94 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 141 of file tabletop_objects_thread.h.
Referenced by get_age(), increment_age(), and operator=().
|
protected |
The position of centroid.
Definition at line 143 of file tabletop_objects_thread.h.
Referenced by get_centroid(), and operator=().
|
protected |
The ID of the centroid.
Definition at line 139 of file tabletop_objects_thread.h.
Referenced by get_id(), and operator=().