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

List of all members.

Public Member Functions

 PointCloudStorageAdapter (RefPtr< pcl::PointCloud< PointT > > cloud)
 Constructor.
 PointCloudStorageAdapter (const PointCloudStorageAdapter< PointT > *p)
 Copy constructor.
virtual StorageAdapterclone () const
 Clone this storage adapter.
virtual const char * get_typename ()
 Get typename of storage adapter.
virtual size_t point_size () const
 Get size of a point.
virtual unsigned int width () const
 Get width of point cloud.
virtual unsigned int height () const
 Get height of point cloud.
virtual size_t num_points () const
 Get numer of points in point cloud.
virtual void * data_ptr () const
 Get pointer on data.
virtual void get_time (fawkes::Time &time) const
 Get last capture time.
- Public Member Functions inherited from fawkes::PointCloudManager::StorageAdapter
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.

Public Attributes

const RefPtr< pcl::PointCloud
< PointT > > 
cloud
 The point cloud.

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 106 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: