OSVR-Core
Classes | Namespaces | Macros | Typedefs | Functions
UVCImageSource.cpp File Reference

Header. More...

#include "ImageSource.h"
#include "ImageSourceFactories.h"
#include <libuvc/libuvc.h>
#include <libusb.h>
#include <opencv2/core/core_c.h>
#include <condition_variable>
#include <cstdio>
#include <iostream>
#include <memory>
#include <mutex>
#include <queue>
#include <stdexcept>
#include <string>
#include <unistd.h>

Classes

class  osvr::vbtracker::UVCImageSource
 

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 

Typedefs

using osvr::vbtracker::UVCImageSourcePtr = std::unique_ptr< UVCImageSource >
 

Functions

ImageSourcePtr osvr::vbtracker::openUVCCamera (int vendor_id=0, int product_id=0, const char *serial_number=nullptr)
 Factory method to open a USB video class (UVC) device as an image source. More...
 
ImageSourcePtr osvr::vbtracker::openHDKCameraUVC (const char *serial_number=nullptr)
 Factory method to open the HDK camera as an image source via libuvc. More...
 

Detailed Description

Header.

Date
2016
Author
Sensics, Inc. http://sensics.com

Function Documentation

§ openHDKCameraUVC()

ImageSourcePtr osvr::vbtracker::openHDKCameraUVC ( const char *  serial_number)

Factory method to open the HDK camera as an image source via libuvc.

with a nullptr serial number, just opens the "first" HDK camera device

§ openUVCCamera()

ImageSourcePtr osvr::vbtracker::openUVCCamera ( int  vendor_id = 0,
int  product_id = 0,
const char *  serial_number = nullptr 
)

Factory method to open a USB video class (UVC) device as an image source.