Skip to content
Open
Show file tree
Hide file tree
Changes from 83 commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
5110bcc
Added pipeline events messages and node
asahtik Sep 16, 2025
e165806
Added the pipeline event dispatcher
asahtik Sep 18, 2025
fbd4137
Add Pipeline event bindings
asahtik Sep 22, 2025
9876101
Integrate pipeline events
asahtik Sep 23, 2025
0e00bff
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Sep 23, 2025
b2024f0
RVC4 FW: initial pipeline debugging impl
asahtik Sep 24, 2025
75e9386
Pipeline events bugfixes, pipeline state merge node
asahtik Sep 24, 2025
a1668e7
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Sep 25, 2025
99ce452
Some pipeline debugging bugfixes
asahtik Sep 25, 2025
10753f0
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Sep 25, 2025
914cbc5
Fix pipeline events on host
asahtik Sep 26, 2025
d30b5fd
Fix RVC4 pipeline events crash
asahtik Sep 30, 2025
3a579ac
RVC4 FW: Fix pipeline events crash
asahtik Sep 30, 2025
2e9b26d
Add more stats, queue state WIP
asahtik Oct 1, 2025
a5e93d8
Event instances now have independent sequence numbers
asahtik Oct 1, 2025
38481f0
Do not update stats for every event
asahtik Oct 1, 2025
978e9b9
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Oct 2, 2025
962d4af
Fix dropped pipeline events
asahtik Oct 2, 2025
b79ded6
RVC4 FW: Fix dropped pipeline events
asahtik Oct 2, 2025
de20f54
Added queue size stats
asahtik Oct 2, 2025
4854124
WIP pipeline state api
asahtik Oct 6, 2025
c34cc45
Implement service like api for pipeline state
asahtik Oct 6, 2025
f9835ee
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Oct 6, 2025
fcbfe78
Remove static assert
asahtik Oct 6, 2025
28e5b93
Bugfixes
asahtik Oct 7, 2025
215119d
Collect events in a different thread
asahtik Oct 7, 2025
e8045e4
WIP: dispatcher + state improvements
asahtik Oct 7, 2025
36e917a
Do not require adding events, node / input states, other improvements
asahtik Oct 8, 2025
1991426
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Oct 8, 2025
48c1b6a
Add ability to get the entire pipeline schema, add bridge info to pip…
asahtik Oct 8, 2025
c8ec85a
Add comments to pipeline state
asahtik Oct 8, 2025
1a2b848
Bugfix
asahtik Oct 9, 2025
8b87d55
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Oct 9, 2025
5a6d765
Update input queue size more often
asahtik Oct 9, 2025
af86cae
Add ability to disable sending pipeline events
asahtik Oct 9, 2025
0405afb
Remove ongoing event warnings
asahtik Oct 9, 2025
af4d644
RVC4 FW: core bump
asahtik Oct 9, 2025
5024bc9
Fix getting pipeline state from device
asahtik Oct 9, 2025
a5dbc4a
Bugfix, implement API for getting state (c++)
asahtik Oct 9, 2025
89a168f
Fix pipeline state filtering
asahtik Oct 9, 2025
c5befed
RVC4 FW: time main loop of some nodes
asahtik Oct 9, 2025
c79abbf
Add python bindings for getting pipeline state
asahtik Oct 10, 2025
df8011b
Implement tracking events through threads
asahtik Oct 10, 2025
fd27d19
Add missing files
asahtik Oct 10, 2025
66e4fcd
Add mutex lock to pipeline event dispatcher
asahtik Oct 10, 2025
c084252
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Oct 13, 2025
75592f7
Fix docstrings errors
asahtik Oct 13, 2025
c55d212
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Oct 16, 2025
4cef1e6
Disable pipeline events
asahtik Oct 16, 2025
bb92f4f
Reduce pipeline state stat calculation, add ability to disable sendin…
asahtik Oct 17, 2025
a13c0ef
RVC4 FW: update core with pipeline debugging improvemets
asahtik Oct 17, 2025
b3e34dc
Bugfixes, add block events for host runnable nodes
asahtik Oct 20, 2025
0017ab7
RVC4 FW: Add io events to some nodes
asahtik Oct 20, 2025
55e7dd7
Use group and name for event source
asahtik Oct 28, 2025
eb699aa
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Oct 28, 2025
ef20c8b
Add default values to pipeline state
asahtik Oct 29, 2025
e0a4775
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Oct 30, 2025
6b58440
Add pipeline debugging tests
asahtik Nov 3, 2025
b4a8834
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Nov 4, 2025
312384a
Pipeline debugging bugfixes
asahtik Nov 4, 2025
5e1847b
Pipeline debugging test improvements, bugfixes
asahtik Nov 5, 2025
cc8638e
Add pipeline debugging test for rvc4
asahtik Nov 5, 2025
7149f32
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Nov 5, 2025
5632e03
RVC4 FW: Pipeline debugging fixes, add to nodes
asahtik Nov 5, 2025
ddef6df
TMP: run tests with pipeline debugging enabled
asahtik Nov 5, 2025
411134a
RVC2 FW: Pipeline debugging bugfixes
asahtik Nov 6, 2025
1dd9736
Add DEPTHAI_PIPELINE_DEBUGGING to tests env
asahtik Nov 6, 2025
4677f08
PR fixes
asahtik Nov 6, 2025
9874b63
Add ability go get schema without pipeline debugging stuff [no ci]
asahtik Nov 6, 2025
1b3533c
clangformat
asahtik Nov 6, 2025
ab22e6b
Pipeline debugging: fix HostNode crash [no ci]
asahtik Nov 7, 2025
ae05e48
RVC4 FW: Added pipeline debugging info to videoencoder
asahtik Nov 7, 2025
c0aef2a
Make block events thread safe
asahtik Nov 7, 2025
04f50b0
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Nov 7, 2025
19422fb
Bugfixes [no ci]
asahtik Nov 7, 2025
a8cd279
RVC4 FW: Core update
asahtik Nov 7, 2025
4879c08
RVC2 FW: Fix pipeline debugging fps calculation [no ci]
asahtik Nov 8, 2025
d1c961e
Add pipeline debugging input duration test
asahtik Nov 10, 2025
065a97c
Add foxglove service for full pipeline and pipeline state + support f…
asahtik Nov 10, 2025
ab48d74
Change pipeline state fg json [no ci]
asahtik Nov 10, 2025
0c87474
RVC2 FW: Fix script node issue with pipeline debugging
asahtik Nov 10, 2025
22ac8fd
Add toJson to PipelineState
asahtik Nov 10, 2025
fd4e692
Add pipeline debugging examples
asahtik Nov 10, 2025
0f89f3e
Fix try get pipeline debugging issue
asahtik Nov 11, 2025
5e194e3
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Nov 11, 2025
aeaa95a
bugfixes, pipeline event dispatcher improvements [no ci]
asahtik Nov 11, 2025
4e242b7
RVC4 FW: Add pipeline debugging to stereo depth, camera
asahtik Nov 11, 2025
d758208
Fix macos build?
asahtik Nov 11, 2025
b9cda65
Change device to deviceId & deviceNode in objinfo [no ci]
asahtik Nov 11, 2025
d32da8a
RVC4 FW: update core [no ci]
asahtik Nov 11, 2025
8589893
RVC2 FW: update core
asahtik Nov 11, 2025
568ad64
PR fixes
asahtik Nov 11, 2025
e6e28b5
Merge branch 'feature/pipeline_debugging' of github.com:luxonis/depth…
asahtik Nov 11, 2025
a79afee
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Nov 12, 2025
d0087cf
Remove pipeline debugging env var from tests
asahtik Nov 12, 2025
2d0fc90
Add example for pipeline event subscription
asahtik Nov 12, 2025
560d764
Clangformat
asahtik Nov 12, 2025
2c80e92
Macos build fix v2?
asahtik Nov 12, 2025
c4ba9a2
Fix windows build of example
asahtik Nov 12, 2025
921993f
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Nov 12, 2025
bcbf584
MacOs build fix v3 [no ci]
asahtik Nov 12, 2025
97897e1
RVC4 FW: merge develop [no ci]
asahtik Nov 12, 2025
201bbd3
RVC2 FW: merge develop
asahtik Nov 12, 2025
c04ed85
Fix include [no ci]
asahtik Nov 13, 2025
7637f2e
RVC2 FW: Update core [no ci]
asahtik Nov 13, 2025
f3eeb97
Added pipeline debugging docs
asahtik Nov 13, 2025
7bd26b6
Merge branch 'feature/pipeline_debugging' of github.com:luxonis/depth…
asahtik Nov 13, 2025
3a14630
Move section in PD docs
asahtik Nov 13, 2025
b71c87f
Add background to PD doc schema
asahtik Nov 14, 2025
e5bc755
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Nov 14, 2025
cd4b338
RVC2 FW: Update core
asahtik Nov 14, 2025
c84b861
Merge branch 'develop' of github.com:luxonis/depthai-core into featur…
asahtik Nov 14, 2025
0caa3d3
RVC4 FW: Update core
asahtik Nov 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ set(TARGET_CORE_SOURCES
src/device/CalibrationHandler.cpp
src/device/Version.cpp
src/pipeline/Pipeline.cpp
src/pipeline/PipelineStateApi.cpp
src/pipeline/AssetManager.cpp
src/pipeline/MessageQueue.cpp
src/pipeline/Node.cpp
Expand All @@ -281,6 +282,8 @@ set(TARGET_CORE_SOURCES
src/pipeline/ThreadedHostNode.cpp
src/pipeline/DeviceNode.cpp
src/pipeline/DeviceNodeGroup.cpp
src/pipeline/node/internal/PipelineEventAggregation.cpp
src/pipeline/node/internal/PipelineStateMerge.cpp
src/pipeline/node/internal/XLinkIn.cpp
src/pipeline/node/internal/XLinkOut.cpp
src/pipeline/node/ColorCamera.cpp
Expand Down Expand Up @@ -351,6 +354,9 @@ set(TARGET_CORE_SOURCES
src/pipeline/datatype/PointCloudConfig.cpp
src/pipeline/datatype/ObjectTrackerConfig.cpp
src/pipeline/datatype/PointCloudData.cpp
src/pipeline/datatype/PipelineEvent.cpp
src/pipeline/datatype/PipelineState.cpp
src/pipeline/datatype/PipelineEventAggregationConfig.cpp
src/pipeline/datatype/RGBDData.cpp
src/pipeline/datatype/MessageGroup.cpp
src/pipeline/datatype/ThermalConfig.cpp
Expand All @@ -367,6 +373,7 @@ set(TARGET_CORE_SOURCES
src/utility/Initialization.cpp
src/utility/Resources.cpp
src/utility/Platform.cpp
src/utility/PipelineEventDispatcher.cpp
src/utility/RecordReplay.cpp
src/utility/McapImpl.cpp
src/utility/Environment.cpp
Expand Down
7 changes: 5 additions & 2 deletions bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ set(SOURCE_LIST
src/pipeline/node/UVCBindings.cpp
src/pipeline/node/ToFBindings.cpp
src/pipeline/node/PointCloudBindings.cpp
src/pipeline/node/SyncBindings.cpp
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SyncBindings were duplicated (line 96)

src/pipeline/node/PipelineEventAggregationBindings.cpp
src/pipeline/node/MessageDemuxBindings.cpp
src/pipeline/node/HostNodeBindings.cpp
src/pipeline/node/RecordBindings.cpp
Expand Down Expand Up @@ -136,6 +136,8 @@ set(SOURCE_LIST
src/pipeline/datatype/PointCloudConfigBindings.cpp
src/pipeline/datatype/ObjectTrackerConfigBindings.cpp
src/pipeline/datatype/PointCloudDataBindings.cpp
src/pipeline/datatype/PipelineEventBindings.cpp
src/pipeline/datatype/PipelineStateBindings.cpp
src/pipeline/datatype/TransformDataBindings.cpp
src/pipeline/datatype/ImageAlignConfigBindings.cpp
src/pipeline/datatype/ImgAnnotationsBindings.cpp
Expand All @@ -149,6 +151,7 @@ set(SOURCE_LIST

src/remote_connection/RemoteConnectionBindings.cpp
src/utility/EventsManagerBindings.cpp
src/utility/PipelineEventDispatcherBindings.cpp
)
if(DEPTHAI_MERGED_TARGET)
list(APPEND SOURCE_LIST
Expand Down Expand Up @@ -412,4 +415,4 @@ endif()
########################
if (DEPTHAI_PYTHON_ENABLE_EXAMPLES)
add_subdirectory(../../examples/python ${CMAKE_BINARY_DIR}/examples/python)
endif()
endif()
1 change: 1 addition & 0 deletions bindings/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ def build_extension(self, ext):
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: C++",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
Expand Down
6 changes: 6 additions & 0 deletions bindings/python/src/DatatypeBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ void bind_tracklets(pybind11::module& m, void* pCallstack);
void bind_benchmarkreport(pybind11::module& m, void* pCallstack);
void bind_pointcloudconfig(pybind11::module& m, void* pCallstack);
void bind_pointclouddata(pybind11::module& m, void* pCallstack);
void bind_pipelineevent(pybind11::module& m, void* pCallstack);
void bind_pipelinestate(pybind11::module& m, void* pCallstack);
void bind_transformdata(pybind11::module& m, void* pCallstack);
void bind_rgbddata(pybind11::module& m, void* pCallstack);
void bind_imagealignconfig(pybind11::module& m, void* pCallstack);
Expand Down Expand Up @@ -71,6 +73,8 @@ void DatatypeBindings::addToCallstack(std::deque<StackFunction>& callstack) {
callstack.push_front(bind_benchmarkreport);
callstack.push_front(bind_pointcloudconfig);
callstack.push_front(bind_pointclouddata);
callstack.push_front(bind_pipelineevent);
callstack.push_front(bind_pipelinestate);
callstack.push_front(bind_transformdata);
callstack.push_front(bind_imagealignconfig);
callstack.push_front(bind_imageannotations);
Expand Down Expand Up @@ -132,6 +136,8 @@ void DatatypeBindings::bind(pybind11::module& m, void* pCallstack) {
.value("ImageAlignConfig", DatatypeEnum::ImageAlignConfig)
.value("ImgAnnotations", DatatypeEnum::ImgAnnotations)
.value("RGBDData", DatatypeEnum::RGBDData)
.value("PipelineEvent", DatatypeEnum::PipelineEvent)
.value("PipelineState", DatatypeEnum::PipelineState)
.value("ImageFiltersConfig", DatatypeEnum::ImageFiltersConfig)
.value("ToFDepthConfidenceFilterConfig", DatatypeEnum::ToFDepthConfidenceFilterConfig)
.value("DynamicCalibrationControl", DatatypeEnum::DynamicCalibrationControl)
Expand Down
61 changes: 59 additions & 2 deletions bindings/python/src/pipeline/PipelineBindings.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#include "PipelineBindings.hpp"

#include <pybind11/attr.h>
Expand Down Expand Up @@ -64,6 +63,9 @@ void PipelineBindings::bind(pybind11::module& m, void* pCallstack) {
py::class_<GlobalProperties> globalProperties(m, "GlobalProperties", DOC(dai, GlobalProperties));
py::class_<RecordConfig> recordConfig(m, "RecordConfig", DOC(dai, RecordConfig));
py::class_<RecordConfig::VideoEncoding> recordVideoConfig(recordConfig, "VideoEncoding", DOC(dai, RecordConfig, VideoEncoding));
py::class_<PipelineStateApi> pipelineStateApi(m, "PipelineStateApi", DOC(dai, PipelineStateApi));
py::class_<NodesStateApi> nodesStateApi(m, "NodesStateApi", DOC(dai, NodesStateApi));
py::class_<NodeStateApi> nodeStateApi(m, "NodeStateApi", DOC(dai, NodeStateApi));
py::class_<Pipeline> pipeline(m, "Pipeline", DOC(dai, Pipeline, 2));

///////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -102,6 +104,59 @@ void PipelineBindings::bind(pybind11::module& m, void* pCallstack) {
.def_readwrite("videoEncoding", &RecordConfig::videoEncoding, DOC(dai, RecordConfig, videoEncoding))
.def_readwrite("compressionLevel", &RecordConfig::compressionLevel, DOC(dai, RecordConfig, compressionLevel));

pipelineStateApi.def("nodes", static_cast<NodesStateApi (PipelineStateApi::*)()>(&PipelineStateApi::nodes), DOC(dai, PipelineStateApi, nodes))
.def("nodes",
static_cast<NodesStateApi (PipelineStateApi::*)(const std::vector<Node::Id>&)>(&PipelineStateApi::nodes),
py::arg("nodeIds"),
DOC(dai, PipelineStateApi, nodes, 2))
.def("nodes",
static_cast<NodeStateApi (PipelineStateApi::*)(Node::Id)>(&PipelineStateApi::nodes),
py::arg("nodeId"),
DOC(dai, PipelineStateApi, nodes, 3));

nodesStateApi.def("summary", &NodesStateApi::summary, DOC(dai, NodesStateApi, summary))
.def("detailed", &NodesStateApi::detailed, DOC(dai, NodesStateApi, detailed))
.def("outputs", &NodesStateApi::outputs, DOC(dai, NodesStateApi, outputs))
.def("inputs", &NodesStateApi::inputs, DOC(dai, NodesStateApi, inputs))
.def("otherTimings", &NodesStateApi::otherTimings, DOC(dai, NodesStateApi, otherTimings));

nodeStateApi.def("summary", &NodeStateApi::summary, DOC(dai, NodeStateApi, summary))
.def("detailed", &NodeStateApi::detailed, DOC(dai, NodeStateApi, detailed))
.def("outputs",
static_cast<std::unordered_map<std::string, NodeState::OutputQueueState> (NodeStateApi::*)()>(&NodeStateApi::outputs),
DOC(dai, NodeStateApi, outputs))
.def("outputs",
static_cast<std::unordered_map<std::string, NodeState::OutputQueueState> (NodeStateApi::*)(const std::vector<std::string>&)>(
&NodeStateApi::outputs),
py::arg("outputNames"),
DOC(dai, NodeStateApi, outputs, 2))
.def("outputs",
static_cast<NodeState::OutputQueueState (NodeStateApi::*)(const std::string&)>(&NodeStateApi::outputs),
py::arg("outputName"),
DOC(dai, NodeStateApi, outputs, 3))
.def("inputs",
static_cast<std::unordered_map<std::string, NodeState::InputQueueState> (NodeStateApi::*)()>(&NodeStateApi::inputs),
DOC(dai, NodeStateApi, inputs))
.def("inputs",
static_cast<std::unordered_map<std::string, NodeState::InputQueueState> (NodeStateApi::*)(const std::vector<std::string>&)>(&NodeStateApi::inputs),
py::arg("inputNames"),
DOC(dai, NodeStateApi, inputs, 2))
.def("inputs",
static_cast<NodeState::InputQueueState (NodeStateApi::*)(const std::string&)>(&NodeStateApi::inputs),
py::arg("inputName"),
DOC(dai, NodeStateApi, inputs, 3))
.def("otherTimings",
static_cast<std::unordered_map<std::string, NodeState::Timing> (NodeStateApi::*)()>(&NodeStateApi::otherTimings),
DOC(dai, NodeStateApi, otherTimings))
.def("otherTimings",
static_cast<std::unordered_map<std::string, NodeState::Timing> (NodeStateApi::*)(const std::vector<std::string>&)>(&NodeStateApi::otherTimings),
py::arg("statNames"),
DOC(dai, NodeStateApi, otherTimings, 2))
.def("otherStats",
static_cast<NodeState::Timing (NodeStateApi::*)(const std::string&)>(&NodeStateApi::otherStats),
py::arg("statName"),
DOC(dai, NodeStateApi, otherStats));

// bind pipeline
pipeline
.def(py::init([](bool createImplicitDevice) {
Expand Down Expand Up @@ -255,6 +310,8 @@ void PipelineBindings::bind(pybind11::module& m, void* pCallstack) {
.def("isRunning", &Pipeline::isRunning)
.def("processTasks", &Pipeline::processTasks, py::arg("waitForTasks") = false, py::arg("timeoutSeconds") = -1.0)
.def("enableHolisticRecord", &Pipeline::enableHolisticRecord, py::arg("recordConfig"), DOC(dai, Pipeline, enableHolisticRecord))
.def("enableHolisticReplay", &Pipeline::enableHolisticReplay, py::arg("recordingPath"), DOC(dai, Pipeline, enableHolisticReplay));
.def("enableHolisticReplay", &Pipeline::enableHolisticReplay, py::arg("recordingPath"), DOC(dai, Pipeline, enableHolisticReplay))
.def("enablePipelineDebugging", &Pipeline::enablePipelineDebugging, py::arg("enable") = true, DOC(dai, Pipeline, enablePipelineDebugging))
.def("getPipelineState", &Pipeline::getPipelineState, DOC(dai, Pipeline, getPipelineState));
;
}
59 changes: 59 additions & 0 deletions bindings/python/src/pipeline/datatype/PipelineEventBindings.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#include <memory>
#include <unordered_map>

#include "DatatypeBindings.hpp"
#include "pipeline/CommonBindings.hpp"

// depthai
#include "depthai/pipeline/datatype/PipelineEvent.hpp"

// pybind
#include <pybind11/chrono.h>
#include <pybind11/numpy.h>

// #include "spdlog/spdlog.h"

void bind_pipelineevent(pybind11::module& m, void* pCallstack) {
using namespace dai;

py::class_<PipelineEvent, Py<PipelineEvent>, Buffer, std::shared_ptr<PipelineEvent>> pipelineEvent(m, "PipelineEvent", DOC(dai, PipelineEvent));
py::enum_<PipelineEvent::Type> pipelineEventType(pipelineEvent, "Type", DOC(dai, PipelineEvent, Type));
py::enum_<PipelineEvent::Interval> pipelineEventInterval(pipelineEvent, "Interval", DOC(dai, PipelineEvent, Interval));

///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
// Call the rest of the type defines, then perform the actual bindings
Callstack* callstack = (Callstack*)pCallstack;
auto cb = callstack->top();
callstack->pop();
cb(m, pCallstack);
// Actual bindings
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////

pipelineEventType.value("CUSTOM", PipelineEvent::Type::CUSTOM)
.value("LOOP", PipelineEvent::Type::LOOP)
.value("INPUT", PipelineEvent::Type::INPUT)
.value("OUTPUT", PipelineEvent::Type::OUTPUT);
pipelineEventInterval.value("NONE", PipelineEvent::Interval::NONE)
.value("START", PipelineEvent::Interval::START)
.value("END", PipelineEvent::Interval::END);

// Message
pipelineEvent.def(py::init<>())
.def("__repr__", &PipelineEvent::str)
.def_readwrite("nodeId", &PipelineEvent::nodeId, DOC(dai, PipelineEvent, nodeId))
.def_readwrite("status", &PipelineEvent::status, DOC(dai, PipelineEvent, status))
.def_readwrite("queueSize", &PipelineEvent::queueSize, DOC(dai, PipelineEvent, queueSize))
.def_readwrite("interval", &PipelineEvent::interval, DOC(dai, PipelineEvent, interval))
.def_readwrite("type", &PipelineEvent::type, DOC(dai, PipelineEvent, type))
.def_readwrite("source", &PipelineEvent::source, DOC(dai, PipelineEvent, source))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't need bindings, should work "automagically"

.def("getTimestamp", &PipelineEvent::Buffer::getTimestamp, DOC(dai, Buffer, getTimestamp))
.def("getTimestampDevice", &PipelineEvent::Buffer::getTimestampDevice, DOC(dai, Buffer, getTimestampDevice))
.def("getSequenceNum", &PipelineEvent::Buffer::getSequenceNum, DOC(dai, Buffer, getSequenceNum))
.def("setTimestamp", &PipelineEvent::setTimestamp, DOC(dai, Buffer, setTimestamp))
.def("setTimestampDevice", &PipelineEvent::setTimestampDevice, DOC(dai, Buffer, setTimestampDevice))
.def("setSequenceNum", &PipelineEvent::setSequenceNum, DOC(dai, Buffer, setSequenceNum));
}
Loading
Loading