Config class for configuring pipeline parameters.
More...
#include <Pipeline.hpp>
Config class for configuring pipeline parameters.
The Config class provides an interface for configuring pipeline parameters.
Definition at line 210 of file Pipeline.hpp.
◆ Config()
Construct a new Config object.
◆ ~Config()
◆ enableStream()
void ob::Config::enableStream |
( |
std::shared_ptr< StreamProfile > |
streamProfile | ) |
|
Enable a stream to be used in the pipeline.
- Parameters
-
streamProfile | The stream configuration to be enabled |
◆ enableAllStream()
void ob::Config::enableAllStream |
( |
| ) |
|
◆ enableVideoStream()
Enable a video stream to be used in the pipeline.
This function allows users to enable a video stream with customizable parameters. If no parameters are specified, the stream will be enabled with default resolution settings. Users who wish to set custom resolutions should refer to the product manual, as available resolutions vary by camera model.
- Parameters
-
type | The video stream type. |
width | The video stream width (default is OB_WIDTH_ANY, which selects the default resolution). |
height | The video stream height (default is OB_HEIGHT_ANY, which selects the default resolution). |
fps | The video stream frame rate (default is OB_FPS_ANY, which selects the default frame rate). |
format | The video stream format (default is OB_FORMAT_ANY, which selects the default format). |
◆ enableAccelStream()
Enable an accelerometer stream to be used in the pipeline.
This function allows users to enable an accelerometer stream with customizable parameters. If no parameters are specified, the stream will be enabled with default settings. Users who wish to set custom full-scale ranges or sample rates should refer to the product manual, as available settings vary by device model.
- Parameters
-
fullScaleRange | The full-scale range of the accelerometer (default is OB_ACCEL_FULL_SCALE_RANGE_ANY, which selects the default range). |
sampleRate | The sample rate of the accelerometer (default is OB_ACCEL_SAMPLE_RATE_ANY, which selects the default rate). |
◆ enableGyroStream()
Enable a gyroscope stream to be used in the pipeline.
This function allows users to enable a gyroscope stream with customizable parameters. If no parameters are specified, the stream will be enabled with default settings. Users who wish to set custom full-scale ranges or sample rates should refer to the product manual, as available settings vary by device model.
- Parameters
-
fullScaleRange | The full-scale range of the gyroscope (default is OB_GYRO_FULL_SCALE_RANGE_ANY, which selects the default range). |
sampleRate | The sample rate of the gyroscope (default is OB_GYRO_SAMPLE_RATE_ANY, which selects the default rate). |
◆ disableStream()
Disable a stream to be used in the pipeline.
- Parameters
-
streamType | The stream configuration to be disabled |
◆ disableAllStream()
void ob::Config::disableAllStream |
( |
| ) |
|
Disable all streams to be used in the pipeline.
◆ getEnabledStreamProfileList()
std::shared_ptr< StreamProfileList > ob::Config::getEnabledStreamProfileList |
( |
| ) |
const |
Get the Enabled Stream Profile List.
- Returns
- std::shared_ptr<StreamProfileList>
◆ setAlignMode()
Set the alignment mode.
- Parameters
-
◆ setDepthScaleRequire()
void ob::Config::setDepthScaleRequire |
( |
bool |
enable | ) |
|
Set whether the depth needs to be scaled after setting D2C.
- Parameters
-
enable | Whether scaling is required |
◆ setD2CTargetResolution()
void ob::Config::setD2CTargetResolution |
( |
uint32_t |
d2cTargetWidth, |
|
|
uint32_t |
d2cTargetHeight |
|
) |
| |
Set the D2C target resolution.
The D2C target resolution is applicable to cases where the color stream is not enabled using the OrbbecSDK and the depth needs to be D2C.
- Note
- When you use OrbbecSDK to enable the color stream, you also use this interface to set the D2C target resolution. The configuration of the enabled Color stream is preferred for D2C.
- Parameters
-
d2cTargetWidth | The D2C target width resolution |
d2cTargetHeight | The D2C target height resolution |
◆ setFrameAggregateOutputMode()
Set the frame aggregation output mode for the pipeline configuration.
The processing strategy when the FrameSet generated by the frame aggregation function does not contain the frames of all opened streams (which can be caused by different frame rates of each stream, or by the loss of frames of one stream): drop directly or output to the user.
- Parameters
-
◆ Pipeline
The documentation for this class was generated from the following file:
- E:/Projects/Jenkins/workspace/OrbbecSDK/libobsensor/include/libobsensor/hpp/Pipeline.hpp