#include <rs_sensor.hpp>
◆ sensor() [1/2]
◆ sensor() [2/2]
rs2::sensor::sensor |
( |
std::shared_ptr< rs2_sensor > |
dev | ) |
|
|
inlineexplicitprotected |
◆ as()
template<class T >
T rs2::sensor::as |
( |
| ) |
const |
|
inline |
◆ close()
void rs2::sensor::close |
( |
| ) |
const |
|
inline |
close sensor for exclusive access this method should be used for releasing sensor resource
◆ get()
const std::shared_ptr<rs2_sensor>& rs2::sensor::get |
( |
| ) |
const |
|
inline |
◆ get_info()
retrieve camera specific information, like versions of various internal components
- Parameters
-
[in] | info | camera info type to retrieve |
- Returns
- the requested camera info string, in a format specific to the sensor model
◆ get_stream_profiles()
std::vector<stream_profile> rs2::sensor::get_stream_profiles |
( |
| ) |
const |
|
inline |
check if physical sensor is supported
- Returns
- list of stream profiles that given sensor can provide, should be released by rs2_delete_profiles_list
◆ is()
template<class T >
bool rs2::sensor::is |
( |
| ) |
const |
|
inline |
◆ open() [1/2]
open sensor for exclusive access, by committing to a configuration
- Parameters
-
[in] | profile | configuration committed by the sensor |
◆ open() [2/2]
void rs2::sensor::open |
( |
const std::vector< stream_profile > & |
profiles | ) |
const |
|
inline |
open sensor for exclusive access, by committing to composite configuration, specifying one or more stream profiles this method should be used for interdependent streams, such as depth and infrared, that have to be configured together
- Parameters
-
[in] | profiles | vector of configurations to be commited by the sensor |
◆ operator bool()
rs2::sensor::operator bool |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ set_notifications_callback()
template<class T >
void rs2::sensor::set_notifications_callback |
( |
T |
callback | ) |
const |
|
inline |
register notifications callback
- Parameters
-
[in] | callback | notifications callback |
◆ start()
template<class T >
void rs2::sensor::start |
( |
T |
callback | ) |
const |
|
inline |
Start passing frames into user provided callback
- Parameters
-
[in] | callback | Stream callback, can be any callable object accepting rs2::frame |
◆ stop()
void rs2::sensor::stop |
( |
| ) |
const |
|
inline |
◆ supports() [1/2]
bool rs2::options::supports |
|
inline |
check if particular option is supported
- Parameters
-
[in] | option | option id to be checked |
- Returns
- true if option is supported
◆ supports() [2/2]
check if specific camera info is supported
- Parameters
-
[in] | info | the parameter to check for support |
- Returns
- true if the parameter both exist and well-defined for the specific sensor
◆ _sensor
◆ context
friend rs2::sensor::context |
|
protected |
◆ device
friend rs2::sensor::device |
|
protected |
◆ device_base
friend rs2::sensor::device_base |
|
protected |
◆ device_list
friend rs2::sensor::device_list |
|
protected |
◆ roi_sensor
friend rs2::sensor::roi_sensor |
|
protected |
The documentation for this class was generated from the following file: