Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
imi_wrapper::ImiDevice Class Reference

#include <imi_Device.h>

Public Member Functions

int closeDevice ()
 
void convertToCloudPoint (ImiImageFrame *pFrame)
 
sensor_msgs::CameraInfoPtr getDefaultCameraInfo (int width, int height)
 
const std::string getUri () const
 
uint16_t getUsbProductId () const
 
uint16_t getUsbVendorId () const
 
bool hasColorSensor () const
 
bool hasDepthSensor () const
 
bool hasUVCSensor () const
 
 ImiDevice ()
 
bool isValid () const
 
int openDevice ()
 
void setCloudPointCallback (CloudCallbackFunction callback)
 
void setColorFrameCallback (FrameCallbackFunction callback)
 
void setDepthFrameCallback (FrameCallbackFunction callback)
 
void setUVCFrameCallback (FrameCallbackFunction callback)
 
int startColorStream (ImiFrameMode colorFrameMode)
 
int startDepthStream (ImiFrameMode depthFrameMode)
 
int startUVCStream (ImiCameraFrameMode uvcframeMode)
 
void stopAllStreams ()
 
void stopColorStream ()
 
void stopDepthStream ()
 
void stopUVCStream ()
 
virtual ~ImiDevice ()
 

Static Public Member Functions

static int readFrame (void *lParam)
 
static int readUVCFrame (void *lParam)
 

Private Attributes

ImiCameraHandle camHandle
 
CloudCallbackFunction cloudCallback
 
int color_video_started_
 
FrameCallbackFunction colorCallback
 
ImiStreamHandle colorHandle
 
int depth_video_started_
 
FrameCallbackFunction depthCallback
 
ImiStreamHandle depthHandle
 
boost::mutex device_mutex_
 
bool isDeviceValid
 
double m_cx
 
double m_cy
 
double m_fx
 
double m_fy
 
ImiDeviceAttribute * pDeviceAttr
 
ImiDeviceHandle pImiDevice
 
boost::mutex uvc_mutex_
 
int uvc_video_started_
 
FrameCallbackFunction uvcCallback
 

Detailed Description

Definition at line 27 of file imi_Device.h.

Constructor & Destructor Documentation

imi_wrapper::ImiDevice::ImiDevice ( )

Definition at line 19 of file imi_Device.cpp.

imi_wrapper::ImiDevice::~ImiDevice ( )
virtual

Definition at line 41 of file imi_Device.cpp.

Member Function Documentation

int imi_wrapper::ImiDevice::closeDevice ( )

Definition at line 318 of file imi_Device.cpp.

void imi_wrapper::ImiDevice::convertToCloudPoint ( ImiImageFrame *  pFrame)

Definition at line 105 of file imi_Device.cpp.

sensor_msgs::CameraInfoPtr imi_wrapper::ImiDevice::getDefaultCameraInfo ( int  width,
int  height 
)

Definition at line 346 of file imi_Device.cpp.

const std::string imi_wrapper::ImiDevice::getUri ( ) const

Definition at line 380 of file imi_Device.cpp.

uint16_t imi_wrapper::ImiDevice::getUsbProductId ( ) const

Definition at line 400 of file imi_Device.cpp.

uint16_t imi_wrapper::ImiDevice::getUsbVendorId ( ) const

Definition at line 390 of file imi_Device.cpp.

bool imi_wrapper::ImiDevice::hasColorSensor ( ) const

Definition at line 415 of file imi_Device.cpp.

bool imi_wrapper::ImiDevice::hasDepthSensor ( ) const

Definition at line 425 of file imi_Device.cpp.

bool imi_wrapper::ImiDevice::hasUVCSensor ( ) const

Definition at line 420 of file imi_Device.cpp.

bool imi_wrapper::ImiDevice::isValid ( ) const

Definition at line 410 of file imi_Device.cpp.

int imi_wrapper::ImiDevice::openDevice ( )

Definition at line 46 of file imi_Device.cpp.

int imi_wrapper::ImiDevice::readFrame ( void *  lParam)
static

Definition at line 155 of file imi_Device.cpp.

int imi_wrapper::ImiDevice::readUVCFrame ( void *  lParam)
static

Definition at line 258 of file imi_Device.cpp.

void imi_wrapper::ImiDevice::setCloudPointCallback ( CloudCallbackFunction  callback)

Definition at line 448 of file imi_Device.cpp.

void imi_wrapper::ImiDevice::setColorFrameCallback ( FrameCallbackFunction  callback)

Definition at line 430 of file imi_Device.cpp.

void imi_wrapper::ImiDevice::setDepthFrameCallback ( FrameCallbackFunction  callback)

Definition at line 442 of file imi_Device.cpp.

void imi_wrapper::ImiDevice::setUVCFrameCallback ( FrameCallbackFunction  callback)

Definition at line 436 of file imi_Device.cpp.

int imi_wrapper::ImiDevice::startColorStream ( ImiFrameMode  colorFrameMode)

Definition at line 454 of file imi_Device.cpp.

int imi_wrapper::ImiDevice::startDepthStream ( ImiFrameMode  depthFrameMode)

Definition at line 500 of file imi_Device.cpp.

int imi_wrapper::ImiDevice::startUVCStream ( ImiCameraFrameMode  uvcframeMode)

Definition at line 478 of file imi_Device.cpp.

void imi_wrapper::ImiDevice::stopAllStreams ( )

Definition at line 538 of file imi_Device.cpp.

void imi_wrapper::ImiDevice::stopColorStream ( )

Definition at line 561 of file imi_Device.cpp.

void imi_wrapper::ImiDevice::stopDepthStream ( )

Definition at line 596 of file imi_Device.cpp.

void imi_wrapper::ImiDevice::stopUVCStream ( )

Definition at line 579 of file imi_Device.cpp.

Member Data Documentation

ImiCameraHandle imi_wrapper::ImiDevice::camHandle
private

Definition at line 76 of file imi_Device.h.

CloudCallbackFunction imi_wrapper::ImiDevice::cloudCallback
private

Definition at line 85 of file imi_Device.h.

int imi_wrapper::ImiDevice::color_video_started_
private

Definition at line 79 of file imi_Device.h.

FrameCallbackFunction imi_wrapper::ImiDevice::colorCallback
private

Definition at line 84 of file imi_Device.h.

ImiStreamHandle imi_wrapper::ImiDevice::colorHandle
private

Definition at line 75 of file imi_Device.h.

int imi_wrapper::ImiDevice::depth_video_started_
private

Definition at line 80 of file imi_Device.h.

FrameCallbackFunction imi_wrapper::ImiDevice::depthCallback
private

Definition at line 83 of file imi_Device.h.

ImiStreamHandle imi_wrapper::ImiDevice::depthHandle
private

Definition at line 74 of file imi_Device.h.

boost::mutex imi_wrapper::ImiDevice::device_mutex_
private

Definition at line 69 of file imi_Device.h.

bool imi_wrapper::ImiDevice::isDeviceValid
private

Definition at line 78 of file imi_Device.h.

double imi_wrapper::ImiDevice::m_cx
private

Definition at line 88 of file imi_Device.h.

double imi_wrapper::ImiDevice::m_cy
private

Definition at line 89 of file imi_Device.h.

double imi_wrapper::ImiDevice::m_fx
private

Definition at line 90 of file imi_Device.h.

double imi_wrapper::ImiDevice::m_fy
private

Definition at line 91 of file imi_Device.h.

ImiDeviceAttribute* imi_wrapper::ImiDevice::pDeviceAttr
private

Definition at line 71 of file imi_Device.h.

ImiDeviceHandle imi_wrapper::ImiDevice::pImiDevice
private

Definition at line 72 of file imi_Device.h.

boost::mutex imi_wrapper::ImiDevice::uvc_mutex_
private

Definition at line 70 of file imi_Device.h.

int imi_wrapper::ImiDevice::uvc_video_started_
private

Definition at line 81 of file imi_Device.h.

FrameCallbackFunction imi_wrapper::ImiDevice::uvcCallback
private

Definition at line 86 of file imi_Device.h.


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


imi_camera
Author(s): hjimi , HUAJIEIMI
autogenerated on Mon Jun 10 2019 13:32:59