38 #ifndef OPENNI_OPENNI_H_ 39 #define OPENNI_OPENNI_H_ 45 #include <boost/shared_ptr.hpp> 46 #include <boost/weak_ptr.hpp> 47 #include <XnCppWrapper.h> 80 unsigned short getVendorID (
unsigned index)
const throw ();
81 unsigned short getProductID (
unsigned index)
const throw ();
82 unsigned char getBus (
unsigned index)
const throw ();
83 unsigned char getAddress (
unsigned index)
const throw ();
85 void getPrimesenseSerial(xn::NodeInfo info,
char* buffer,
unsigned buf_size)
const throw ();
89 static void getDeviceType (
const std::string& connection_string,
unsigned short& vendorId,
unsigned short& productId);
114 std::map< unsigned char, std::map<unsigned char, unsigned > >
bus_map_;
unsigned char getBus(unsigned index) const
const char * getSerialNumber(unsigned index) const
std::map< std::string, unsigned > serial_map_
unsigned short getVendorID(unsigned index) const
std::vector< DeviceContext > device_context_
boost::shared_ptr< OpenNIDevice > createVirtualDevice(const std::string &path, bool repeat, bool stream) const
boost::weak_ptr< OpenNIDevice > device
unsigned updateDeviceList()
const char * getProductName(unsigned index) const
const char * getVendorName(unsigned index) const
Driver class implemented as Singleton. This class contains the xn::Context object used by all devices...
boost::shared_ptr< xn::NodeInfo > image_node
boost::shared_ptr< OpenNIDevice > getDeviceBySerialNumber(const std::string &serial_number) const
static void getDeviceType(const std::string &connection_string, unsigned short &vendorId, unsigned short &productId)
boost::shared_ptr< OpenNIDevice > getDevice(unsigned index) const
unsigned getNumberDevices() const
unsigned short getProductID(unsigned index) const
boost::shared_ptr< xn::NodeInfo > ir_node
boost::shared_ptr< OpenNIDevice > getDeviceByAddress(unsigned char bus, unsigned char address) const
static OpenNIDriver & getInstance()
std::map< unsigned char, std::map< unsigned char, unsigned > > bus_map_
boost::shared_ptr< OpenNIDevice > getDeviceByIndex(unsigned index) const
const char * getConnectionString(unsigned index) const
returns the connectionstring for current device, which has following format vendorID/productID@BusID/...
Class representing an astract device for Primesense or MS Kinect devices.
std::map< std::string, unsigned > connection_string_map_
void getPrimesenseSerial(xn::NodeInfo info, char *buffer, unsigned buf_size) const
boost::shared_ptr< xn::NodeInfo > depth_node
DeviceContext(const xn::NodeInfo &device_node, xn::NodeInfo *image_node, xn::NodeInfo *depth_node, xn::NodeInfo *ir_node)
unsigned char getAddress(unsigned index) const