Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
oni::driver::Rs2Device Class Reference

#include <Rs2Device.h>

Inheritance diagram for oni::driver::Rs2Device:
Inheritance graph
[legend]

Public Member Functions

virtual StreamBase * createStream (OniSensorType sensorType)
 
virtual void destroyStream (StreamBase *streamBase)
 
class Rs2DrivergetDriver ()
 
OniDeviceInfo * getInfo ()
 
virtual OniStatus getProperty (int propertyId, void *data, int *dataSize)
 
OniImageRegistrationMode getRegistrationMode () const
 
rs2_devicegetRsDevice ()
 
virtual OniStatus getSensorInfoList (OniSensorInfo **sensors, int *numSensors)
 
virtual OniStatus invoke (int commandId, void *data, int dataSize)
 
virtual OniBool isCommandSupported (int commandId)
 
virtual OniBool isImageRegistrationModeSupported (OniImageRegistrationMode mode)
 
virtual OniBool isPropertySupported (int propertyId)
 
 Rs2Device (class Rs2Driver *driver, rs2_device *device)
 
virtual OniStatus setProperty (int propertyId, const void *data, int dataSize)
 
virtual OniStatus tryManualTrigger ()
 
void updateConfiguration ()
 
virtual ~Rs2Device ()
 

Protected Member Functions

OniStatus addStream (rs2_sensor *sensor, OniSensorType sensorType, int sensorId, int streamId, std::vector< Rs2StreamProfileInfo > *profiles)
 
OniFrame * createOniFrame (rs2_frame *frame, Rs2Stream *stream, Rs2StreamProfileInfo *spi)
 
Rs2StreamfindStream (OniSensorType sensorType, int streamId)
 
void findStreamProfiles (std::vector< Rs2StreamProfileInfo > *dst, OniSensorType sensorType, int streamId)
 
Rs2StreamgetFrameStream (rs2_frame *frame, Rs2StreamProfileInfo *spi)
 
bool hasEnabledStreams ()
 
OniStatus initialize ()
 
OniStatus initializeStreams ()
 
void mainLoop ()
 
void operator= (const Rs2Device &)
 
void processFrame (rs2_frame *frame)
 
void releaseFrame (rs2_frame *frame)
 
void restartPipeline ()
 
 Rs2Device (const Rs2Device &)
 
void shutdown ()
 
OniStatus startPipeline ()
 
void stopPipeline ()
 
void submitOniFrame (OniFrame *oniFrame, Rs2Stream *stream)
 
void waitAlignedDepth ()
 
void waitForFrames ()
 

Static Protected Member Functions

static OniStatus queryDeviceInfo (rs2_device *device, OniDeviceInfo *deviceInfo)
 

Protected Attributes

rs2_processing_blockm_alignProcessor
 
rs2_frame_queuem_alignQueue
 
rs2_configm_config
 
volatile int m_configId
 
std::list< class Rs2Stream * > m_createdStreams
 
rs2_devicem_device
 
class Rs2Driverm_driver
 
uint64_t m_framesetId
 
OniDeviceInfo m_info
 
rs2_pipelinem_pipeline
 
rs2_pipeline_profilem_pipelineProfile
 
std::vector< Rs2StreamProfileInfom_profiles
 
OniImageRegistrationMode m_registrationMode
 
volatile int m_runFlag
 
std::vector< OniSensorInfo > m_sensorInfo
 
Rs2Mutex m_stateMx
 
std::list< class Rs2Stream * > m_streams
 
Rs2Mutex m_streamsMx
 
std::unique_ptr< std::thread > m_thread
 

Friends

class Rs2Driver
 

Detailed Description

Definition at line 7 of file Rs2Device.h.

Constructor & Destructor Documentation

oni::driver::Rs2Device::Rs2Device ( class Rs2Driver driver,
rs2_device device 
)

Definition at line 12 of file Rs2Device.cpp.

oni::driver::Rs2Device::~Rs2Device ( )
virtual

Definition at line 29 of file Rs2Device.cpp.

oni::driver::Rs2Device::Rs2Device ( const Rs2Device )
protected

Member Function Documentation

OniStatus oni::driver::Rs2Device::addStream ( rs2_sensor sensor,
OniSensorType  sensorType,
int  sensorId,
int  streamId,
std::vector< Rs2StreamProfileInfo > *  profiles 
)
protected

Definition at line 831 of file Rs2Device.cpp.

OniFrame * oni::driver::Rs2Device::createOniFrame ( rs2_frame frame,
Rs2Stream stream,
Rs2StreamProfileInfo spi 
)
protected

Definition at line 591 of file Rs2Device.cpp.

StreamBase * oni::driver::Rs2Device::createStream ( OniSensorType  sensorType)
virtual

Definition at line 164 of file Rs2Device.cpp.

void oni::driver::Rs2Device::destroyStream ( StreamBase *  streamBase)
virtual

Definition at line 184 of file Rs2Device.cpp.

Rs2Stream * oni::driver::Rs2Device::findStream ( OniSensorType  sensorType,
int  streamId 
)
protected

Definition at line 874 of file Rs2Device.cpp.

void oni::driver::Rs2Device::findStreamProfiles ( std::vector< Rs2StreamProfileInfo > *  dst,
OniSensorType  sensorType,
int  streamId 
)
protected

Definition at line 860 of file Rs2Device.cpp.

class Rs2Driver* oni::driver::Rs2Device::getDriver ( )
inline

Definition at line 30 of file Rs2Device.h.

Rs2Stream * oni::driver::Rs2Device::getFrameStream ( rs2_frame frame,
Rs2StreamProfileInfo spi 
)
protected

Definition at line 679 of file Rs2Device.cpp.

OniDeviceInfo* oni::driver::Rs2Device::getInfo ( )
inline

Definition at line 32 of file Rs2Device.h.

OniStatus oni::driver::Rs2Device::getProperty ( int  propertyId,
void data,
int *  dataSize 
)
virtual

Definition at line 39 of file Rs2DeviceProps.cpp.

OniImageRegistrationMode oni::driver::Rs2Device::getRegistrationMode ( ) const
inline

Definition at line 33 of file Rs2Device.h.

rs2_device* oni::driver::Rs2Device::getRsDevice ( )
inline

Definition at line 31 of file Rs2Device.h.

OniStatus oni::driver::Rs2Device::getSensorInfoList ( OniSensorInfo **  sensors,
int *  numSensors 
)
virtual

Definition at line 152 of file Rs2Device.cpp.

bool oni::driver::Rs2Device::hasEnabledStreams ( )
protected

Definition at line 888 of file Rs2Device.cpp.

OniStatus oni::driver::Rs2Device::initialize ( )
protected

Definition at line 36 of file Rs2Device.cpp.

OniStatus oni::driver::Rs2Device::initializeStreams ( )
protected

Definition at line 711 of file Rs2Device.cpp.

OniStatus oni::driver::Rs2Device::invoke ( int  commandId,
void data,
int  dataSize 
)
virtual

Definition at line 200 of file Rs2Device.cpp.

OniBool oni::driver::Rs2Device::isCommandSupported ( int  commandId)
virtual

Definition at line 223 of file Rs2Device.cpp.

OniBool oni::driver::Rs2Device::isImageRegistrationModeSupported ( OniImageRegistrationMode  mode)
virtual

Definition at line 238 of file Rs2Device.cpp.

OniBool oni::driver::Rs2Device::isPropertySupported ( int  propertyId)
virtual

Definition at line 97 of file Rs2DeviceProps.cpp.

void oni::driver::Rs2Device::mainLoop ( )
protected

Definition at line 441 of file Rs2Device.cpp.

void oni::driver::Rs2Device::operator= ( const Rs2Device )
protected
void oni::driver::Rs2Device::processFrame ( rs2_frame frame)
protected

Definition at line 533 of file Rs2Device.cpp.

OniStatus oni::driver::Rs2Device::queryDeviceInfo ( rs2_device device,
OniDeviceInfo *  deviceInfo 
)
staticprotected

Definition at line 118 of file Rs2Device.cpp.

void oni::driver::Rs2Device::releaseFrame ( rs2_frame frame)
protected

Definition at line 701 of file Rs2Device.cpp.

void oni::driver::Rs2Device::restartPipeline ( )
protected

Definition at line 419 of file Rs2Device.cpp.

OniStatus oni::driver::Rs2Device::setProperty ( int  propertyId,
const void data,
int  dataSize 
)
virtual

Definition at line 6 of file Rs2DeviceProps.cpp.

void oni::driver::Rs2Device::shutdown ( )
protected

Definition at line 84 of file Rs2Device.cpp.

OniStatus oni::driver::Rs2Device::startPipeline ( )
protected

Definition at line 247 of file Rs2Device.cpp.

void oni::driver::Rs2Device::stopPipeline ( )
protected

Definition at line 378 of file Rs2Device.cpp.

void oni::driver::Rs2Device::submitOniFrame ( OniFrame *  oniFrame,
Rs2Stream stream 
)
protected

Definition at line 655 of file Rs2Device.cpp.

OniStatus oni::driver::Rs2Device::tryManualTrigger ( )
virtual

Definition at line 233 of file Rs2Device.cpp.

void oni::driver::Rs2Device::updateConfiguration ( )

Definition at line 475 of file Rs2Device.cpp.

void oni::driver::Rs2Device::waitAlignedDepth ( )
protected

Definition at line 552 of file Rs2Device.cpp.

void oni::driver::Rs2Device::waitForFrames ( )
protected

Definition at line 482 of file Rs2Device.cpp.

Friends And Related Function Documentation

friend class Rs2Driver
friend

Definition at line 9 of file Rs2Device.h.

Member Data Documentation

rs2_processing_block* oni::driver::Rs2Device::m_alignProcessor
protected

Definition at line 82 of file Rs2Device.h.

rs2_frame_queue* oni::driver::Rs2Device::m_alignQueue
protected

Definition at line 81 of file Rs2Device.h.

rs2_config* oni::driver::Rs2Device::m_config
protected

Definition at line 77 of file Rs2Device.h.

volatile int oni::driver::Rs2Device::m_configId
protected

Definition at line 86 of file Rs2Device.h.

std::list<class Rs2Stream*> oni::driver::Rs2Device::m_createdStreams
protected

Definition at line 93 of file Rs2Device.h.

rs2_device* oni::driver::Rs2Device::m_device
protected

Definition at line 74 of file Rs2Device.h.

class Rs2Driver* oni::driver::Rs2Device::m_driver
protected

Definition at line 73 of file Rs2Device.h.

uint64_t oni::driver::Rs2Device::m_framesetId
protected

Definition at line 87 of file Rs2Device.h.

OniDeviceInfo oni::driver::Rs2Device::m_info
protected

Definition at line 89 of file Rs2Device.h.

rs2_pipeline* oni::driver::Rs2Device::m_pipeline
protected

Definition at line 78 of file Rs2Device.h.

rs2_pipeline_profile* oni::driver::Rs2Device::m_pipelineProfile
protected

Definition at line 79 of file Rs2Device.h.

std::vector<Rs2StreamProfileInfo> oni::driver::Rs2Device::m_profiles
protected

Definition at line 90 of file Rs2Device.h.

OniImageRegistrationMode oni::driver::Rs2Device::m_registrationMode
protected

Definition at line 75 of file Rs2Device.h.

volatile int oni::driver::Rs2Device::m_runFlag
protected

Definition at line 85 of file Rs2Device.h.

std::vector<OniSensorInfo> oni::driver::Rs2Device::m_sensorInfo
protected

Definition at line 91 of file Rs2Device.h.

Rs2Mutex oni::driver::Rs2Device::m_stateMx
protected

Definition at line 70 of file Rs2Device.h.

std::list<class Rs2Stream*> oni::driver::Rs2Device::m_streams
protected

Definition at line 92 of file Rs2Device.h.

Rs2Mutex oni::driver::Rs2Device::m_streamsMx
protected

Definition at line 71 of file Rs2Device.h.

std::unique_ptr<std::thread> oni::driver::Rs2Device::m_thread
protected

Definition at line 84 of file Rs2Device.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:40