Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
rs_device_base Struct Referenceabstract

#include <device.h>

Inheritance diagram for rs_device_base:
Inheritance graph
[legend]

Public Member Functions

rs_frame_refclone_frame (rs_frame_ref *frame) override
 
virtual std::vector< std::shared_ptr< rsimpl::frame_timestamp_reader > > create_frame_timestamp_readers () const =0
 
void disable_motion_tracking () override
 
void disable_stream (rs_stream stream) override
 
void enable_motion_tracking () override
 
void enable_stream (rs_stream stream, int width, int height, rs_format format, int fps, rs_output_buffer_format output) override
 
void enable_stream_preset (rs_stream stream, rs_preset preset) override
 
const char * get_camera_info (rs_camera_info info) const override
 
float get_depth_scale () const override
 
const char * get_firmware_version () const override
 
rs_extrinsics get_motion_extrinsics_from (rs_stream from) const override
 
rs_motion_intrinsics get_motion_intrinsics () const override
 
const char * get_name () const override
 
const char * get_option_description (rs_option option) const override
 
virtual void get_option_range (rs_option option, double &min, double &max, double &step, double &def) override
 
virtual void get_options (const rs_option options[], size_t count, double values[]) override
 
const char * get_serial () const override
 
const rsimpl::stream_interfaceget_stream_interface (rs_stream stream) const override
 
const char * get_usb_port_id () const override
 
bool is_capturing () const override
 
int is_motion_tracking_active () const override
 
virtual void on_before_start (const std::vector< rsimpl::subdevice_mode_selection > &selected_modes)=0
 
bool poll_all_streams () override
 
void release_frame (rs_frame_ref *ref) override
 
 rs_device_base (std::shared_ptr< rsimpl::uvc::device > device, const rsimpl::static_device_info &info, rsimpl::calibration_validator validator=rsimpl::calibration_validator())
 
virtual rs_stream select_key_stream (const std::vector< rsimpl::subdevice_mode_selection > &selected_modes)=0
 
virtual void send_blob_to_device (rs_blob_type, void *, int)
 
void set_motion_callback (rs_motion_callback *callback) override
 
void set_motion_callback (void(*on_event)(rs_device *device, rs_motion_data data, void *user), void *user) override
 
virtual void set_options (const rs_option options[], size_t count, const double values[]) override
 
void set_stream_callback (rs_stream stream, void(*on_frame)(rs_device *device, rs_frame_ref *frame, void *user), void *user) override
 
void set_stream_callback (rs_stream stream, rs_frame_callback *callback) override
 
void set_timestamp_callback (void(*on_event)(rs_device *device, rs_timestamp_data data, void *user), void *user) override
 
void set_timestamp_callback (rs_timestamp_callback *callback) override
 
virtual void start (rs_source source) override
 
virtual void start_fw_logger (char fw_log_op_code, int grab_rate_in_ms, std::timed_mutex &mutex) override
 
virtual void stop (rs_source source) override
 
virtual void stop_fw_logger () override
 
virtual bool supports (rs_capabilities capability) const override
 
virtual bool supports (rs_camera_info info_param) const override
 
virtual bool supports_option (rs_option option) const override
 
void wait_all_streams () override
 
virtual ~rs_device_base ()
 
- Public Member Functions inherited from rs_device
virtual ~rs_device ()
 

Static Public Member Functions

static void update_device_info (rsimpl::static_device_info &info)
 

Protected Member Functions

virtual void disable_auto_option (int subdevice, rs_option auto_opt)
 
const rsimpl::uvc::device & get_device () const
 
rsimpl::uvc::device & get_device ()
 
virtual void on_before_callback (rs_stream, rs_frame_ref *, std::shared_ptr< rsimpl::frame_archive >)
 
virtual void start_motion_tracking ()
 
virtual void start_video_streaming ()
 
virtual void stop_motion_tracking ()
 
virtual void stop_video_streaming ()
 

Protected Attributes

rsimpl::device_config config
 
std::atomic< intframes_drops_counter
 
std::atomic< bool > keep_fw_logger_alive
 
bool motion_module_ready
 

Private Attributes

std::shared_ptr< rsimpl::syncronizing_archivearchive
 
std::chrono::high_resolution_clock::time_point capture_started
 
bool capturing
 
rsimpl::native_stream color
 
rsimpl::aligned_stream color_to_depth
 
bool data_acquisition_active
 
rsimpl::native_stream depth
 
rsimpl::aligned_stream depth_to_color
 
rsimpl::aligned_stream depth_to_infrared2
 
rsimpl::aligned_stream depth_to_rect_color
 
const std::shared_ptr< rsimpl::uvc::device > device
 
std::atomic< uint32_t > event_queue_size
 
std::atomic< uint32_t > events_timeout
 
rsimpl::native_stream fisheye
 
std::shared_ptr< std::thread > fw_logger
 
rsimpl::native_stream infrared
 
rsimpl::native_stream infrared2
 
rsimpl::aligned_stream infrared2_to_depth
 
std::atomic< uint32_t > max_publish_list_size
 
rsimpl::native_streamnative_streams [RS_STREAM_NATIVE_COUNT]
 
rsimpl::point_stream points
 
rsimpl::rectified_stream rect_color
 
rsimpl::stream_interfacestreams [RS_STREAM_COUNT]
 
std::string usb_port_id
 
std::mutex usb_port_mutex
 

Detailed Description

Definition at line 74 of file device.h.

Constructor & Destructor Documentation

rs_device_base::rs_device_base ( std::shared_ptr< rsimpl::uvc::device >  device,
const rsimpl::static_device_info info,
rsimpl::calibration_validator  validator = rsimpl::calibration_validator() 
)

Definition at line 21 of file device.cpp.

rs_device_base::~rs_device_base ( )
virtual

Definition at line 41 of file device.cpp.

Member Function Documentation

rs_frame_ref * rs_device_base::clone_frame ( rs_frame_ref frame)
overridevirtual

Implements rs_device.

Definition at line 518 of file device.cpp.

virtual std::vector<std::shared_ptr<rsimpl::frame_timestamp_reader> > rs_device_base::create_frame_timestamp_readers ( ) const
pure virtual
void rs_device_base::disable_auto_option ( int  subdevice,
rs_option  auto_opt 
)
protectedvirtual

Definition at line 701 of file device.cpp.

void rs_device_base::disable_motion_tracking ( void  )
overridevirtual

Implements rs_device.

Definition at line 125 of file device.cpp.

void rs_device_base::disable_stream ( rs_stream  stream)
overridevirtual

Implements rs_device.

Definition at line 98 of file device.cpp.

void rs_device_base::enable_motion_tracking ( )
overridevirtual

Implements rs_device.

Definition at line 118 of file device.cpp.

void rs_device_base::enable_stream ( rs_stream  stream,
int  width,
int  height,
rs_format  format,
int  fps,
rs_output_buffer_format  output 
)
overridevirtual

Implements rs_device.

Definition at line 70 of file device.cpp.

void rs_device_base::enable_stream_preset ( rs_stream  stream,
rs_preset  preset 
)
overridevirtual

Implements rs_device.

Definition at line 79 of file device.cpp.

const char * rs_device_base::get_camera_info ( rs_camera_info  info) const
overridevirtual

Implements rs_device.

Definition at line 62 of file device.cpp.

float rs_device_base::get_depth_scale ( ) const
inlineoverridevirtual

Implements rs_device.

Definition at line 127 of file device.h.

const rsimpl::uvc::device& rs_device_base::get_device ( ) const
inlineprotected

Definition at line 102 of file device.h.

rsimpl::uvc::device& rs_device_base::get_device ( )
inlineprotected

Definition at line 103 of file device.h.

const char* rs_device_base::get_firmware_version ( ) const
inlineoverridevirtual

Implements rs_device.

Definition at line 126 of file device.h.

rs_extrinsics rs_device_base::get_motion_extrinsics_from ( rs_stream  from) const
overridevirtual

Implements rs_device.

Reimplemented in rsimpl::zr300_camera.

Definition at line 93 of file device.cpp.

rs_motion_intrinsics rs_device_base::get_motion_intrinsics ( ) const
overridevirtual

Implements rs_device.

Reimplemented in rsimpl::zr300_camera.

Definition at line 88 of file device.cpp.

const char* rs_device_base::get_name ( ) const
inlineoverridevirtual

Implements rs_device.

Definition at line 124 of file device.h.

const char * rs_device_base::get_option_description ( rs_option  option) const
overridevirtual

Implements rs_device.

Definition at line 530 of file device.cpp.

void rs_device_base::get_option_range ( rs_option  option,
double &  min,
double &  max,
double &  step,
double &  def 
)
overridevirtual

Implements rs_device.

Reimplemented in rsimpl::zr300_camera, and rsimpl::ds::ds_device.

Definition at line 633 of file device.cpp.

void rs_device_base::get_options ( const rs_option  options[],
size_t  count,
double  values[] 
)
overridevirtual
const char* rs_device_base::get_serial ( ) const
inlineoverridevirtual

Implements rs_device.

Definition at line 125 of file device.h.

const rsimpl::stream_interface& rs_device_base::get_stream_interface ( rs_stream  stream) const
inlineoverridevirtual

Implements rs_device.

Definition at line 122 of file device.h.

const char * rs_device_base::get_usb_port_id ( ) const
overridevirtual

Implements rs_device.

Definition at line 710 of file device.cpp.

bool rs_device_base::is_capturing ( ) const
inlineoverridevirtual

Implements rs_device.

Definition at line 153 of file device.h.

int rs_device_base::is_motion_tracking_active ( ) const
inlineoverridevirtual

Implements rs_device.

Definition at line 154 of file device.h.

virtual void rs_device_base::on_before_callback ( rs_stream  ,
rs_frame_ref ,
std::shared_ptr< rsimpl::frame_archive  
)
inlineprotectedvirtual

Definition at line 111 of file device.h.

virtual void rs_device_base::on_before_start ( const std::vector< rsimpl::subdevice_mode_selection > &  selected_modes)
pure virtual
bool rs_device_base::poll_all_streams ( )
overridevirtual

Implements rs_device.

Definition at line 506 of file device.cpp.

void rs_device_base::release_frame ( rs_frame_ref ref)
overridevirtual

Implements rs_device.

Definition at line 513 of file device.cpp.

virtual rs_stream rs_device_base::select_key_stream ( const std::vector< rsimpl::subdevice_mode_selection > &  selected_modes)
pure virtual
virtual void rs_device_base::send_blob_to_device ( rs_blob_type  ,
void ,
int   
)
inlinevirtual

Reimplemented in rsimpl::zr300_camera.

Definition at line 174 of file device.h.

void rs_device_base::set_motion_callback ( rs_motion_callback callback)
overridevirtual

Implements rs_device.

Definition at line 132 of file device.cpp.

void rs_device_base::set_motion_callback ( void(*)(rs_device *device, rs_motion_data data, void *user)  on_event,
void user 
)
overridevirtual

Implements rs_device.

Definition at line 194 of file device.cpp.

void rs_device_base::set_options ( const rs_option  options[],
size_t  count,
const double  values[] 
)
overridevirtual
void rs_device_base::set_stream_callback ( rs_stream  stream,
void(*)(rs_device *device, rs_frame_ref *frame, void *user)  on_frame,
void user 
)
overridevirtual

Implements rs_device.

Definition at line 108 of file device.cpp.

void rs_device_base::set_stream_callback ( rs_stream  stream,
rs_frame_callback callback 
)
overridevirtual

Implements rs_device.

Definition at line 113 of file device.cpp.

void rs_device_base::set_timestamp_callback ( void(*)(rs_device *device, rs_timestamp_data data, void *user)  on_event,
void user 
)
overridevirtual

Implements rs_device.

Definition at line 202 of file device.cpp.

void rs_device_base::set_timestamp_callback ( rs_timestamp_callback callback)
overridevirtual

Implements rs_device.

Definition at line 209 of file device.cpp.

void rs_device_base::start ( rs_source  source)
overridevirtual

Implements rs_device.

Reimplemented in rsimpl::zr300_camera, and rsimpl::ds::ds_device.

Definition at line 215 of file device.cpp.

void rs_device_base::start_fw_logger ( char  fw_log_op_code,
int  grab_rate_in_ms,
std::timed_mutex &  mutex 
)
overridevirtual
void rs_device_base::start_motion_tracking ( )
protectedvirtual

Reimplemented in rsimpl::zr300_camera.

Definition at line 140 of file device.cpp.

void rs_device_base::start_video_streaming ( )
protectedvirtual

Definition at line 326 of file device.cpp.

void rs_device_base::stop ( rs_source  source)
overridevirtual

Implements rs_device.

Reimplemented in rsimpl::zr300_camera, and rsimpl::ds::ds_device.

Definition at line 239 of file device.cpp.

void rs_device_base::stop_fw_logger ( )
overridevirtual
void rs_device_base::stop_motion_tracking ( )
protectedvirtual

Reimplemented in rsimpl::zr300_camera.

Definition at line 187 of file device.cpp.

void rs_device_base::stop_video_streaming ( )
protectedvirtual

Definition at line 490 of file device.cpp.

bool rs_device_base::supports ( rs_capabilities  capability) const
overridevirtual

Implements rs_device.

Definition at line 606 of file device.cpp.

bool rs_device_base::supports ( rs_camera_info  info_param) const
overridevirtual

Implements rs_device.

Definition at line 627 of file device.cpp.

bool rs_device_base::supports_option ( rs_option  option) const
overridevirtual

Implements rs_device.

Reimplemented in rsimpl::zr300_camera, and rsimpl::ds::ds_device.

Definition at line 55 of file device.cpp.

void rs_device_base::update_device_info ( rsimpl::static_device_info info)
static

Definition at line 525 of file device.cpp.

void rs_device_base::wait_all_streams ( )
overridevirtual

Implements rs_device.

Definition at line 498 of file device.cpp.

Member Data Documentation

std::shared_ptr<rsimpl::syncronizing_archive> rs_device_base::archive
private

Definition at line 94 of file device.h.

std::chrono::high_resolution_clock::time_point rs_device_base::capture_started
private

Definition at line 90 of file device.h.

bool rs_device_base::capturing
private

Definition at line 88 of file device.h.

rsimpl::native_stream rs_device_base::color
private

Definition at line 81 of file device.h.

rsimpl::aligned_stream rs_device_base::color_to_depth
private

Definition at line 84 of file device.h.

rsimpl::device_config rs_device_base::config
protected

Definition at line 79 of file device.h.

bool rs_device_base::data_acquisition_active
private

Definition at line 89 of file device.h.

rsimpl::native_stream rs_device_base::depth
private

Definition at line 81 of file device.h.

rsimpl::aligned_stream rs_device_base::depth_to_color
private

Definition at line 84 of file device.h.

rsimpl::aligned_stream rs_device_base::depth_to_infrared2
private

Definition at line 84 of file device.h.

rsimpl::aligned_stream rs_device_base::depth_to_rect_color
private

Definition at line 84 of file device.h.

const std::shared_ptr<rsimpl::uvc::device> rs_device_base::device
private

Definition at line 77 of file device.h.

std::atomic<uint32_t> rs_device_base::event_queue_size
private

Definition at line 92 of file device.h.

std::atomic<uint32_t> rs_device_base::events_timeout
private

Definition at line 93 of file device.h.

rsimpl::native_stream rs_device_base::fisheye
private

Definition at line 81 of file device.h.

std::atomic<int> rs_device_base::frames_drops_counter
protected

Definition at line 116 of file device.h.

std::shared_ptr<std::thread> rs_device_base::fw_logger
private

Definition at line 99 of file device.h.

rsimpl::native_stream rs_device_base::infrared
private

Definition at line 81 of file device.h.

rsimpl::native_stream rs_device_base::infrared2
private

Definition at line 81 of file device.h.

rsimpl::aligned_stream rs_device_base::infrared2_to_depth
private

Definition at line 84 of file device.h.

std::atomic<bool> rs_device_base::keep_fw_logger_alive
protected

Definition at line 114 of file device.h.

std::atomic<uint32_t> rs_device_base::max_publish_list_size
private

Definition at line 91 of file device.h.

bool rs_device_base::motion_module_ready
protected

Definition at line 113 of file device.h.

rsimpl::native_stream* rs_device_base::native_streams[RS_STREAM_NATIVE_COUNT]
private

Definition at line 85 of file device.h.

rsimpl::point_stream rs_device_base::points
private

Definition at line 82 of file device.h.

rsimpl::rectified_stream rs_device_base::rect_color
private

Definition at line 83 of file device.h.

rsimpl::stream_interface* rs_device_base::streams[RS_STREAM_COUNT]
private

Definition at line 86 of file device.h.

std::string rs_device_base::usb_port_id
mutableprivate

Definition at line 96 of file device.h.

std::mutex rs_device_base::usb_port_mutex
mutableprivate

Definition at line 97 of file device.h.


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


librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Fri Mar 13 2020 03:16:19