Fawkes API  Fawkes Development Version
OldCentroid Class Reference

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 &centroid)
 Constructor. More...
 
 OldCentroid (const OldCentroid &other)
 Copy constructor. More...
 
EIGEN_MAKE_ALIGNED_OPERATOR_NEW unsigned int getId () const
 get the ID of the centroid More...
 
const Eigen::Vector4f & getCentroid () const
 get the position of the centroid More...
 
unsigned int getAge () const
 get the age of the centroid More...
 
void 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...
 

Detailed Description

This class is used to save old centroids in order to check for reappearance.

Definition at line 69 of file tabletop_objects_thread.h.

Constructor & Destructor Documentation

◆ OldCentroid() [1/2]

OldCentroid::OldCentroid ( const unsigned int &  id,
const Eigen::Vector4f &  centroid 
)
inline

Constructor.

Parameters
idThe ID which the centroid was assigned to
centroidThe position of the centroid

Definition at line 76 of file tabletop_objects_thread.h.

◆ OldCentroid() [2/2]

OldCentroid::OldCentroid ( const OldCentroid other)
inline

Copy constructor.

Parameters
otherThe other OldCentroid

Definition at line 80 of file tabletop_objects_thread.h.

Member Function Documentation

◆ age()

void OldCentroid::age ( )
inline

increment the age of the centroid

Definition at line 96 of file tabletop_objects_thread.h.

◆ getAge()

unsigned int OldCentroid::getAge ( ) const
inline

get the age of the centroid

Returns
the number of loops the centroids has been invisible

Definition at line 94 of file tabletop_objects_thread.h.

◆ getCentroid()

const Eigen::Vector4f& OldCentroid::getCentroid ( ) const
inline

get the position of the centroid

Returns
a reference to the centroid

Definition at line 90 of file tabletop_objects_thread.h.

◆ getId()

EIGEN_MAKE_ALIGNED_OPERATOR_NEW unsigned int OldCentroid::getId ( ) const
inline

get the ID of the centroid

Returns
the ID of the centroid

Definition at line 87 of file tabletop_objects_thread.h.

Member Data Documentation

◆ age_

unsigned int OldCentroid::age_
protected

The number of loops the centroid has been invisible for.

Definition at line 102 of file tabletop_objects_thread.h.

◆ centroid_

Eigen::Vector4f OldCentroid::centroid_
protected

The position of centroid.

Definition at line 104 of file tabletop_objects_thread.h.

◆ id_

unsigned int OldCentroid::id_
protected

The ID of the centroid.

Definition at line 100 of file tabletop_objects_thread.h.


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