#include <rs_context.hpp>
Public Member Functions | |
context () | |
context (std::shared_ptr< rs2_context > ctx) | |
device | get_sensor_parent (const sensor &s) const |
playback | load_device (const std::string &file) |
operator std::shared_ptr< rs2_context > () | |
std::vector< sensor > | query_all_sensors () const |
Generate a flat list of all available sensors from all RealSense devices. More... | |
device_list | query_devices () const |
device_list | query_devices (int mask) const |
template<class T > | |
void | set_devices_changed_callback (T callback) |
void | unload_device (const std::string &file) |
void | unload_tracking_module () |
Protected Attributes | |
std::shared_ptr< rs2_context > | _context |
Friends | |
class | rs2::device_hub |
class | rs2::pipeline |
class | rs2::software_device |
default librealsense context class includes realsense API version as provided by RS2_API_VERSION macro
Definition at line 96 of file rs_context.hpp.
|
inline |
Definition at line 99 of file rs_context.hpp.
|
inline |
Definition at line 209 of file rs_context.hpp.
Definition at line 154 of file rs_context.hpp.
|
inline |
Creates a device from a RealSense file
On successful load, the device will be appended to the context and a devices_changed event triggered
file | Path to a RealSense File |
Definition at line 184 of file rs_context.hpp.
|
inlineexplicit |
Definition at line 212 of file rs_context.hpp.
|
inline |
Generate a flat list of all available sensors from all RealSense devices.
Definition at line 142 of file rs_context.hpp.
|
inline |
create a static snapshot of all connected devices at the time of the call
Definition at line 112 of file rs_context.hpp.
|
inline |
create a static snapshot of all connected devices at the time of the call
Definition at line 127 of file rs_context.hpp.
|
inline |
register devices changed callback
[in] | callback | devices changed callback |
Definition at line 169 of file rs_context.hpp.
|
inline |
Definition at line 195 of file rs_context.hpp.
|
inline |
Definition at line 202 of file rs_context.hpp.
|
friend |
Definition at line 215 of file rs_context.hpp.
|
friend |
Definition at line 212 of file rs_context.hpp.
|
friend |
Definition at line 216 of file rs_context.hpp.
|
protected |
Definition at line 218 of file rs_context.hpp.