RealSense Cross Platform API
RealSense Cross-platform API
rs_safety_sensor.h
Go to the documentation of this file.
1 /* License: Apache 2.0. See LICENSE file in root directory.
2  Copyright(c) 2024 RealSense, Inc. All Rights Reserved. */
3 
10 #ifndef LIBREALSENSE_RS2_SAFETY_SENSOR_H
11 #define LIBREALSENSE_RS2_SAFETY_SENSOR_H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 #include "rs_types.h"
18 
26 const rs2_raw_data_buffer* rs2_get_safety_preset(rs2_sensor const* sensor, int index, rs2_error** error);
27 
35 void rs2_set_safety_preset(rs2_sensor const* sensor, int index, const char* sp_json_str, rs2_error** error);
36 
45 
52 void rs2_set_safety_interface_config(rs2_sensor const* sensor, const char* sic_json_str, rs2_error** error);
53 
61 
68 void rs2_set_application_config(rs2_sensor const* sensor, const char* application_config_json_str, rs2_error** error);
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 #endif // LIBREALSENSE_RS2_SAFETY_SENSOR_H
void rs2_set_application_config(rs2_sensor const *sensor, const char *application_config_json_str, rs2_error **error)
struct rs2_raw_data_buffer rs2_raw_data_buffer
Definition: rs_types.h:278
void rs2_set_safety_interface_config(rs2_sensor const *sensor, const char *sic_json_str, rs2_error **error)
rs2_calib_location
Definition: rs_types.h:255
const rs2_raw_data_buffer * rs2_get_application_config(rs2_sensor const *sensor, rs2_error **error)
struct rs2_sensor rs2_sensor
Definition: rs_types.h:300
const rs2_raw_data_buffer * rs2_get_safety_interface_config(rs2_sensor const *sensor, rs2_calib_location loc, rs2_error **error)
Exposes RealSense structs.
const rs2_raw_data_buffer * rs2_get_safety_preset(rs2_sensor const *sensor, int index, rs2_error **error)
void rs2_set_safety_preset(rs2_sensor const *sensor, int index, const char *sp_json_str, rs2_error **error)
struct rs2_error rs2_error
Definition: rs_types.h:276