Fawkes API  Fawkes Development Version
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
fawkes::PointCloudManager::PointCloudStorageAdapter< PointT > Class Template Reference

Adapter class for PCL point types. More...

#include <>>

Inheritance diagram for fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >:

Public Member Functions

 PointCloudStorageAdapter (RefPtr< pcl::PointCloud< PointT > > cloud)
 Constructor. More...
 
 PointCloudStorageAdapter (const PointCloudStorageAdapter< PointT > *p)
 Copy constructor. More...
 
virtual StorageAdapterclone () 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...
 
- Public Member Functions inherited from fawkes::PointCloudManager::StorageAdapter
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...
 

Detailed Description

template<typename PointT>
class fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >

Adapter class for PCL point types.

The adapter class is required to store point clouds of arbitrary point types.

Author
Tim Niemueller

Definition at line 83 of file pointcloud_manager.h.

Constructor & Destructor Documentation

template<typename PointT>
fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >::PointCloudStorageAdapter ( RefPtr< pcl::PointCloud< PointT > >  cloud)
inline

Constructor.

Parameters
cloudcloud to encapsulate.

Definition at line 112 of file pointcloud_manager.h.

template<typename PointT>
fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >::PointCloudStorageAdapter ( const PointCloudStorageAdapter< PointT > *  p)
inline

Copy constructor.

Parameters
pstorage adapter to copy

Definition at line 118 of file pointcloud_manager.h.

Member Function Documentation

template<typename PointT >
PointCloudManager::StorageAdapter * fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >::clone ( ) const
virtual

Clone this storage adapter.

Returns
cloned copy

Implements fawkes::PointCloudManager::StorageAdapter.

Definition at line 221 of file pointcloud_manager.h.

template<typename PointT>
virtual void* fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >::data_ptr ( ) const
inlinevirtual

Get pointer on data.

Returns
pointer on data

Implements fawkes::PointCloudManager::StorageAdapter.

Definition at line 131 of file pointcloud_manager.h.

template<typename PointT >
void fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >::get_time ( fawkes::Time time) const
virtual

Get last capture time.

Parameters
timeupon 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.

template<typename PointT>
virtual const char* fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >::get_typename ( )
inlinevirtual

Get typename of storage adapter.

Returns
type name

Implements fawkes::PointCloudManager::StorageAdapter.

Definition at line 126 of file pointcloud_manager.h.

template<typename PointT>
virtual unsigned int fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >::height ( ) const
inlinevirtual

Get height of point cloud.

Returns
height of point cloud

Implements fawkes::PointCloudManager::StorageAdapter.

Definition at line 129 of file pointcloud_manager.h.

template<typename PointT>
virtual size_t fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >::num_points ( ) const
inlinevirtual

Get numer of points in point cloud.

Returns
number of points

Implements fawkes::PointCloudManager::StorageAdapter.

Definition at line 130 of file pointcloud_manager.h.

template<typename PointT>
virtual size_t fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >::point_size ( ) const
inlinevirtual

Get size of a point.

Returns
size in bytes of a single point

Implements fawkes::PointCloudManager::StorageAdapter.

Definition at line 127 of file pointcloud_manager.h.

template<typename PointT>
virtual unsigned int fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >::width ( ) const
inlinevirtual

Get width of point cloud.

Returns
width of point cloud

Implements fawkes::PointCloudManager::StorageAdapter.

Definition at line 128 of file pointcloud_manager.h.

Member Data Documentation

template<typename PointT>
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().


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