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());
115 #endif // LIBREALSENSE_RS2_SAFETY_SENSOR_HPP Definition: rs_types.h:260
Definition: rs_sensor.hpp:103
void rs2_set_application_config(rs2_sensor const *sensor, const char *application_config_json_str, rs2_error **error)
void start(T callback) const
Definition: rs_sensor.hpp:186
void set_safety_preset(int index, const std::string &sp_json_str) const
Definition: rs_safety_sensor.hpp:48
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 unsigned char * rs2_get_raw_data(const rs2_raw_data_buffer *buffer, rs2_error **error)
Definition: rs_context.hpp:11
void rs2_delete_raw_data(const rs2_raw_data_buffer *buffer)
const rs2_raw_data_buffer * rs2_get_application_config(rs2_sensor const *sensor, rs2_error **error)
int rs2_get_raw_data_size(const rs2_raw_data_buffer *buffer, rs2_error **error)
const rs2_raw_data_buffer * rs2_get_safety_interface_config(rs2_sensor const *sensor, rs2_calib_location loc, rs2_error **error)
std::shared_ptr< rs2_sensor > _sensor
Definition: rs_sensor.hpp:388
Definition: rs_safety_sensor.hpp:11
const rs2_raw_data_buffer * rs2_get_safety_preset(rs2_sensor const *sensor, int index, rs2_error **error)
static void handle(rs2_error *e)
Definition: rs_types.hpp:167
Definition: rs_types.h:196
std::string get_safety_interface_config(rs2_calib_location calib_location=RS2_CALIB_LOCATION_RAM) const
Definition: rs_safety_sensor.hpp:55
int rs2_is_sensor_extendable_to(const rs2_sensor *sensor, rs2_extension extension, rs2_error **error)
void set_application_config(const std::string &application_config_json_str) const
Definition: rs_safety_sensor.hpp:106
safety_sensor(sensor s)
Definition: rs_safety_sensor.hpp:14
void rs2_set_safety_preset(rs2_sensor const *sensor, int index, const char *sp_json_str, rs2_error **error)
std::string get_application_config() const
Definition: rs_safety_sensor.hpp:85
const std::shared_ptr< rs2_sensor > & get() const
Definition: rs_sensor.hpp:356
struct rs2_error rs2_error
Definition: rs_types.h:276
std::string get_safety_preset(int index) const
Definition: rs_safety_sensor.hpp:27
void set_safety_interface_config(const std::string &sic_json_str) const
Definition: rs_safety_sensor.hpp:77