Fawkes API
Fawkes Development Version
|
Adapter class for PCL point types. More...
#include <>>
Public Member Functions | |
PointCloudStorageAdapter (RefPtr< pcl::PointCloud< PointT > > cloud) | |
Constructor. More... | |
PointCloudStorageAdapter (const PointCloudStorageAdapter< PointT > *p) | |
Copy constructor. More... | |
virtual StorageAdapter * | clone () const |
Clone this storage adapter. More... | |
virtual const char * | get_typename () |
Get typename of storage adapter. More... | |
virtual size_t | point_size () const |
Get size of a point. More... | |
virtual unsigned int | width () const |
Get width of point cloud. More... | |
virtual unsigned int | height () const |
Get height of point cloud. More... | |
virtual size_t | num_points () const |
Get numer of points in point cloud. More... | |
virtual void * | data_ptr () const |
Get pointer on data. More... | |
virtual void | get_time (fawkes::Time &time) const |
Get last capture time. More... | |
![]() | |
virtual | ~StorageAdapter () |
Virtual empty destructor. More... | |
template<typename PointT > | |
bool | is_pointtype () const |
Check if storage adapter is for specified point type. More... | |
template<typename PointT > | |
PointCloudStorageAdapter< PointT > * | as_pointtype () |
Transform to specific PointCloudStorageAdapter. More... | |
template<typename PointT > | |
PointCloudManager::PointCloudStorageAdapter< PointT > * | as_pointtype () |
Public Attributes | |
const RefPtr< pcl::PointCloud< PointT > > | cloud |
The point cloud. More... | |
Adapter class for PCL point types.
The adapter class is required to store point clouds of arbitrary point types.
Definition at line 83 of file pointcloud_manager.h.
|
inline |
Constructor.
cloud | cloud to encapsulate. |
Definition at line 112 of file pointcloud_manager.h.
|
inline |
Copy constructor.
p | storage adapter to copy |
Definition at line 118 of file pointcloud_manager.h.
|
virtual |
Clone this storage adapter.
Implements fawkes::PointCloudManager::StorageAdapter.
Definition at line 221 of file pointcloud_manager.h.
|
inlinevirtual |
Get pointer on data.
Implements fawkes::PointCloudManager::StorageAdapter.
Definition at line 131 of file pointcloud_manager.h.
|
virtual |
Get last capture time.
time | upon return contains last capture time |
Implements fawkes::PointCloudManager::StorageAdapter.
Definition at line 229 of file pointcloud_manager.h.
References fawkes::Time::get_usec(), fawkes::PointCloudTimestamp::sec, fawkes::Time::set_time(), fawkes::PointCloudTimestamp::time, and fawkes::PointCloudTimestamp::timestamp.
|
inlinevirtual |
Get typename of storage adapter.
Implements fawkes::PointCloudManager::StorageAdapter.
Definition at line 126 of file pointcloud_manager.h.
|
inlinevirtual |
Get height of point cloud.
Implements fawkes::PointCloudManager::StorageAdapter.
Definition at line 129 of file pointcloud_manager.h.
|
inlinevirtual |
Get numer of points in point cloud.
Implements fawkes::PointCloudManager::StorageAdapter.
Definition at line 130 of file pointcloud_manager.h.
|
inlinevirtual |
Get size of a point.
Implements fawkes::PointCloudManager::StorageAdapter.
Definition at line 127 of file pointcloud_manager.h.
|
inlinevirtual |
Get width of point cloud.
Implements fawkes::PointCloudManager::StorageAdapter.
Definition at line 128 of file pointcloud_manager.h.
const RefPtr<pcl::PointCloud<PointT> > fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >::cloud |
The point cloud.
Definition at line 122 of file pointcloud_manager.h.
Referenced by fawkes::PointCloudManager::get_pointcloud().