RealSense Cross Platform API
RealSense Cross-platform API
Functions
rs_safety_sensor.h File Reference

Exposes RealSense safety sensor functionality for C compilers. More...

#include "rs_types.h"

Go to the source code of this file.

Functions

const rs2_raw_data_bufferrs2_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)
 
const rs2_raw_data_bufferrs2_get_safety_interface_config (rs2_sensor const *sensor, rs2_calib_location loc, rs2_error **error)
 
void rs2_set_safety_interface_config (rs2_sensor const *sensor, const char *sic_json_str, rs2_error **error)
 
const rs2_raw_data_bufferrs2_get_application_config (rs2_sensor const *sensor, rs2_error **error)
 
void rs2_set_application_config (rs2_sensor const *sensor, const char *application_config_json_str, rs2_error **error)
 

Detailed Description

Exposes RealSense safety sensor functionality for C compilers.

Function Documentation

◆ rs2_get_application_config()

const rs2_raw_data_buffer* rs2_get_application_config ( rs2_sensor const *  sensor,
rs2_error **  error 
)

rs2_get_application_config

Parameters
[in]sensorSafety sensor
[out]errorIf non-null, receives any error that occurs during this call, otherwise, errors are ignored
Returns
JSON string representing the application config as rs2_raw_data_buffer

◆ rs2_get_safety_interface_config()

const rs2_raw_data_buffer* rs2_get_safety_interface_config ( rs2_sensor const *  sensor,
rs2_calib_location  loc,
rs2_error **  error 
)

rs2_get_safety_interface_config

Parameters
[in]sensorSafety sensor
[out]locCalibration location that needs to be read from
[out]errorIf non-null, receives any error that occurs during this call, otherwise, errors are ignored
Returns
JSON string representing the safety interface config as rs2_raw_data_buffer

◆ rs2_get_safety_preset()

const rs2_raw_data_buffer* rs2_get_safety_preset ( rs2_sensor const *  sensor,
int  index,
rs2_error **  error 
)

rs2_get_safety_preset

Parameters
[in]sensorSafety sensor
[in]indexIndex to read from
[out]errorIf non-null, receives any error that occurs during this call, otherwise, errors are ignored
Returns
JSON string representing the safety preset at the given index as rs2_raw_data_buffer

◆ rs2_set_application_config()

void rs2_set_application_config ( rs2_sensor const *  sensor,
const char *  application_config_json_str,
rs2_error **  error 
)

rs2_set_application_config

Parameters
[in]sensorSafety sensor
[in]application_config_json_strApplication config as JSON string
[out]errorIf non-null, receives any error that occurs during this call, otherwise, errors are ignored

◆ rs2_set_safety_interface_config()

void rs2_set_safety_interface_config ( rs2_sensor const *  sensor,
const char *  sic_json_str,
rs2_error **  error 
)

rs2_set_safety_interface_config

Parameters
[in]sensorSafety sensor
[in]sic_json_strSafety interface config as JSON string
[out]errorIf non-null, receives any error that occurs during this call, otherwise, errors are ignored

◆ rs2_set_safety_preset()

void rs2_set_safety_preset ( rs2_sensor const *  sensor,
int  index,
const char *  sp_json_str,
rs2_error **  error 
)

rs2_set_safety_preset

Parameters
[in]sensorSafety sensor
[in]indexIndex to write to
[in]sp_json_strSafety preset as JSON string
[out]errorIf non-null, receives any error that occurs during this call, otherwise, errors are ignored