1 #ifndef FREENECT_DRIVER_K8EEAIBB 2 #define FREENECT_DRIVER_K8EEAIBB 4 #include <libfreenect/libfreenect.h> 37 for (item = attr_list; item != NULL; item = item->
next) {
48 unsigned getBus(
unsigned device_idx) {
76 throw std::runtime_error(
"libfreenect: device idx out of range");
92 throw std::runtime_error(
"[ERROR] libfreenect does not support searching for device by bus/address");
101 throw std::runtime_error(
"freenect_process_events error");
126 ROS_INFO(
"Did not select any subdevs,open AUDIO as default.\n");
FREENECTAPI void freenect_select_subdevices(freenect_context *ctx, freenect_device_flags subdevs)
freenect_device_flags subdevs_
static FreenectDriver & getInstance()
static const unsigned PRODUCT_ID
const char * camera_serial
boost::shared_ptr< FreenectDevice > device_
boost::shared_ptr< FreenectDevice > getDeviceByAddress(unsigned bus, unsigned address)
boost::shared_ptr< boost::thread > freenect_thread_
unsigned getNumberDevices()
FREENECTAPI void freenect_set_log_level(freenect_context *ctx, freenect_loglevel level)
FREENECTAPI int freenect_process_events_timeout(freenect_context *ctx, struct timeval *timeout)
static const unsigned VENDOR_ID
std::vector< std::string > device_serials_
FREENECTAPI int freenect_init(freenect_context **ctx, freenect_usb_context *usb_ctx)
FreenectDriver(freenect_device_flags subdevs)
unsigned getVendorID(unsigned device_idx)
FREENECTAPI int freenect_shutdown(freenect_context *ctx)
boost::shared_ptr< FreenectDevice > getDeviceByIndex(unsigned device_idx)
unsigned getBus(unsigned device_idx)
static FreenectDriver & getInstance(freenect_device_flags subdevs)
FREENECTAPI int freenect_list_device_attributes(freenect_context *ctx, struct freenect_device_attributes **attribute_list)
freenect_context * driver_
static const std::string PRODUCT_NAME
boost::shared_ptr< FreenectDevice > getDeviceBySerialNumber(std::string serial)
const char * getSerialNumber(unsigned device_idx)
struct freenect_device_attributes * next
FREENECTAPI void freenect_free_device_attributes(struct freenect_device_attributes *attribute_list)
const char * getProductName(unsigned device_idx)
unsigned getAddress(unsigned device_idx)
const char * getVendorName(unsigned device_idx)
unsigned getProductID(unsigned device_idx)
static const std::string VENDOR_NAME