OrbbecSDK 2.1.1
OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras
|
#include <Pipeline.hpp>
Public Types | |
typedef std::function< void(std::shared_ptr< FrameSet > frame)> | FrameSetCallback |
FrameSetCallback is a callback function type for frameset data arrival. | |
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 () noexcept | |
Destroy the pipeline object. | |
void | start (std::shared_ptr< Config > config=nullptr) const |
Start the pipeline with configuration parameters. | |
void | start (std::shared_ptr< Config > config, FrameSetCallback callback) |
Start the pipeline and set the frameset data callback. | |
void | stop () const |
Stop the pipeline. | |
std::shared_ptr< Config > | getConfig () const |
Get the pipeline configuration parameters. | |
std::shared_ptr< FrameSet > | waitForFrameset (uint32_t timeoutMs=1000) const |
Wait for frameset. | |
std::shared_ptr< Device > | getDevice () const |
Get the device object. | |
std::shared_ptr< StreamProfileList > | getStreamProfileList (OBSensorType sensorType) const |
Get the stream profile of the specified sensor. | |
std::shared_ptr< StreamProfileList > | getD2CDepthProfileList (std::shared_ptr< StreamProfile > colorProfile, OBAlignMode alignMode) |
Get the stream profile list of supported depth-to-color alignments. | |
void | enableFrameSync () const |
Turn on frame synchronization. | |
void | disableFrameSync () const |
Turn off frame synchronization. | |
OBCameraParam | getCameraParam () |
OBCameraParam | getCameraParamWithProfile (uint32_t colorWidth, uint32_t colorHeight, uint32_t depthWidth, uint32_t depthHeight) |
OBCalibrationParam | getCalibrationParam (std::shared_ptr< Config > config) |
std::shared_ptr< FrameSet > | waitForFrames (uint32_t timeoutMs=1000) const |
Static Public Member Functions | |
static void | frameSetCallback (ob_frame_t *frameSet, void *userData) |
Definition at line 249 of file Pipeline.hpp.
std::function<void(std::shared_ptr<FrameSet> frame)> ob::Pipeline::FrameSetCallback |
FrameSetCallback is a callback function type for frameset data arrival.
frame | The returned frameset data |
Definition at line 256 of file Pipeline.hpp.
|
inline |
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.
Definition at line 268 of file Pipeline.hpp.
|
inlineexplicit |
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.
Definition at line 279 of file Pipeline.hpp.
|
inlinenoexcept |
Destroy the pipeline object.
Definition at line 288 of file Pipeline.hpp.
|
inline |
Start the pipeline with configuration parameters.
config | The parameter configuration of the pipeline |
Definition at line 299 of file Pipeline.hpp.
|
inline |
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 |
Definition at line 312 of file Pipeline.hpp.
|
inlinestatic |
Definition at line 319 of file Pipeline.hpp.
Referenced by start().
|
inline |
Stop the pipeline.
Definition at line 327 of file Pipeline.hpp.
|
inline |
Get the pipeline configuration parameters.
Returns the default configuration if the user has not configured it
Definition at line 339 of file Pipeline.hpp.
|
inline |
Wait for frameset.
timeout_ms | The waiting timeout in milliseconds |
Definition at line 352 of file Pipeline.hpp.
Referenced by waitForFrames().
|
inline |
Get the device object.
Definition at line 367 of file Pipeline.hpp.
|
inline |
Get the stream profile of the specified sensor.
sensorType | The type of sensor |
Definition at line 380 of file Pipeline.hpp.
|
inline |
Get the stream profile list of supported depth-to-color alignments.
colorProfile | The color stream profile, which is the target stream profile for the depth-to-color alignment. |
alignMode | The alignment mode. |
Definition at line 397 of file Pipeline.hpp.
|
inline |
Turn on frame synchronization.
Definition at line 407 of file Pipeline.hpp.
|
inline |
Turn off frame synchronization.
Definition at line 416 of file Pipeline.hpp.
|
inline |
Definition at line 425 of file Pipeline.hpp.
|
inline |
Definition at line 432 of file Pipeline.hpp.
|
inline |
Definition at line 439 of file Pipeline.hpp.
|
inline |
Definition at line 446 of file Pipeline.hpp.