Class device
Defined in File rs_device.hpp
Inheritance Relationships
Derived Types
public rs2::calibrated_device
(Class calibrated_device)public rs2::calibration_change_device
(Class calibration_change_device)public rs2::debug_protocol
(Class debug_protocol)public rs2::firmware_logger
(Class firmware_logger)public rs2::playback
(Class playback)public rs2::recorder
(Class recorder)public rs2::serializable_device
(Class serializable_device)public rs2::software_device
(Class software_device)public rs2::updatable
(Class updatable)public rs2::update_device
(Class update_device)
Class Documentation
-
class device
Subclassed by rs2::calibrated_device, rs2::calibration_change_device, rs2::debug_protocol, rs2::firmware_logger, rs2::playback, rs2::recorder, rs2::serializable_device, rs2::software_device, rs2::updatable, rs2::update_device
Public Functions
-
inline std::vector<sensor> query_sensors() const
returns the list of adjacent devices, sharing the same physical parent composite device
- Returns:
the list of adjacent devices
-
inline std::string get_type() const
- Returns:
the type of device: USB/GMSL/DDS, etc.
-
inline std::string get_description() const
- Returns:
the one-line description: “[<type>] <name> s/n <#>”
-
inline bool supports(rs2_camera_info info) const
check if specific camera info is supported
- Parameters:
info – [in] the parameter to check for support
- Returns:
true if the parameter both exist and well-defined for the specific device
-
inline const char *get_info(rs2_camera_info info) const
retrieve camera specific information, like versions of various internal components
- Parameters:
info – [in] camera info type to retrieve
- Returns:
the requested camera info string, in a format specific to the device model
-
inline void hardware_reset()
send hardware reset request to the device
-
inline device()
-
inline operator bool() const
-
inline const std::shared_ptr<rs2_device> &get() const
-
inline bool is_connected() const
-
template<class T>
inline bool is() const
-
inline virtual ~device()
Protected Attributes
-
std::shared_ptr<rs2_device> _dev
Friends
- friend class rs2::context
- friend class rs2::device_list
- friend class rs2::pipeline_profile
- friend class rs2::device_hub
-
inline std::vector<sensor> query_sensors() const