Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message groups #917

Merged
merged 49 commits into from
Nov 29, 2023
Merged

Message groups #917

merged 49 commits into from
Nov 29, 2023

Conversation

asahtik
Copy link
Contributor

@asahtik asahtik commented Nov 2, 2023

Implemented Sync and MessageDemux nodes with the MessageGroup datatype.

include/depthai/pipeline/node/Sync.hpp Show resolved Hide resolved
include/depthai/pipeline/node/VideoEncoder.hpp Outdated Show resolved Hide resolved
include/depthai/pipeline/datatype/MessageGroup.hpp Outdated Show resolved Hide resolved
src/device/DataQueue.cpp Outdated Show resolved Hide resolved
src/device/DataQueue.cpp Outdated Show resolved Hide resolved
src/pipeline/datatype/MessageGroup.cpp Outdated Show resolved Hide resolved
src/utility/H26xParsers.hpp Outdated Show resolved Hide resolved
src/utility/H26xParsers.hpp Outdated Show resolved Hide resolved
src/utility/TypeToEnum.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@moratom moratom left a comment

Choose a reason for hiding this comment

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

The main idea with sync node being able to to send out messages after X attempts even if gets no synced messages was more meant for development&debugging, so you could inspect why sync node can't sync the messages.

Let's remove the successful flag and setDemuxOnlyOnSuccessful and expose this functionality better in Sync node.

include/depthai/pipeline/node/Sync.hpp Outdated Show resolved Hide resolved
src/pipeline/datatype/MessageGroup.cpp Outdated Show resolved Hide resolved
src/pipeline/node/MessageDemux.cpp Outdated Show resolved Hide resolved
include/depthai/pipeline/node/Sync.hpp Outdated Show resolved Hide resolved
include/depthai/pipeline/node/Sync.hpp Outdated Show resolved Hide resolved
@moratom
Copy link
Collaborator

moratom commented Nov 10, 2023

Please add an example to depthai-core & depthai-python (Create a Sync sub-directory in examples)

Copy link
Collaborator

@themarpe themarpe left a comment

Choose a reason for hiding this comment

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

Add a nice example of syncing eg: left & right imagers, etc... then sending on host & displaying both synced.

include/depthai/pipeline/node/Sync.hpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@moratom moratom left a comment

Choose a reason for hiding this comment

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

Apart from the requested changes, looks great!

src/pipeline/datatype/MessageGroup.cpp Outdated Show resolved Hide resolved
@asahtik asahtik merged commit e38023c into develop Nov 29, 2023
23 of 30 checks passed
@asahtik asahtik deleted the message_groups branch November 29, 2023 10:55
jakgra pushed a commit that referenced this pull request Mar 20, 2024
Adding code examples in docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants