All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Private Types | Private Attributes
ccny_rgbd::FeatureHistory Class Reference

Auxiliary class for the frame-to-frame ICP class. More...

#include <feature_history.h>

List of all members.

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

Detailed Description

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.


Member Typedef Documentation

typedef Eigen::aligned_allocator<PointCloudFeature> ccny_rgbd::FeatureHistory::PointCloudFeatureAllocator [private]

Definition at line 39 of file feature_history.h.


Constructor & Destructor Documentation

default constructor

Definition at line 28 of file feature_history.cpp.


Member Function Documentation

Adds a feature cloud to the buffer.

Parameters:
cloudthe cloud to be added

Definition at line 35 of file feature_history.cpp.

Get all the buffer point clouds as a single aggregated point cloud.

Parameters:
cloudReference 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.

Returns:
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.

Return values:
trueBuffer is empty
falseBuffer is not empty

Definition at line 63 of file feature_history.h.

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.

Parameters:
capacitythe desired capacity

Definition at line 69 of file feature_history.h.


Member Data Documentation

unsigned int ccny_rgbd::FeatureHistory::capacity_ [private]

buffer capacity

Definition at line 86 of file feature_history.h.

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends


ccny_rgbd
Author(s): Ivan Dryanovski
autogenerated on Fri Apr 12 2013 20:38:48