OrbbecSDK 1.10.18
OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras
|
#include <Pipeline.hpp>
Public Member Functions | |
Pipeline () | |
Pipeline is a high-level interface for applications, algorithms related RGBD data streams. Pipeline can provide alignment inside and synchronized FrameSet. Pipeline() no parameter version, which opens the first device in the list of devices connected to the OS by default. If the application has obtained the device through the DeviceList, opening the Pipeline() at this time will throw an exception that the device has been created. | |
Pipeline (std::shared_ptr< Device > device) | |
Pipeline(std::shared_ptr< Device > device ) Function for multi-device operations. Multiple devices need to be obtained through DeviceList, and the device and pipeline are bound through this interface. | |
Pipeline (const char *filename) | |
Construct a pipeline for playback of recorded stream files. | |
~Pipeline () noexcept | |
Destroy the pipeline object. | |
void | start (std::shared_ptr< Config > config) |
Start the pipeline with configuration parameters. | |
void | start () |
Start the pipeline with default configuration parameters. | |
void | start (std::shared_ptr< Config > config, FrameSetCallback callback) |
Start the pipeline and set the frameset data callback. | |
void | stop () |
Stop the pipeline. | |
std::shared_ptr< StreamProfileList > | getEnabledStreamProfileList () |
get Enabled Stream Profile List,It must be called after the pipeline is started, otherwise it will return an empty list | |
std::shared_ptr< Config > | getConfig () |
Get the pipeline configuration parameters. | |
std::shared_ptr< FrameSet > | waitForFrames (uint32_t timeout_ms=1000) |
Wait for frameset data. | |
std::shared_ptr< Device > | getDevice () |
Get the device object. | |
std::shared_ptr< Playback > | getPlayback () |
Get the playback object. | |
std::shared_ptr< StreamProfileList > | getStreamProfileList (OBSensorType sensorType) |
Get the stream profile of the specified sensor. | |
void | enableFrameSync () |
Turn on frame synchronization. | |
void | disableFrameSync () |
Turn off frame synchronization. | |
OBCameraParam | getCameraParam () |
Get the camera parameters. | |
OBCameraParam | getCameraParamWithProfile (uint32_t colorWidth, uint32_t colorHeight, uint32_t depthWidth, uint32_t depthHeight) |
Get camera parameters by entering color and depth resolution. | |
OBCalibrationParam | getCalibrationParam (std::shared_ptr< Config > config) |
Get the calibration parameters. | |
std::shared_ptr< StreamProfileList > | getD2CDepthProfileList (std::shared_ptr< StreamProfile > colorProfile, OBAlignMode alignMode) |
Return a list of D2C-enabled depth sensor resolutions corresponding to the input color sensor resolution. | |
OBRect | getD2CValidArea (uint32_t minimumDistance, uint32_t maximumDistance=0) |
Get the valid area between the minimum distance and maximum distance after D2C. | |
void | switchConfig (std::shared_ptr< Config > config) |
Dynamically switch the corresponding config configuration. | |
void | startRecord (const char *filename) |
Start recording. | |
void | stopRecord () |
Stop recording. | |
Definition at line 28 of file Pipeline.hpp.
ob::Pipeline::Pipeline | ( | ) |
Pipeline is a high-level interface for applications, algorithms related RGBD data streams. Pipeline can provide alignment inside and synchronized FrameSet. Pipeline() no parameter version, which opens the first device in the list of devices connected to the OS by default. If the application has obtained the device through the DeviceList, opening the Pipeline() at this time will throw an exception that the device has been created.
ob::Pipeline::Pipeline | ( | std::shared_ptr< Device > | device | ) |
Pipeline(std::shared_ptr< Device > device ) Function for multi-device operations. Multiple devices need to be obtained through DeviceList, and the device and pipeline are bound through this interface.
ob::Pipeline::Pipeline | ( | const char * | filename | ) |
Construct a pipeline for playback of recorded stream files.
filename | The file path of the recorded stream file to be played back |
|
noexcept |
Destroy the pipeline object.
void ob::Pipeline::start | ( | std::shared_ptr< Config > | config | ) |
Start the pipeline with configuration parameters.
config | The parameter configuration of the pipeline |
void ob::Pipeline::start | ( | ) |
Start the pipeline with default configuration parameters.
void ob::Pipeline::start | ( | std::shared_ptr< Config > | config, |
FrameSetCallback | callback | ||
) |
Start the pipeline and set the frameset data callback.
config | The configuration of the pipeline |
callback | The callback to be triggered when all frame data in the frameset arrives |
void ob::Pipeline::stop | ( | ) |
Stop the pipeline.
std::shared_ptr< StreamProfileList > ob::Pipeline::getEnabledStreamProfileList | ( | ) |
get Enabled Stream Profile List,It must be called after the pipeline is started, otherwise it will return an empty list
std::shared_ptr< Config > ob::Pipeline::getConfig | ( | ) |
Get the pipeline configuration parameters.
Returns the default configuration if the user has not configured it
std::shared_ptr< FrameSet > ob::Pipeline::waitForFrames | ( | uint32_t | timeout_ms = 1000 | ) |
Wait for frameset data.
timeout_ms | The waiting timeout in milliseconds |
std::shared_ptr< Device > ob::Pipeline::getDevice | ( | ) |
Get the device object.
std::shared_ptr< Playback > ob::Pipeline::getPlayback | ( | ) |
Get the playback object.
std::shared_ptr< StreamProfileList > ob::Pipeline::getStreamProfileList | ( | OBSensorType | sensorType | ) |
Get the stream profile of the specified sensor.
sensorType | The type of sensor |
void ob::Pipeline::enableFrameSync | ( | ) |
Turn on frame synchronization.
void ob::Pipeline::disableFrameSync | ( | ) |
Turn off frame synchronization.
OBCameraParam ob::Pipeline::getCameraParam | ( | ) |
Get the camera parameters.
OBCameraParam ob::Pipeline::getCameraParamWithProfile | ( | uint32_t | colorWidth, |
uint32_t | colorHeight, | ||
uint32_t | depthWidth, | ||
uint32_t | depthHeight | ||
) |
Get camera parameters by entering color and depth resolution.
colorWidth | Width of color resolution |
colorHeight | High of color resolution |
depthWidth | Width of depth resolution |
depthHeight | High of depth resolution |
OBCalibrationParam ob::Pipeline::getCalibrationParam | ( | std::shared_ptr< Config > | config | ) |
Get the calibration parameters.
config | The configured parameters |
std::shared_ptr< StreamProfileList > ob::Pipeline::getD2CDepthProfileList | ( | std::shared_ptr< StreamProfile > | colorProfile, |
OBAlignMode | alignMode | ||
) |
Return a list of D2C-enabled depth sensor resolutions corresponding to the input color sensor resolution.
colorProfile | The input color sensor resolution |
alignMode | The input align mode |
OBRect ob::Pipeline::getD2CValidArea | ( | uint32_t | minimumDistance, |
uint32_t | maximumDistance = 0 |
||
) |
Get the valid area between the minimum distance and maximum distance after D2C.
minimumDistance | The minimum working distance |
maximumDistance | The maximum working distance (optional) |
void ob::Pipeline::switchConfig | ( | std::shared_ptr< Config > | config | ) |
Dynamically switch the corresponding config configuration.
config | The updated config configuration |
void ob::Pipeline::startRecord | ( | const char * | filename | ) |
Start recording.
filename | The name of the record file |
void ob::Pipeline::stopRecord | ( | ) |
Stop recording.