4 #ifndef LIBREALSENSE_RS2_TYPES_HPP 5 #define LIBREALSENSE_RS2_TYPES_HPP 8 #include "../h/rs_context.h" 9 #include "../h/rs_device.h" 10 #include "../h/rs_frame.h" 11 #include "../h/rs_processing.h" 12 #include "../h/rs_record_playback.h" 13 #include "../h/rs_sensor.h" 14 #include "../h/rs_pipeline.h" 50 virtual void on_destruction() = 0;
85 virtual void on_update_progress(
const float update_progress) = 0;
92 class error :
public std::runtime_error
127 #define RS2_ERROR_CLASS(name, base) \ 128 class name : public base\ 131 explicit name(rs2_error* e) noexcept : base(e) {}\ 142 #undef RS2_ERROR_CLASS 151 throw camera_disconnected_error(e);
153 throw backend_error(e);
155 throw invalid_value_error(e);
157 throw wrong_api_call_sequence_error(e);
159 throw not_implemented_error(e);
161 throw device_in_recovery_mode_error(e);
196 #endif // LIBREALSENSE_RS2_TYPES_HPP
GLenum GLuint GLenum GLsizei const GLchar * message
#define RS2_ERROR_CLASS(name, base)
rs2_exception_type
Exception types are the different categories of errors that RealSense API might return.
GLenum GLuint GLenum severity
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
void rs2_free_error(rs2_error *error)
std::ostream & operator<<(std::ostream &o, rs2_vector v)
virtual ~rs2_log_callback()
virtual void on_frame(rs2_frame *f)=0
virtual ~rs2_software_device_destruction_callback()
GLuint64 GLenum void * handle
virtual ~rs2_notifications_callback()
virtual ~rs2_playback_status_changed_callback()
virtual ~rs2_calibration_change_callback()
GLsizei const GLchar *const * string
GLfloat GLfloat GLfloat GLfloat h
status
Defines return codes that SDK interfaces use. Negative values indicate errors, a zero value indicates...
Quaternion used to represent rotation.
const std::string & get_failed_args() const
void(* log_callback_function_ptr)(rs2_log_severity severity, rs2_log_message const *msg)
virtual ~rs2_update_progress_callback()
const char * rs2_get_error_message(const rs2_error *error)
struct rs2_log_message rs2_log_message
virtual ~rs2_devices_changed_callback()
rs2_exception_type rs2_get_librealsense_exception_type(const rs2_error *error)
rs2_exception_type get_type() const
3D vector in Euclidean coordinate space
GLdouble GLdouble GLdouble q
error(const std::string &message)
virtual ~rs2_frame_processor_callback()
virtual ~rs2_frame_callback()
GLsizei GLsizei GLchar * source
rs2_log_severity
Severity of the librealsense logger.
const char * rs2_get_failed_function(const rs2_error *error)
const char * rs2_get_failed_args(const rs2_error *error)
const std::string & get_failed_function() const
struct rs2_frame rs2_frame