Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
librealsense::ds5_device Class Reference

#include <ds5-device.h>

Inheritance diagram for librealsense::ds5_device:
librealsense::device librealsense::debug_interface librealsense::device_interface librealsense::info_container librealsense::recordable< debug_interface > librealsense::info_interface librealsense::info_interface librealsense::extension_snapshot librealsense::recordable< info_interface > librealsense::recordable< info_interface > librealsense::ds5_active librealsense::ds5_color librealsense::ds5_motion librealsense::ds5_rolling_shutter librealsense::ds5u_device

Public Member Functions

std::shared_ptr< uvc_sensorcreate_depth_device (std::shared_ptr< context > ctx, const std::vector< platform::uvc_device_info > &all_device_infos)
 
uvc_sensorget_depth_sensor ()
 
 ds5_device (std::shared_ptr< context > ctx, const platform::backend_device_group &group)
 
std::vector< uint8_t > send_receive_raw_data (const std::vector< uint8_t > &input) override
 
void hardware_reset () override
 
void create_snapshot (std::shared_ptr< debug_interface > &snapshot) const override
 
void enable_recording (std::function< void(const debug_interface &)> record_action) override
 
- Public Member Functions inherited from librealsense::device
virtual ~device ()
 
size_t get_sensors_count () const override
 
sensor_interfaceget_sensor (size_t subdevice) override
 
const sensor_interfaceget_sensor (size_t subdevice) const override
 
virtual std::shared_ptr< matchercreate_matcher (const frame_holder &frame) const override
 
size_t find_sensor_idx (const sensor_interface &s) const
 
std::shared_ptr< contextget_context () const override
 
platform::backend_device_group get_device_data () const override
 
std::pair< uint32_t, rs2_extrinsicsget_extrinsics (const stream_interface &stream) const override
 
bool is_valid () const override
 
- Public Member Functions inherited from librealsense::device_interface
virtual ~device_interface ()=default
 
- Public Member Functions inherited from librealsense::info_interface
virtual ~info_interface ()=default
 
- Public Member Functions inherited from librealsense::recordable< info_interface >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::info_container
const std::string & get_info (rs2_camera_info info) const override
 
bool supports_info (rs2_camera_info info) const override
 
void register_info (rs2_camera_info info, const std::string &val)
 
void update_info (rs2_camera_info info, const std::string &val)
 
void create_snapshot (std::shared_ptr< info_interface > &snapshot) const override
 
void enable_recording (std::function< void(const info_interface &)> record_action) override
 
void update (std::shared_ptr< extension_snapshot > ext) override
 
- Public Member Functions inherited from librealsense::extension_snapshot
virtual ~extension_snapshot ()=default
 
- Public Member Functions inherited from librealsense::recordable< debug_interface >
virtual ~recordable ()=default
 

Protected Member Functions

std::vector< uint8_t > get_raw_calibration_table (ds::calibration_table_id table_id) const
 
bool is_camera_in_advanced_mode () const
 
float get_stereo_baseline_mm () const
 
void init (std::shared_ptr< context > ctx, const platform::backend_device_group &group)
 
- Protected Member Functions inherited from librealsense::device
int add_sensor (std::shared_ptr< sensor_interface > sensor_base)
 
int assign_sensor (std::shared_ptr< sensor_interface > sensor_base, uint8_t idx)
 
void register_stream_to_extrinsic_group (const stream_interface &stream, uint32_t groupd_index)
 
uvc_sensorget_uvc_sensor (int subdevice)
 
 device (std::shared_ptr< context > ctx, const platform::backend_device_group group, bool device_changed_notifications=false)
 

Protected Attributes

std::shared_ptr< hw_monitor_hw_monitor
 
firmware_version _fw_version
 
std::shared_ptr< stream_interface_depth_stream
 
std::shared_ptr< stream_interface_left_ir_stream
 
std::shared_ptr< stream_interface_right_ir_stream
 
uint8_t _depth_device_idx
 
lazy< std::vector< uint8_t > > _coefficients_table_raw
 
std::unique_ptr< polling_error_handler_polling_error_handler
 
std::shared_ptr< lazy< rs2_extrinsics > > _left_right_extrinsics
 

Friends

class ds5_depth_sensor
 

Constructor & Destructor Documentation

◆ ds5_device()

librealsense::ds5_device::ds5_device ( std::shared_ptr< context ctx,
const platform::backend_device_group group 
)

Member Function Documentation

◆ create_depth_device()

std::shared_ptr<uvc_sensor> librealsense::ds5_device::create_depth_device ( std::shared_ptr< context ctx,
const std::vector< platform::uvc_device_info > &  all_device_infos 
)

◆ create_snapshot()

void librealsense::ds5_device::create_snapshot ( std::shared_ptr< debug_interface > &  snapshot) const
overridevirtual

Create a snapshot of the deriving extension. A snapshot of T is a reflection of the state and memory of T at the time of the call

Implements librealsense::recordable< debug_interface >.

◆ enable_recording()

void librealsense::ds5_device::enable_recording ( std::function< void(const debug_interface &)>  recording_function)
overridevirtual

Instruct the derived class to begin notifying on changes Derived class should call the recording_function with a reference of themselves

Implements librealsense::recordable< debug_interface >.

◆ get_depth_sensor()

uvc_sensor& librealsense::ds5_device::get_depth_sensor ( )
inline

◆ get_raw_calibration_table()

std::vector<uint8_t> librealsense::ds5_device::get_raw_calibration_table ( ds::calibration_table_id  table_id) const
protected

◆ get_stereo_baseline_mm()

float librealsense::ds5_device::get_stereo_baseline_mm ( ) const
protected

◆ hardware_reset()

void librealsense::ds5_device::hardware_reset ( )
overridevirtual

Reimplemented from librealsense::device.

◆ init()

void librealsense::ds5_device::init ( std::shared_ptr< context ctx,
const platform::backend_device_group group 
)
protected

◆ is_camera_in_advanced_mode()

bool librealsense::ds5_device::is_camera_in_advanced_mode ( ) const
protected

◆ send_receive_raw_data()

std::vector<uint8_t> librealsense::ds5_device::send_receive_raw_data ( const std::vector< uint8_t > &  input)
overridevirtual

Friends And Related Function Documentation

◆ ds5_depth_sensor

friend class ds5_depth_sensor
friend

Member Data Documentation

◆ _coefficients_table_raw

lazy<std::vector<uint8_t> > librealsense::ds5_device::_coefficients_table_raw
protected

◆ _depth_device_idx

uint8_t librealsense::ds5_device::_depth_device_idx
protected

◆ _depth_stream

std::shared_ptr<stream_interface> librealsense::ds5_device::_depth_stream
protected

◆ _fw_version

firmware_version librealsense::ds5_device::_fw_version
protected

◆ _hw_monitor

std::shared_ptr<hw_monitor> librealsense::ds5_device::_hw_monitor
protected

◆ _left_ir_stream

std::shared_ptr<stream_interface> librealsense::ds5_device::_left_ir_stream
protected

◆ _left_right_extrinsics

std::shared_ptr<lazy<rs2_extrinsics> > librealsense::ds5_device::_left_right_extrinsics
protected

◆ _polling_error_handler

std::unique_ptr<polling_error_handler> librealsense::ds5_device::_polling_error_handler
protected

◆ _right_ir_stream

std::shared_ptr<stream_interface> librealsense::ds5_device::_right_ir_stream
protected

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