mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 03:57:46 +08:00
Update SDK to v1.10.8
This commit is contained in:
@@ -77,6 +77,11 @@ typedef struct DevicePresetListImpl ob_device_preset_list;
|
||||
#define OB_FORMAT_ANY OB_FORMAT_UNKNOWN
|
||||
#define OB_PROFILE_DEFAULT 0
|
||||
|
||||
#define OB_ACCEL_FULL_SCALE_RANGE_ANY OB_ACCEL_FS_UNKNOWN
|
||||
#define OB_ACCEL_SAMPLE_RATE_ANY OB_SAMPLE_RATE_UNKNOWN
|
||||
#define OB_GYRO_FULL_SCALE_RANGE_ANY OB_GYRO_FS_UNKNOWN
|
||||
#define OB_GYRO_SAMPLE_RATE_ANY OB_SAMPLE_RATE_UNKNOWN
|
||||
|
||||
/**
|
||||
* @brief send data or receive data return status type
|
||||
*/
|
||||
@@ -458,7 +463,7 @@ typedef struct {
|
||||
OBCameraIntrinsic rgbIntrinsic; ///< Color camera internal parameters
|
||||
OBCameraDistortion depthDistortion; ///< Depth camera distortion parameters
|
||||
OBCameraDistortion rgbDistortion; ///< Color camera distortion parameters
|
||||
OBD2CTransform transform; ///< Rotation/transformation matrix
|
||||
OBD2CTransform transform; ///< Rotation/transformation matrix (from depth to color)
|
||||
bool isMirrored; ///< Whether the image frame corresponding to this group of parameters is mirrored
|
||||
} OBCameraParam, ob_camera_param;
|
||||
|
||||
@@ -576,6 +581,7 @@ typedef enum {
|
||||
* @brief Enumeration of IMU sample rate values (gyroscope or accelerometer)
|
||||
*/
|
||||
typedef enum {
|
||||
OB_SAMPLE_RATE_UNKNOWN = 0, /**< Unknown sample rate */
|
||||
OB_SAMPLE_RATE_1_5625_HZ = 1, /**< 1.5625Hz */
|
||||
OB_SAMPLE_RATE_3_125_HZ, /**< 3.125Hz */
|
||||
OB_SAMPLE_RATE_6_25_HZ, /**< 6.25Hz */
|
||||
@@ -598,14 +604,15 @@ typedef enum {
|
||||
* @brief Enumeration of gyroscope ranges
|
||||
*/
|
||||
typedef enum {
|
||||
OB_GYRO_FS_16dps = 1, /**< 16 degrees per second */
|
||||
OB_GYRO_FS_31dps, /**< 31 degrees per second */
|
||||
OB_GYRO_FS_62dps, /**< 62 degrees per second */
|
||||
OB_GYRO_FS_125dps, /**< 125 degrees per second */
|
||||
OB_GYRO_FS_250dps, /**< 250 degrees per second */
|
||||
OB_GYRO_FS_500dps, /**< 500 degrees per second */
|
||||
OB_GYRO_FS_1000dps, /**< 1000 degrees per second */
|
||||
OB_GYRO_FS_2000dps, /**< 2000 degrees per second */
|
||||
OB_GYRO_FS_UNKNOWN = 0, /**< Unknown range */
|
||||
OB_GYRO_FS_16dps = 1, /**< 16 degrees per second */
|
||||
OB_GYRO_FS_31dps, /**< 31 degrees per second */
|
||||
OB_GYRO_FS_62dps, /**< 62 degrees per second */
|
||||
OB_GYRO_FS_125dps, /**< 125 degrees per second */
|
||||
OB_GYRO_FS_250dps, /**< 250 degrees per second */
|
||||
OB_GYRO_FS_500dps, /**< 500 degrees per second */
|
||||
OB_GYRO_FS_1000dps, /**< 1000 degrees per second */
|
||||
OB_GYRO_FS_2000dps, /**< 2000 degrees per second */
|
||||
} OBGyroFullScaleRange,
|
||||
ob_gyro_full_scale_range, OB_GYRO_FULL_SCALE_RANGE;
|
||||
|
||||
@@ -613,10 +620,11 @@ typedef enum {
|
||||
* @brief Enumeration of accelerometer ranges
|
||||
*/
|
||||
typedef enum {
|
||||
OB_ACCEL_FS_2g = 1, /**< 1x the acceleration of gravity */
|
||||
OB_ACCEL_FS_4g, /**< 4x the acceleration of gravity */
|
||||
OB_ACCEL_FS_8g, /**< 8x the acceleration of gravity */
|
||||
OB_ACCEL_FS_16g, /**< 16x the acceleration of gravity */
|
||||
OB_ACCEL_FS_UNKNOWN = 0, /**< Unknown range */
|
||||
OB_ACCEL_FS_2g = 1, /**< 1x the acceleration of gravity */
|
||||
OB_ACCEL_FS_4g, /**< 4x the acceleration of gravity */
|
||||
OB_ACCEL_FS_8g, /**< 8x the acceleration of gravity */
|
||||
OB_ACCEL_FS_16g, /**< 16x the acceleration of gravity */
|
||||
} OBAccelFullScaleRange,
|
||||
ob_accel_full_scale_range, OB_ACCEL_FULL_SCALE_RANGE;
|
||||
|
||||
@@ -995,7 +1003,6 @@ typedef struct {
|
||||
uint16_t disp_diff;
|
||||
OBDDONoiseRemovalType type;
|
||||
} OBNoiseRemovalFilterParams, ob_noise_removal_filter_params;
|
||||
;
|
||||
|
||||
/**
|
||||
* @brief Control command protocol version number
|
||||
|
||||
@@ -263,6 +263,51 @@ void ob_delete_config(ob_config *config, ob_error **error);
|
||||
*/
|
||||
void ob_config_enable_stream(ob_config *config, ob_stream_profile *profile, ob_error **error);
|
||||
|
||||
/**
|
||||
* @brief Enable a video stream to be used in the configuration.
|
||||
*
|
||||
* This function configures and enables a video stream with specific parameters.
|
||||
* Users must specify all parameters explicitly as C does not support default arguments.
|
||||
* Refer to the product manual for details on supported resolutions and formats for different camera models.
|
||||
*
|
||||
* @param config Pointer to the configuration structure.
|
||||
* @param type The video stream type.
|
||||
* @param width The video stream width.
|
||||
* @param height The video stream height.
|
||||
* @param fps The video stream frame rate.
|
||||
* @param format The video stream format.
|
||||
* @param error Pointer to store the error if operation fails.
|
||||
*/
|
||||
void ob_config_enable_video_stream(ob_config *config, ob_stream_type type, int width, int height, int fps, ob_format format, ob_error **error);
|
||||
|
||||
/**
|
||||
* @brief Enable an accelerometer stream to be used in the configuration.
|
||||
*
|
||||
* This function configures and enables an accelerometer stream with specific parameters.
|
||||
* Users must specify all parameters explicitly. For details on available full-scale ranges and sample rates,
|
||||
* please refer to the product manual.
|
||||
*
|
||||
* @param config Pointer to the configuration structure.
|
||||
* @param fullScaleRange The full-scale range of the accelerometer.
|
||||
* @param sampleRate The sample rate of the accelerometer.
|
||||
* @param error Pointer to store the error if operation fails.
|
||||
*/
|
||||
void ob_config_enable_accel_stream(ob_config *config, ob_accel_full_scale_range full_scale_range, ob_accel_sample_rate sample_rate, ob_error **error);
|
||||
|
||||
/**
|
||||
* @brief Enable a gyroscope stream to be used in the configuration.
|
||||
*
|
||||
* This function configures and enables a gyroscope stream with specific parameters.
|
||||
* Users must specify all parameters explicitly. For details on available full-scale ranges and sample rates,
|
||||
* please refer to the product manual.
|
||||
*
|
||||
* @param config Pointer to the configuration structure.
|
||||
* @param fullScaleRange The full-scale range of the gyroscope.
|
||||
* @param sampleRate The sample rate of the gyroscope.
|
||||
* @param error Pointer to store the error if operation fails.
|
||||
*/
|
||||
void ob_config_enable_gyro_stream(ob_config *config, ob_gyro_full_scale_range full_scale_range, ob_gyro_sample_rate sample_rate, ob_error **error);
|
||||
|
||||
/**
|
||||
* @deprecated Use @ref ob_config_enable_stream instead
|
||||
* @brief Enable all streams in the pipeline configuration
|
||||
|
||||
@@ -413,6 +413,26 @@ typedef enum {
|
||||
*/
|
||||
OB_PROP_IR_BRIGHTNESS_INT = 184,
|
||||
|
||||
/**
|
||||
* @brief slave device sync status
|
||||
*/
|
||||
OB_PROP_SLAVE_DEVICE_SYNC_STATUS_BOOL = 188,
|
||||
|
||||
/**
|
||||
* @brief Color AE max exposure
|
||||
*/
|
||||
OB_PROP_COLOR_AE_MAX_EXPOSURE_INT = 189,
|
||||
|
||||
/**
|
||||
* @brief IR AE max exposure
|
||||
*/
|
||||
OB_PROP_IR_AE_MAX_EXPOSURE_INT = 190,
|
||||
|
||||
/**
|
||||
* @brief disparity search range mode
|
||||
*/
|
||||
OB_PROP_DISP_SEARCH_RANGE_MODE_INT = 191,
|
||||
|
||||
/**
|
||||
* @brief Baseline calibration parameters
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user