Fawkes API
Fawkes Development Version
|
Adapter base class. More...
#include <>>
Public Member Functions | |
virtual | ~StorageAdapter () |
Virtual empty destructor. | |
template<typename PointT > | |
bool | is_pointtype () const |
Check if storage adapter is for specified point type. | |
template<typename PointT > | |
PointCloudStorageAdapter < PointT > * | as_pointtype () |
Transform to specific PointCloudStorageAdapter. | |
virtual const char * | get_typename ()=0 |
Get typename of storage adapter. | |
virtual StorageAdapter * | clone () const =0 |
Clone this storage adapter. | |
virtual size_t | point_size () const =0 |
Get size of a point. | |
virtual unsigned int | width () const =0 |
Get width of point cloud. | |
virtual unsigned int | height () const =0 |
Get height of point cloud. | |
virtual size_t | num_points () const =0 |
Get numer of points in point cloud. | |
virtual void * | data_ptr () const =0 |
Get pointer on data. | |
virtual void | get_time (fawkes::Time &time) const =0 |
Get last capture time. |
Adapter base class.
The adapter base class is required to store point clouds of arbitrary point types.
Definition at line 85 of file pointcloud_manager.h.
|
virtual |
Virtual empty destructor.
Definition at line 101 of file pointcloud_manager.cpp.
PointCloudManager::PointCloudStorageAdapter< PointT > * fawkes::PointCloudManager::StorageAdapter::as_pointtype | ( | ) |
Transform to specific PointCloudStorageAdapter.
Exception | thrown if storage adapter is not of requested point type or does not exist |
Definition at line 156 of file pointcloud_manager.h.
|
pure virtual |
Clone this storage adapter.
Implemented in fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >.
|
pure virtual |
Get pointer on data.
Implemented in fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >.
Referenced by RosPointCloudAdapter::get_data().
|
pure virtual |
Get last capture time.
time | upon return contains last capture time |
Implemented in fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >.
Referenced by RosPointCloudAdapter::get_data().
|
pure virtual |
Get typename of storage adapter.
Implemented in fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >.
|
pure virtual |
Get height of point cloud.
Implemented in fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >.
Referenced by RosPointCloudAdapter::get_data().
bool fawkes::PointCloudManager::StorageAdapter::is_pointtype | ( | ) | const |
Check if storage adapter is for specified point type.
Definition at line 146 of file pointcloud_manager.h.
|
pure virtual |
Get numer of points in point cloud.
Implemented in fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >.
Referenced by RosPointCloudAdapter::get_data().
|
pure virtual |
Get size of a point.
Implemented in fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >.
Referenced by RosPointCloudAdapter::get_data().
|
pure virtual |
Get width of point cloud.
Implemented in fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >.
Referenced by RosPointCloudAdapter::get_data().