4#ifndef LIBREALSENSE_RS2_SAFETY_SENSOR_HPP
5#define LIBREALSENSE_RS2_SAFETY_SENSOR_HPP
25 operator bool()
const {
return _sensor.get() !=
nullptr; }
29 std::vector<uint8_t> result;
43 result.insert(result.begin(),
start,
start + size);
45 return std::string(result.begin(), result.end());
57 std::vector<uint8_t> result;
71 result.insert(result.begin(),
start,
start + size);
73 return std::string(result.begin(), result.end());
87 std::vector<uint8_t> result;
101 result.insert(result.begin(),
start,
start + size);
103 return std::string(result.begin(), result.end());
static void handle(rs2_error *e)
Definition rs_types.hpp:167
void set_application_config(const std::string &application_config_json_str) const
Definition rs_safety_sensor.hpp:106
std::string get_application_config() const
Definition rs_safety_sensor.hpp:85
safety_sensor(sensor s)
Definition rs_safety_sensor.hpp:14
void set_safety_interface_config(const std::string &sic_json_str) const
Definition rs_safety_sensor.hpp:77
std::string get_safety_interface_config(rs2_calib_location calib_location=RS2_CALIB_LOCATION_RAM) const
Definition rs_safety_sensor.hpp:55
void set_safety_preset(int index, const std::string &sp_json_str) const
Definition rs_safety_sensor.hpp:48
std::string get_safety_preset(int index) const
Definition rs_safety_sensor.hpp:27
sensor()
Definition rs_sensor.hpp:349
std::shared_ptr< rs2_sensor > _sensor
Definition rs_sensor.hpp:388
const std::shared_ptr< rs2_sensor > & get() const
Definition rs_sensor.hpp:356
void start(T callback) const
Definition rs_sensor.hpp:186
Definition rs_processing_gl.hpp:13
const unsigned char * rs2_get_raw_data(const rs2_raw_data_buffer *buffer, rs2_error **error)
int rs2_get_raw_data_size(const rs2_raw_data_buffer *buffer, rs2_error **error)
void rs2_delete_raw_data(const rs2_raw_data_buffer *buffer)
void rs2_set_application_config(rs2_sensor const *sensor, const char *application_config_json_str, rs2_error **error)
void rs2_set_safety_preset(rs2_sensor const *sensor, int index, const char *sp_json_str, rs2_error **error)
const rs2_raw_data_buffer * rs2_get_safety_interface_config(rs2_sensor const *sensor, rs2_calib_location loc, rs2_error **error)
const rs2_raw_data_buffer * rs2_get_application_config(rs2_sensor const *sensor, rs2_error **error)
const rs2_raw_data_buffer * rs2_get_safety_preset(rs2_sensor const *sensor, int index, rs2_error **error)
void rs2_set_safety_interface_config(rs2_sensor const *sensor, const char *sic_json_str, rs2_error **error)
int rs2_is_sensor_extendable_to(const rs2_sensor *sensor, rs2_extension extension, rs2_error **error)
rs2_calib_location
Definition rs_types.h:256
@ RS2_CALIB_LOCATION_RAM
Definition rs_types.h:260
@ RS2_EXTENSION_SAFETY_SENSOR
Definition rs_types.h:196
struct rs2_error rs2_error
Definition rs_types.h:276