rs_context.h
Go to the documentation of this file.
1 /* License: Apache 2.0. See LICENSE file in root directory.
2  Copyright(c) 2017 Intel Corporation. All Rights Reserved. */
3 
9 #ifndef LIBREALSENSE_RS2_CONTEXT_H
10 #define LIBREALSENSE_RS2_CONTEXT_H
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 #include "rs_types.h"
16 
23 rs2_context* rs2_create_context(int api_version, rs2_error** error);
24 
29 void rs2_delete_context(rs2_context* context);
30 
39 
48 
57 
65 
72 void rs2_context_remove_device(rs2_context* ctx, const char* file, rs2_error** error);
73 
82 
90 
91 #define RS2_PRODUCT_LINE_ANY 0xff
92 #define RS2_PRODUCT_LINE_ANY_INTEL 0xfe
93 #define RS2_PRODUCT_LINE_NON_INTEL 0x01
94 #define RS2_PRODUCT_LINE_D400 0x02
95 #define RS2_PRODUCT_LINE_SR300 0x04
96 #define RS2_PRODUCT_LINE_L500 0x08
97 #define RS2_PRODUCT_LINE_T200 0x10
98 #define RS2_PRODUCT_LINE_DEPTH (RS2_PRODUCT_LINE_L500 | RS2_PRODUCT_LINE_SR300 | RS2_PRODUCT_LINE_D400)
99 #define RS2_PRODUCT_LINE_TRACKING RS2_PRODUCT_LINE_T200
100 
108 rs2_device_list* rs2_query_devices_ex(const rs2_context* context, int product_mask, rs2_error** error);
109 
117 
123 
133 
142 
143 
144 #ifdef __cplusplus
145 }
146 #endif
147 #endif
rs2_device_list * rs2_query_devices(const rs2_context *context, rs2_error **error)
Definition: rs.cpp:208
rs2_device_hub * rs2_create_device_hub(const rs2_context *context, rs2_error **error)
Creates RealSense device_hub .
Definition: rs.cpp:178
rs2_context * rs2_create_context(int api_version, rs2_error **error)
Creates RealSense context that is required for the rest of the API.
Definition: rs.cpp:163
void rs2_delete_context(rs2_context *context)
Frees the relevant context object.
Definition: rs.cpp:171
rs2_device * rs2_context_add_device(rs2_context *ctx, const char *file, rs2_error **error)
Definition: rs.cpp:1519
rs2_device_list * rs2_query_devices_ex(const rs2_context *context, int product_mask, rs2_error **error)
Definition: rs.cpp:214
Exposes RealSense structs.
int rs2_device_hub_is_device_connected(const rs2_device_hub *hub, const rs2_device *device, rs2_error **error)
Definition: rs.cpp:199
void rs2_delete_device_hub(const rs2_device_hub *hub)
Frees the relevant device hub object.
Definition: rs.cpp:184
void(* rs2_devices_changed_callback_ptr)(rs2_device_list *, rs2_device_list *, void *)
Definition: rs_types.h:295
Definition: api.h:28
def callback(frame)
Definition: t265_stereo.py:91
void rs2_context_unload_tracking_module(rs2_context *ctx, rs2_error **error)
Definition: rs.cpp:1547
void rs2_context_add_software_device(rs2_context *ctx, rs2_device *dev, rs2_error **error)
Definition: rs.cpp:1529
void rs2_set_devices_changed_callback_cpp(rs2_context *context, rs2_devices_changed_callback *callback, rs2_error **error)
Definition: rs.cpp:823
void rs2_set_devices_changed_callback(const rs2_context *context, rs2_devices_changed_callback_ptr callback, void *user, rs2_error **error)
Definition: rs.cpp:787
void rs2_context_remove_device(rs2_context *ctx, const char *file, rs2_error **error)
Definition: rs.cpp:1539
rs2_device * rs2_device_hub_wait_for_device(const rs2_device_hub *hub, rs2_error **error)
Definition: rs.cpp:191
auto device
Definition: pyrs_net.cpp:17


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:40