|
OrbbecSDK 2.8.6
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. | |
| OBPipelineStatus | getStatus () const |
| Get the current pipeline status observed during streaming. | |
| void | enableHealthMonitor (std::function< void(OBPipelineStatus status)> callback, uint32_t intervalMs=3000) |
| Enable pipeline health monitor with periodic status polling. | |
| void | disableHealthMonitor () const |
| Disable pipeline health monitor. | |
| 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) |
| static void | healthMonitorCallback (ob_pipeline_status status, void *userData) |
Definition at line 282 of file Pipeline.hpp.
| typedef std::function<void(std::shared_ptr<FrameSet> frame)> ob::Pipeline::FrameSetCallback |
FrameSetCallback is a callback function type for frameset data arrival.
| [in] | frame | The returned frameset data |
Definition at line 289 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 302 of file Pipeline.hpp.
Referenced by frameSetCallback(), and healthMonitorCallback().
|
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 313 of file Pipeline.hpp.
|
inlinenoexcept |
Destroy the pipeline object.
Definition at line 322 of file Pipeline.hpp.
|
inline |
Start the pipeline with configuration parameters.
| [in] | config | The parameter configuration of the pipeline |
Definition at line 333 of file Pipeline.hpp.
|
inline |
Start the pipeline and set the frameset data callback.
| [in] | config | The configuration of the pipeline |
| [in] | callback | The callback to be triggered when all frame data in the frameset arrives |
Definition at line 346 of file Pipeline.hpp.
|
inlinestatic |
Definition at line 353 of file Pipeline.hpp.
Referenced by start().
|
inlinestatic |
Definition at line 358 of file Pipeline.hpp.
Referenced by enableHealthMonitor().
|
inline |
Stop the pipeline.
Definition at line 368 of file Pipeline.hpp.
|
inline |
Get the pipeline configuration parameters.
Returns the default configuration if the user has not configured it
Definition at line 380 of file Pipeline.hpp.
|
inline |
Wait for frameset.
| [in] | timeoutMs | The waiting timeout in milliseconds |
Definition at line 394 of file Pipeline.hpp.
Referenced by waitForFrames().
|
inline |
Get the device object.
Definition at line 409 of file Pipeline.hpp.
|
inline |
Get the stream profile of the specified sensor.
| [in] | sensorType | The type of sensor |
Definition at line 423 of file Pipeline.hpp.
|
inline |
Get the stream profile list of supported depth-to-color alignments.
| [in] | colorProfile | The color stream profile, which is the target stream profile for the depth-to-color alignment. |
| [in] | alignMode | The alignment mode. |
Definition at line 440 of file Pipeline.hpp.
|
inline |
Turn on frame synchronization.
Definition at line 450 of file Pipeline.hpp.
|
inline |
Turn off frame synchronization.
Definition at line 459 of file Pipeline.hpp.
|
inline |
Get the current pipeline status observed during streaming.
Definition at line 470 of file Pipeline.hpp.
|
inline |
Enable pipeline health monitor with periodic status polling.
| [in] | callback | The callback function invoked when abnormal status is detected (from internal thread, avoid blocking). |
| [in] | intervalMs | Polling interval in milliseconds (recommended: 3000-5000, default: 3000). |
Definition at line 483 of file Pipeline.hpp.
|
inline |
Disable pipeline health monitor.
Definition at line 493 of file Pipeline.hpp.
|
inline |
Definition at line 502 of file Pipeline.hpp.
|
inline |
Definition at line 509 of file Pipeline.hpp.
|
inline |
Definition at line 516 of file Pipeline.hpp.
|
inline |
Definition at line 523 of file Pipeline.hpp.