Auxiliary class for the frame-to-frame ICP class. More...
#include <feature_history.h>
Public Member Functions | |
void | add (const PointCloudFeature &cloud) |
Adds a feature cloud to the buffer. | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | FeatureHistory () |
default constructor | |
void | getAll (PointCloudFeature &cloud) |
Get all the buffer point clouds as a single aggregated point cloud. | |
int | getSize () const |
Get the current number of items in the buffer. | |
bool | isEmpty () const |
Checks if the buffer is mepty. | |
void | reset () |
Clears the buffer. | |
void | setCapacity (unsigned int capacity) |
Sets the capacity of the buffer. | |
Private Types | |
typedef Eigen::aligned_allocator < PointCloudFeature > | PointCloudFeatureAllocator |
Private Attributes | |
unsigned int | capacity_ |
buffer capacity | |
std::vector< PointCloudFeature, PointCloudFeatureAllocator > | history_ |
the buffer of point clouds | |
unsigned int | index_ |
the current index in the buffer |
Auxiliary class for the frame-to-frame ICP class.
The class implements a ring buffer of PointClouds
Definition at line 37 of file feature_history.h.
typedef Eigen::aligned_allocator<PointCloudFeature> ccny_rgbd::FeatureHistory::PointCloudFeatureAllocator [private] |
Definition at line 39 of file feature_history.h.
default constructor
Definition at line 28 of file feature_history.cpp.
void ccny_rgbd::FeatureHistory::add | ( | const PointCloudFeature & | cloud | ) |
Adds a feature cloud to the buffer.
cloud | the cloud to be added |
Definition at line 35 of file feature_history.cpp.
void ccny_rgbd::FeatureHistory::getAll | ( | PointCloudFeature & | cloud | ) |
Get all the buffer point clouds as a single aggregated point cloud.
cloud | Reference to the PointCloud which will hold the aggregated history |
Definition at line 53 of file feature_history.cpp.
int ccny_rgbd::FeatureHistory::getSize | ( | ) | const [inline] |
Get the current number of items in the buffer.
Definition at line 75 of file feature_history.h.
bool ccny_rgbd::FeatureHistory::isEmpty | ( | ) | const [inline] |
Checks if the buffer is mepty.
true | Buffer is empty |
false | Buffer is not empty |
Definition at line 63 of file feature_history.h.
void ccny_rgbd::FeatureHistory::reset | ( | ) |
Clears the buffer.
Definition at line 59 of file feature_history.cpp.
void ccny_rgbd::FeatureHistory::setCapacity | ( | unsigned int | capacity | ) | [inline] |
Sets the capacity of the buffer.
capacity | the desired capacity |
Definition at line 69 of file feature_history.h.
unsigned int ccny_rgbd::FeatureHistory::capacity_ [private] |
buffer capacity
Definition at line 86 of file feature_history.h.
std::vector<PointCloudFeature, PointCloudFeatureAllocator> ccny_rgbd::FeatureHistory::history_ [private] |
the buffer of point clouds
Definition at line 89 of file feature_history.h.
unsigned int ccny_rgbd::FeatureHistory::index_ [private] |
the current index in the buffer
Definition at line 85 of file feature_history.h.