Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

openni_wrapper::OpenNIDriver Class Reference
[Module io]

Driver class implemented as Singleton. More...

#include <pcl/io/openni_camera/openni_driver.h>

List of all members.

Classes

struct  DeviceContext

Public Member Functions

 ~OpenNIDriver () throw ()
unsigned updateDeviceList () throw ()
unsigned getNumberDevices () const throw ()
boost::shared_ptr< OpenNIDevicegetDeviceByIndex (unsigned index) const throw (OpenNIException)
boost::shared_ptr< OpenNIDevicegetDeviceBySerialNumber (const std::string &serial_number) const throw (OpenNIException)
boost::shared_ptr< OpenNIDevicegetDeviceByAddress (unsigned char bus, unsigned char address) const throw (OpenNIException)
const char * getSerialNumber (unsigned index) const throw ()
const char * getConnectionString (unsigned index) const throw ()
 returns the connectionstring for current device, which has following format vendorID/productID@BusID/DeviceID
const char * getVendorName (unsigned index) const throw ()
const char * getProductName (unsigned index) const throw ()
unsigned short getVendorID (unsigned index) const throw ()
unsigned short getProductID (unsigned index) const throw ()
unsigned char getBus (unsigned index) const throw ()
unsigned char getAddress (unsigned index) const throw ()
void stopAll () throw (OpenNIException)

Static Public Member Functions

static OpenNIDrivergetInstance () throw (OpenNIException)
static void getDeviceType (const std::string &connection_string, unsigned short &vendorId, unsigned short &productId)

Protected Member Functions

 OpenNIDriver () throw (OpenNIException)
boost::shared_ptr< OpenNIDevicegetDevice (unsigned index) const throw (OpenNIException)
void getDeviceInfos () throw ()

Protected Attributes

std::vector< DeviceContextdevice_context_
xn::Context context_
std::map< unsigned char,
std::map< unsigned char,
unsigned > > 
bus_map_
std::map< std::string, unsigned > serial_map_
std::map< std::string, unsigned > connection_string_map_

Detailed Description

Driver class implemented as Singleton.

This class contains the xn::Context object used by all devices. It \ provides methods for enumerating and accessing devices.

Author:
Suat Gedikli
Date:
02.january 2011

Definition at line 64 of file openni_driver.h.


Constructor & Destructor Documentation

openni_wrapper::OpenNIDriver::~OpenNIDriver (  )  throw ()
openni_wrapper::OpenNIDriver::OpenNIDriver (  )  throw (OpenNIException) [protected]

Member Function Documentation

unsigned char openni_wrapper::OpenNIDriver::getAddress ( unsigned  index  )  const throw ()
unsigned char openni_wrapper::OpenNIDriver::getBus ( unsigned  index  )  const throw ()
const char* openni_wrapper::OpenNIDriver::getConnectionString ( unsigned  index  )  const throw ()

returns the connectionstring for current device, which has following format vendorID/productID@BusID/DeviceID

boost::shared_ptr<OpenNIDevice> openni_wrapper::OpenNIDriver::getDevice ( unsigned  index  )  const throw (OpenNIException) [protected]
boost::shared_ptr<OpenNIDevice> openni_wrapper::OpenNIDriver::getDeviceByAddress ( unsigned char  bus,
unsigned char  address 
) const throw (OpenNIException)
boost::shared_ptr<OpenNIDevice> openni_wrapper::OpenNIDriver::getDeviceByIndex ( unsigned  index  )  const throw (OpenNIException)
boost::shared_ptr<OpenNIDevice> openni_wrapper::OpenNIDriver::getDeviceBySerialNumber ( const std::string &  serial_number  )  const throw (OpenNIException)
void openni_wrapper::OpenNIDriver::getDeviceInfos (  )  throw () [protected]
static void openni_wrapper::OpenNIDriver::getDeviceType ( const std::string &  connection_string,
unsigned short &  vendorId,
unsigned short &  productId 
) [static]
OpenNIDriver & openni_wrapper::OpenNIDriver::getInstance (  )  throw (OpenNIException) [inline, static]

Definition at line 121 of file openni_driver.h.

unsigned openni_wrapper::OpenNIDriver::getNumberDevices (  )  const throw () [inline]

Definition at line 127 of file openni_driver.h.

unsigned short openni_wrapper::OpenNIDriver::getProductID ( unsigned  index  )  const throw ()
const char* openni_wrapper::OpenNIDriver::getProductName ( unsigned  index  )  const throw ()
const char* openni_wrapper::OpenNIDriver::getSerialNumber ( unsigned  index  )  const throw ()
unsigned short openni_wrapper::OpenNIDriver::getVendorID ( unsigned  index  )  const throw ()
const char* openni_wrapper::OpenNIDriver::getVendorName ( unsigned  index  )  const throw ()
void openni_wrapper::OpenNIDriver::stopAll (  )  throw (OpenNIException)
unsigned openni_wrapper::OpenNIDriver::updateDeviceList (  )  throw ()

Member Data Documentation

std::map< unsigned char, std::map<unsigned char, unsigned > > openni_wrapper::OpenNIDriver::bus_map_ [protected]

Definition at line 116 of file openni_driver.h.

std::map< std::string, unsigned > openni_wrapper::OpenNIDriver::connection_string_map_ [protected]

Definition at line 118 of file openni_driver.h.

xn::Context openni_wrapper::OpenNIDriver::context_ [mutable, protected]

Definition at line 114 of file openni_driver.h.

Definition at line 113 of file openni_driver.h.

std::map< std::string, unsigned > openni_wrapper::OpenNIDriver::serial_map_ [protected]

Definition at line 117 of file openni_driver.h.


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