Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
librealsense::l500_depth_sensor Class Reference

#include <l500-depth.h>

Inheritance diagram for librealsense::l500_depth_sensor:
Inheritance graph
[legend]

Public Member Functions

void create_snapshot (std::shared_ptr< depth_sensor > &snapshot) const override
 
void create_snapshot (std::shared_ptr< l500_depth_sensor_interface > &snapshot) const override
 
void enable_recording (std::function< void(const depth_sensor &)> recording_function) override
 
void enable_recording (std::function< void(const l500_depth_sensor_interface &)> recording_function) override
 
stream_profiles get_debug_stream_profiles () const override
 
float get_depth_offset () const
 
float get_depth_scale () const override
 
rs2_dsm_params get_dsm_params () const override
 
ivcam2::intrinsic_depth get_intrinsic () const override
 
rs2_intrinsics get_intrinsics (const stream_profile &profile) const override
 
float get_max_usable_depth_range () const override
 
processing_blocks get_recommended_processing_blocks () const override
 
std::vector< rs2_optionget_supported_options () const override
 
stream_profiles init_stream_profiles () override
 
std::shared_ptr< stream_profile_interfaceis_color_sensor_needed () const
 
bool is_max_range_preset () const
 
 l500_depth_sensor (l500_device *owner, std::shared_ptr< uvc_sensor > uvc_sensor, std::map< uint32_t, rs2_format > l500_depth_sourcc_to_rs2_format_map, std::map< uint32_t, rs2_stream > l500_depth_sourcc_to_rs2_stream_map)
 
void open (const stream_profiles &requests) override
 
void override_dsm_params (rs2_dsm_params const &dsm_params) override
 
void override_extrinsics (rs2_extrinsics const &extr) override
 
void override_intrinsics (rs2_intrinsics const &intr) override
 
int read_algo_version ()
 
float read_baseline () const override
 
float read_znorm ()
 
void reset_calibration () override
 
void start (frame_callback_ptr callback) override
 
void stop () override
 
 ~l500_depth_sensor ()
 
- Public Member Functions inherited from librealsense::synthetic_sensor
void close () override
 
frame_callback_ptr get_frames_callback () const override
 
std::shared_ptr< sensor_baseget_raw_sensor () const
 
bool is_opened () const override
 
bool is_streaming () const override
 
void open (const stream_profiles &requests) override
 
int register_before_streaming_changes_callback (std::function< void(bool)> callback) override
 
void register_metadata (rs2_frame_metadata_value metadata, std::shared_ptr< md_attribute_parser_base > metadata_parser) const override
 
void register_notifications_callback (notifications_callback_ptr callback) override
 
virtual void register_option (rs2_option id, std::shared_ptr< option > option)
 
void register_processing_block (const std::vector< stream_profile > &from, const std::vector< stream_profile > &to, std::function< std::shared_ptr< processing_block >(void)> generate_func)
 
void register_processing_block (const processing_block_factory &pbf)
 
void register_processing_block (const std::vector< processing_block_factory > &pbfs)
 
void register_pu (rs2_option id)
 
void set_frames_callback (frame_callback_ptr callback) override
 
void start (frame_callback_ptr callback) override
 
void stop () override
 
 synthetic_sensor (std::string name, std::shared_ptr< sensor_base > sensor, device *device, const std::map< uint32_t, rs2_format > &fourcc_to_rs2_format_map=std::map< uint32_t, rs2_format >(), const std::map< uint32_t, rs2_stream > &fourcc_to_rs2_stream_map=std::map< uint32_t, rs2_stream >())
 
virtual bool try_register_option (rs2_option id, std::shared_ptr< option > option)
 
bool try_register_pu (rs2_option id)
 
void unregister_before_start_callback (int token) override
 
void unregister_option (rs2_option id)
 
 ~synthetic_sensor () override
 
- Public Member Functions inherited from librealsense::sensor_base
rs2_format fourcc_to_rs2_format (uint32_t format) const
 
rs2_stream fourcc_to_rs2_stream (uint32_t fourcc_format) const
 
stream_profiles get_active_streams () const override
 
device_interfaceget_device () override
 
std::shared_ptr< std::map< uint32_t, rs2_format > > & get_fourcc_to_rs2_format_map ()
 
std::shared_ptr< std::map< uint32_t, rs2_stream > > & get_fourcc_to_rs2_stream_map ()
 
const std::stringget_info (rs2_camera_info info) const override
 
notifications_callback_ptr get_notifications_callback () const override
 
virtual std::shared_ptr< notifications_processorget_notifications_processor () const
 
processing_blocks get_recommended_processing_blocks () const override
 
stream_profiles get_stream_profiles (int tag=profile_tag::PROFILE_TAG_ANY) const override
 
void register_on_open (on_open callback)
 
 sensor_base (std::string name, device *device, recommended_proccesing_blocks_interface *owner)
 
void set_source_owner (sensor_base *owner)
 
bool supports_info (rs2_camera_info info) const override
 
virtual ~sensor_base () override
 
- Public Member Functions inherited from librealsense::sensor_interface
virtual ~sensor_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::options_interface
virtual ~options_interface ()=default
 
- Public Member Functions inherited from librealsense::recordable< options_interface >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::recommended_proccesing_blocks_interface
virtual ~recommended_proccesing_blocks_interface ()=default
 
- Public Member Functions inherited from librealsense::options_container
void create_snapshot (std::shared_ptr< options_interface > &snapshot) const override
 
void enable_recording (std::function< void(const options_interface &)> record_action) override
 
optionget_option (rs2_option id) override
 
const optionget_option (rs2_option id) const override
 
std::shared_ptr< optionget_option_handler (rs2_option id)
 
std::shared_ptr< optionget_option_handler (rs2_option id) const
 
virtual const char * get_option_name (rs2_option option) const override
 
void register_option (rs2_option id, std::shared_ptr< option > option)
 
bool supports_option (rs2_option id) const override
 
void unregister_option (rs2_option id)
 
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::info_container
void create_snapshot (std::shared_ptr< info_interface > &snapshot) const override
 
void enable_recording (std::function< void(const info_interface &)> record_action) override
 
void register_info (rs2_camera_info info, const std::string &val)
 
void update (std::shared_ptr< extension_snapshot > ext) override
 
void update_info (rs2_camera_info info, const std::string &val)
 
- Public Member Functions inherited from librealsense::recommended_proccesing_blocks_base
virtual void create_snapshot (std::shared_ptr< recommended_proccesing_blocks_interface > &snapshot) const override
 
virtual void enable_recording (std::function< void(const recommended_proccesing_blocks_interface &)> recording_function) override
 
 recommended_proccesing_blocks_base (recommended_proccesing_blocks_interface *owner)
 
- Public Member Functions inherited from librealsense::recordable< recommended_proccesing_blocks_interface >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::depth_sensor
virtual ~depth_sensor ()=default
 
- Public Member Functions inherited from librealsense::recordable< depth_sensor >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::l500_depth_sensor_interface
virtual ~l500_depth_sensor_interface ()=default
 
- Public Member Functions inherited from librealsense::recordable< l500_depth_sensor_interface >
virtual ~recordable ()=default
 

Static Public Member Functions

static ivcam2::intrinsic_params get_intrinsic_params (const uint32_t width, const uint32_t height, ivcam2::intrinsic_depth intrinsic)
 
static processing_blocks get_l500_recommended_proccesing_blocks ()
 

Private Attributes

action_delayer _action_delayer
 
float _depth_units
 
l500_device *const _owner
 
stream_profiles _user_requests
 
stream_profiles _validator_requests
 

Additional Inherited Members

- Protected Member Functions inherited from librealsense::synthetic_sensor
void add_source_profiles_missing_data ()
 
- Protected Member Functions inherited from librealsense::sensor_base
void assign_stream (const std::shared_ptr< stream_interface > &stream, std::shared_ptr< stream_profile_interface > target) const
 
std::shared_ptr< framegenerate_frame_from_data (const platform::frame_object &fo, frame_timestamp_reader *timestamp_reader, const rs2_time_t &last_timestamp, const unsigned long long &last_frame_number, std::shared_ptr< stream_profile_interface > profile)
 
void raise_on_before_streaming_changes (bool streaming)
 
void set_active_streams (const stream_profiles &requests)
 
- Protected Attributes inherited from librealsense::sensor_base
std::shared_ptr< std::map< uint32_t, rs2_format > > _fourcc_to_rs2_format
 
std::shared_ptr< std::map< uint32_t, rs2_stream > > _fourcc_to_rs2_stream
 
std::vector< platform::stream_profile_internal_config
 
std::atomic< bool > _is_opened
 
std::atomic< bool > _is_streaming
 
std::shared_ptr< metadata_parser_map_metadata_parsers = nullptr
 
std::shared_ptr< notifications_processor_notifications_processor
 
on_open _on_open
 
device_owner
 
frame_source _source
 
sensor_base_source_owner = nullptr
 
std::vector< platform::stream_profile_uvc_profiles
 
- Protected Attributes inherited from librealsense::options_container
std::map< rs2_option, std::shared_ptr< option > > _options
 
std::function< void(const options_interface &)> _recording_function = [](const options_interface&) {}
 

Detailed Description

Definition at line 90 of file l500-depth.h.

Constructor & Destructor Documentation

librealsense::l500_depth_sensor::l500_depth_sensor ( l500_device owner,
std::shared_ptr< uvc_sensor uvc_sensor,
std::map< uint32_t, rs2_format l500_depth_sourcc_to_rs2_format_map,
std::map< uint32_t, rs2_stream l500_depth_sourcc_to_rs2_stream_map 
)
explicit

Definition at line 250 of file l500-depth.cpp.

librealsense::l500_depth_sensor::~l500_depth_sensor ( )

Definition at line 274 of file l500-depth.cpp.

Member Function Documentation

void librealsense::l500_depth_sensor::create_snapshot ( std::shared_ptr< depth_sensor > &  snapshot) const
inlineoverridevirtual

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< depth_sensor >.

Definition at line 228 of file l500-depth.h.

void librealsense::l500_depth_sensor::create_snapshot ( std::shared_ptr< l500_depth_sensor_interface > &  snapshot) const
inlineoverridevirtual

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< l500_depth_sensor_interface >.

Definition at line 239 of file l500-depth.h.

void librealsense::l500_depth_sensor::enable_recording ( std::function< void(const depth_sensor &)>  recording_function)
inlineoverridevirtual

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

Implements librealsense::recordable< depth_sensor >.

Definition at line 232 of file l500-depth.h.

void librealsense::l500_depth_sensor::enable_recording ( std::function< void(const l500_depth_sensor_interface &)>  recording_function)
inlineoverridevirtual

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

Implements librealsense::recordable< l500_depth_sensor_interface >.

Definition at line 244 of file l500-depth.h.

stream_profiles librealsense::l500_depth_sensor::get_debug_stream_profiles ( ) const
overridevirtual

Implements librealsense::debug_stream_sensor.

Definition at line 371 of file l500-depth.cpp.

float librealsense::l500_depth_sensor::get_depth_offset ( ) const

Definition at line 421 of file l500-depth.cpp.

float librealsense::l500_depth_sensor::get_depth_scale ( ) const
inlineoverridevirtual

Implements librealsense::depth_sensor.

Definition at line 216 of file l500-depth.h.

rs2_dsm_params librealsense::l500_depth_sensor::get_dsm_params ( ) const
overridevirtual

Implements librealsense::calibrated_sensor.

Definition at line 303 of file l500-depth.cpp.

ivcam2::intrinsic_depth librealsense::l500_depth_sensor::get_intrinsic ( ) const
inlineoverridevirtual

Implements librealsense::l500_depth_sensor_interface.

Definition at line 218 of file l500-depth.h.

static ivcam2::intrinsic_params librealsense::l500_depth_sensor::get_intrinsic_params ( const uint32_t  width,
const uint32_t  height,
ivcam2::intrinsic_depth  intrinsic 
)
inlinestatic

Definition at line 126 of file l500-depth.h.

rs2_intrinsics librealsense::l500_depth_sensor::get_intrinsics ( const stream_profile profile) const
inlineoverridevirtual

Implements librealsense::video_sensor_interface.

Definition at line 143 of file l500-depth.h.

processing_blocks librealsense::l500_depth_sensor::get_l500_recommended_proccesing_blocks ( )
static

Definition at line 481 of file l500-depth.cpp.

float librealsense::l500_depth_sensor::get_max_usable_depth_range ( ) const
overridevirtual

Implements librealsense::max_usable_range_sensor.

Definition at line 351 of file l500-depth.cpp.

processing_blocks librealsense::l500_depth_sensor::get_recommended_processing_blocks ( ) const
inlineoverridevirtual

Reimplemented from librealsense::recommended_proccesing_blocks_base.

Definition at line 249 of file l500-depth.h.

std::vector<rs2_option> librealsense::l500_depth_sensor::get_supported_options ( void  ) const
inlineoverridevirtual

Reimplemented from librealsense::options_container.

Definition at line 109 of file l500-depth.h.

stream_profiles librealsense::l500_depth_sensor::init_stream_profiles ( )
inlineoverridevirtual

Reimplemented from librealsense::synthetic_sensor.

Definition at line 174 of file l500-depth.h.

std::shared_ptr< stream_profile_interface > librealsense::l500_depth_sensor::is_color_sensor_needed ( ) const

Definition at line 590 of file l500-depth.cpp.

bool librealsense::l500_depth_sensor::is_max_range_preset ( ) const

Definition at line 377 of file l500-depth.cpp.

void librealsense::l500_depth_sensor::open ( const stream_profiles requests)
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 646 of file l500-depth.cpp.

void librealsense::l500_depth_sensor::override_dsm_params ( rs2_dsm_params const &  dsm_params)
overridevirtual

Implements librealsense::calibrated_sensor.

Definition at line 320 of file l500-depth.cpp.

void librealsense::l500_depth_sensor::override_extrinsics ( rs2_extrinsics const &  extr)
overridevirtual

Implements librealsense::calibrated_sensor.

Definition at line 298 of file l500-depth.cpp.

void librealsense::l500_depth_sensor::override_intrinsics ( rs2_intrinsics const &  intr)
overridevirtual

Implements librealsense::calibrated_sensor.

Definition at line 293 of file l500-depth.cpp.

int librealsense::l500_depth_sensor::read_algo_version ( )

Definition at line 279 of file l500-depth.cpp.

float librealsense::l500_depth_sensor::read_baseline ( ) const
overridevirtual

Implements librealsense::l500_depth_sensor_interface.

Definition at line 397 of file l500-depth.cpp.

float librealsense::l500_depth_sensor::read_znorm ( )

Definition at line 410 of file l500-depth.cpp.

void librealsense::l500_depth_sensor::reset_calibration ( )
overridevirtual

Implements librealsense::calibrated_sensor.

Definition at line 344 of file l500-depth.cpp.

void librealsense::l500_depth_sensor::start ( frame_callback_ptr  callback)
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 488 of file l500-depth.cpp.

void librealsense::l500_depth_sensor::stop ( )
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 564 of file l500-depth.cpp.

Member Data Documentation

action_delayer librealsense::l500_depth_sensor::_action_delayer
private

Definition at line 267 of file l500-depth.h.

float librealsense::l500_depth_sensor::_depth_units
private

Definition at line 269 of file l500-depth.h.

l500_device* const librealsense::l500_depth_sensor::_owner
private

Definition at line 268 of file l500-depth.h.

stream_profiles librealsense::l500_depth_sensor::_user_requests
private

Definition at line 270 of file l500-depth.h.

stream_profiles librealsense::l500_depth_sensor::_validator_requests
private

Definition at line 271 of file l500-depth.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:37