Fawkes API  Fawkes Development Version
fawkes::PointCloudManager::PointCloudStorageAdapter Class Reference

Adapter class for PCL point types. More...

#include <>>

Inheritance diagram for fawkes::PointCloudManager::PointCloudStorageAdapter:

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 Attributes

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

Detailed Description

Adapter class for PCL point types.

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

Author:
Tim Niemueller

Constructor & Destructor Documentation

fawkes::PointCloudManager::PointCloudStorageAdapter::PointCloudStorageAdapter ( RefPtr< pcl::PointCloud< PointT > >  cloud) [inline]

Constructor.

Parameters:
cloudcloud to encapsulate.

Definition at line 112 of file pointcloud_manager.h.

fawkes::PointCloudManager::PointCloudStorageAdapter::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

PointCloudManager::StorageAdapter * fawkes::PointCloudManager::PointCloudStorageAdapter::clone ( ) const [virtual]

Clone this storage adapter.

Returns:
cloned copy

Implements fawkes::PointCloudManager::StorageAdapter.

Definition at line 221 of file pointcloud_manager.h.

virtual void* fawkes::PointCloudManager::PointCloudStorageAdapter::data_ptr ( ) const [inline, virtual]

Get pointer on data.

Returns:
pointer on data

Implements fawkes::PointCloudManager::StorageAdapter.

Definition at line 131 of file pointcloud_manager.h.

void fawkes::PointCloudManager::PointCloudStorageAdapter::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::set_time(), fawkes::PointCloudTimestamp::timestamp, fawkes::PointCloudTimestamp::time, fawkes::PointCloudTimestamp::sec, and fawkes::Time::get_usec().

virtual const char* fawkes::PointCloudManager::PointCloudStorageAdapter::get_typename ( ) [inline, virtual]

Get typename of storage adapter.

Returns:
type name

Implements fawkes::PointCloudManager::StorageAdapter.

Definition at line 126 of file pointcloud_manager.h.

virtual unsigned int fawkes::PointCloudManager::PointCloudStorageAdapter::height ( ) const [inline, virtual]

Get height of point cloud.

Returns:
height of point cloud

Implements fawkes::PointCloudManager::StorageAdapter.

Definition at line 129 of file pointcloud_manager.h.

virtual size_t fawkes::PointCloudManager::PointCloudStorageAdapter::num_points ( ) const [inline, virtual]

Get numer of points in point cloud.

Returns:
number of points

Implements fawkes::PointCloudManager::StorageAdapter.

Definition at line 130 of file pointcloud_manager.h.

virtual size_t fawkes::PointCloudManager::PointCloudStorageAdapter::point_size ( ) const [inline, virtual]

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.

virtual unsigned int fawkes::PointCloudManager::PointCloudStorageAdapter::width ( ) const [inline, virtual]

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

The point cloud.

Definition at line 122 of file pointcloud_manager.h.


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