39 #include <pcl/pcl_config.h>
43 #include "openni_exception.h"
44 #include "openni_device.h"
46 #include <pcl/memory.h>
47 #include <pcl/pcl_macros.h>
86 unsigned updateDeviceList ();
92 inline unsigned getNumberDevices ()
const noexcept;
102 OpenNIDevice::Ptr createVirtualDevice (
const std::string& path,
bool repeat,
bool stream)
const;
118 OpenNIDevice::Ptr getDeviceBySerialNumber (
const std::string& serial_number)
const;
128 OpenNIDevice::Ptr getDeviceByAddress (
unsigned char bus,
unsigned char address)
const;
137 const char* getSerialNumber (
unsigned index)
const noexcept;
145 const char* getConnectionString (
unsigned index)
const noexcept;
153 const char* getVendorName (
unsigned index)
const noexcept;
161 const char* getProductName (
unsigned index)
const noexcept;
169 unsigned short getVendorID (
unsigned index)
const noexcept;
177 unsigned short getProductID (
unsigned index)
const noexcept;
185 unsigned char getBus (
unsigned index)
const noexcept;
193 unsigned char getAddress (
unsigned index)
const noexcept;
209 getDeviceType (
const std::string& connection_string,
unsigned short& vendorId,
unsigned short& productId);
214 DeviceContext (
const xn::NodeInfo& device_node, xn::NodeInfo* image_node, xn::NodeInfo* depth_node, xn::NodeInfo * ir_node);
215 DeviceContext (
const xn::NodeInfo & device_node);
216 DeviceContext (
const DeviceContext&);
229 void getDeviceInfos () noexcept;
235 std::map< unsigned char, std::map<unsigned char, unsigned > >
bus_map_;
std::shared_ptr< xn::NodeInfo > depth_node
pcl::weak_ptr< OpenNIDevice > device
unsigned getNumberDevices() const noexcept
std::map< std::string, unsigned > connection_string_map_
pcl::shared_ptr< OpenNIDevice > Ptr
std::map< std::string, unsigned > serial_map_
static OpenNIDriver & getInstance()
static access method to the only instance.
std::shared_ptr< xn::NodeInfo > image_node
std::shared_ptr< xn::NodeInfo > ir_node
Driver class implemented as Singleton.
std::vector< DeviceContext > device_context_
std::map< unsigned char, std::map< unsigned char, unsigned > > bus_map_